[BUGFIX] Display tree hierarchy in sites module
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Resources / Private / Templates / SiteConfiguration / Overview.html
1 <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers" data-namespace-typo3-fluid="true">
2 <h1><f:translate key="LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration.xlf:overview.title" /></h1>
3
4 <div class="table-fit">
5 <table class="table table-striped table-hover table-condensed">
6 <thead>
7 <tr>
8 <th><f:translate key="LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration.xlf:overview.site" /></th>
9 <th><f:translate key="LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration.xlf:overview.configuration" /></th>
10 <th><f:translate key="LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration.xlf:overview.baseUrl" /></th>
11 <th>&nbsp;</th>
12 </tr>
13 </thead>
14 <tbody>
15 <f:for each="{pages}" as="page">
16 <tr>
17 <td nowrap valign="top">
18 <f:for each="{page.rootline}" as="rootLinePage" iteration="i">
19 <span style="width: 1px; height: 1px; display:inline-block; margin-left: {rootLinePage.margin}px"></span>
20 <f:if condition="{rootLinePage.uid} == {page.uid}">
21 <f:then>
22 <a href="#" class="t3js-contextmenutrigger" data-table="pages" data-uid="{rootLinePage.uid}">
23 <core:iconForRecord table="pages" row="{rootLinePage}" />
24 </a> {rootLinePage.title} [ID: {page.uid}]
25 </f:then>
26 <f:else>
27 <core:iconForRecord table="pages" row="{rootLinePage}" />
28 {rootLinePage.title}<br>
29 </f:else>
30 </f:if>
31 </f:for>
32 </td>
33 <td>
34 <f:if condition="{page.siteIdentifier}">
35 <f:then>
36 <code>{page.siteIdentifier}</code>
37 </f:then>
38 <f:else>
39 <div>
40 <f:be.link route="site_configuration" parameters="{action: 'edit', pageUid: page.uid}" title="Create configuration" class="btn btn-primary">
41 <f:translate key="LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration.xlf:overview.addSiteConfiguration" />
42 </f:be.link>
43 </div>
44 </f:else>
45 </f:if>
46 </td>
47 <td>
48 <f:if condition="{page.siteConfiguration}">
49 <table class="table table-striped table-no-borders">
50 <tr>
51 <th>Language Name</th>
52 <th>Full URL Prefix</th>
53 </tr>
54 <f:for each="{page.siteConfiguration.languages}" as="siteLanguage">
55 <tr>
56 <td><core:icon identifier="flags-{siteLanguage.flagIdentifier}" /> {siteLanguage.title}</td>
57 <td><a href="{siteLanguage.base}" target="_blank">{siteLanguage.base}</a></td>
58 </tr>
59 </f:for>
60 </table>
61 </f:if>
62 </td>
63 <td>
64 <div class="btn-group">
65 <f:if condition="{page.siteIdentifier}">
66 <f:be.link route="site_configuration" parameters="{action: 'edit', site: page.siteIdentifier}" title="Edit" class="btn btn-default">
67 <core:icon identifier="actions-open" />
68 </f:be.link>
69 <f:be.link route="site_configuration" parameters="{action: 'delete', site:page.siteIdentifier}" title="Delete configuration" class="btn btn-default">
70 <core:icon identifier="actions-delete" />
71 </f:be.link>
72 </f:if>
73 </div>
74 </td>
75 </tr>
76 </f:for>
77 </tbody>
78 </table>
79 </div>
80 </html>