[FEATURE] Introduce Site Handling
[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 <f:if condition="{rootLinePage.uid} == {page.uid}">
20 <f:then>
21 <a href="#" class="t3js-contextmenutrigger" data-table="pages" data-uid="{rootLinePage.uid}">
22 <core:iconForRecord table="pages" row="{rootLinePage}" />
23 </a> {rootLinePage.title} [ID: {page.uid}]
24 </f:then>
25 <f:else>
26 <core:iconForRecord table="pages" row="{rootLinePage}" />
27 {rootLinePage.title}<br>
28 </f:else>
29 </f:if>
30 </f:for>
31 </td>
32 <td>
33 <f:if condition="{page.siteIdentifier}">
34 <f:then>
35 <code>{page.siteIdentifier}</code>
36 </f:then>
37 <f:else>
38 <div>
39 <f:be.link route="site_configuration" parameters="{action: 'edit', pageUid: page.uid}" title="Create configuration" class="btn btn-primary">
40 <f:translate key="LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration.xlf:overview.addSiteConfiguration" />
41 </f:be.link>
42 </div>
43 </f:else>
44 </f:if>
45 </td>
46 <td>
47 <f:if condition="{page.siteConfiguration}">
48 <table class="table table-striped table-no-borders">
49 <tr>
50 <th>Language Name</th>
51 <th>Full URL Prefix</th>
52 </tr>
53 <f:for each="{page.siteConfiguration.languages}" as="siteLanguage">
54 <tr>
55 <td><core:icon identifier="flags-{siteLanguage.flagIdentifier}" /> {siteLanguage.title}</td>
56 <td><a href="{siteLanguage.base}" target="_blank">{siteLanguage.base}</a></td>
57 </tr>
58 </f:for>
59 </table>
60 </f:if>
61 </td>
62 <td>
63 <div class="btn-group">
64 <f:if condition="{page.siteIdentifier}">
65 <f:be.link route="site_configuration" parameters="{action: 'edit', site: page.siteIdentifier}" title="Edit" class="btn btn-default">
66 <core:icon identifier="actions-open" />
67 </f:be.link>
68 <f:be.link route="site_configuration" parameters="{action: 'delete', site:page.siteIdentifier}" title="Delete configuration" class="btn btn-default">
69 <core:icon identifier="actions-delete" />
70 </f:be.link>
71 </f:if>
72 </div>
73 </td>
74 </tr>
75 </f:for>
76 </tbody>
77 </table>
78 </div>
79 </html>