[TASK] Add a "save and close" button in the extensionmanager
[Packages/TYPO3.CMS.git] / typo3 / sysext / extensionmanager / Resources / Private / Templates / Configuration / ShowConfigurationForm.html
1 {namespace em=TYPO3\CMS\Extensionmanager\ViewHelpers}
2 <f:layout name="main" />
3
4 <f:section name="docheader-buttons">
5 <f:be.buttons.icon uri="{f:uri.action(action:'index',controller:'List',additionalParams:{search:extension.key})}" icon="actions-view-go-back" title="{f:translate(key:'extConfTemplate.backToList')}" />
6 <f:be.buttons.icon uri="javascript:document.configurationform.submit();" icon="actions-document-save" title="{f:translate(key:'LLL:EXT:lang/locallang_common.xlf:save')}" />
7 <f:be.buttons.icon uri="#" icon="actions-document-save-close" title="{f:translate(key:'LLL:EXT:lang/locallang_common.xlf:saveAndClose')}" />
8 </f:section>
9
10 <f:section name="module-headline">
11 <h1>
12 <f:translate key="extConfTemplate.headline" />
13 {extension.key}
14 </h1>
15 </f:section>
16
17 <f:section name="Content">
18 <div id="typo3-extension-configuration-forms">
19 <div class="tabs">
20 <ul>
21 <f:for each="{configuration}" as="category" key="categoryNumber">
22 <f:if condition="{category.name}">
23 <li><a href="#category-{categoryNumber}">{category.name}</a></li>
24 </f:if>
25 </f:for>
26 </ul>
27 <f:form action="save" name="configurationform" class="validate">
28 <f:form.hidden name="extensionKey" value="{extension.key}" />
29 <f:for each="{configuration}" as="category" key="categoryNumber">
30 <f:if condition="{category.name}">
31 <div class="category" id="category-{categoryNumber}">
32 <f:for each="{category.subcategories}" as="subcategory">
33 <div class="subcategory">
34 <f:if condition="{subcategory.label}">
35 <f:then>
36 <h3>{subcategory.label}</h3>
37 </f:then>
38 <f:else>
39 <f:if condition="{category.subcategories->f:count()} > 1">
40 <h3><f:translate key="extConfTemplate.other" /></h3>
41 </f:if>
42 </f:else>
43 </f:if>
44 <f:for each="{subcategory.items}" as="item">
45 <div class="group">
46 <h4>{item.labelHeadline} <span class="info">[{category.name}.{item.name}]</span></h4>
47 <f:if condition="{item.labelText}">
48 <label for="{item.name}">{item.labelText}</label>
49 </f:if>
50 <f:if condition="{item.highlight}">
51 <span style="background:red; padding:1px 2px; color:#fff; font-weight:bold;">{item.highlight}</span>
52 </f:if>
53 <em:form.typoScriptConstants configuration="{item}" />
54 <f:if condition="{item.type} != 'user'">
55 <f:then>
56 <f:alias map="{label: '{f:translate(key: \'extConfTemplate.type.{item.type}\')}'}">
57 <f:if condition="{label}">
58 <f:then>
59 <span class="info">({label})</span>
60 </f:then>
61 </f:if>
62 </f:alias>
63 </f:then>
64 </f:if>
65 </div>
66 </f:for>
67 </div>
68 </f:for>
69 <f:if condition="{category.highlightText}">
70 {category.highlightText->f:format.raw()}
71 </f:if>
72 </div>
73 </f:if>
74 </f:for>
75 </f:form>
76 </div>
77 </div>
78 </f:section>