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