6cb6e8d6f6e23a36e24a759a80acf1a704652133
[Packages/TYPO3.CMS.git] / typo3 / sysext / wizard_crpages / Resources / Private / Templates / CreatePagesWizard.html
1 <f:be.pageRenderer loadJQuery="true" includeRequireJsModules="{0:'TYPO3/CMS/WizardCrpages/WizardCreatePages'}" />
2 <h1><f:translate key="{LLPrefix}wiz_crMany"/></h1>
3 <div>
4 <f:if condition="{pages}">
5 <f:then>
6 <div class="form-group">
7 <h4><f:translate key="{LLPrefix}wiz_newPages_currentMenu"/></h4>
8 <f:for each="{pages}" as="page">
9 <f:render section="Page" arguments="{page: page}" />
10 </f:for>
11 </div>
12 </f:then>
13 <f:else>
14 <h4><f:translate key="{LLPrefix}wiz_newPages"/>:</h4>
15 <div class="form-group t3js-wizardcrpages-container">
16 <f:render section="FormLine" arguments="{line: {index: '0', label: '1', llprefix: '{LLPrefix}', typeselect: '{typeSelect}'}}" />
17 <f:render section="FormLine" arguments="{line: {index: '1', label: '2', llprefix: '{LLPrefix}', typeselect: '{typeSelect}'}}" />
18 <f:render section="FormLine" arguments="{line: {index: '2', label: '3', llprefix: '{LLPrefix}', typeselect: '{typeSelect}'}}" />
19 <f:render section="FormLine" arguments="{line: {index: '3', label: '4', llprefix: '{LLPrefix}', typeselect: '{typeSelect}'}}" />
20 <f:render section="FormLine" arguments="{line: {index: '4', label: '5', llprefix: '{LLPrefix}', typeselect: '{typeSelect}'}}" />
21 </div>
22 </f:else>
23 </f:if>
24 <div class="form-group">
25 <input class="btn btn-default t3js-wizardcrpages-createnewfields" type="button" value="{f:translate(key: '{LLPrefix}wiz_newPages_addMoreLines')}" />
26 </div>
27 <div class="form-group">
28 <div class="checkbox">
29 <label for="createInListEnd">
30 <input type="checkbox" name="createInListEnd" id="createInListEnd" value="1" />
31 {f:translate(key: '{LLPrefix}wiz_newPages_listEnd')}
32 </label>
33 </div>
34 <div class="checkbox">
35 <label for="hidePages">
36 <input type="checkbox" name="hidePages" id="hidePages" value="1" />
37 {f:translate(key: '{LLPrefix}wiz_newPages_hidePages')}
38 </label>
39 </div>
40 <div class="checkbox">
41 <label for="hidePagesInMenus">
42 <input type="checkbox" name="hidePagesInMenus" id="hidePagesInMenus" value="1" />
43 {f:translate(key: '{LLPrefix}wiz_newPages_hidePagesInMenus')}
44 </label>
45 </div>
46 </div>
47 <div class="form-group">
48 <input class="btn btn-default" type="submit" name="create" value="{f:translate(key: '{LLPrefix}wiz_newPages_lCreate')}" />
49 <input class="btn btn-default" type="reset" value="{f:translate(key: '{LLPrefix}wiz_newPages_lReset')}" />
50 </div>
51
52 <f:if condition="{cshItem}">
53 <span class="btn btn-default btn-sm">{cshItem -> f:format.raw()}</span>
54 </f:if>
55 </div>
56
57 <script type="text/javascript">
58 var tpl = `<f:render section="FormLine" arguments="{line: {index: '[0]', label: '[1]', llprefix: '{LLPrefix}', typeselect: '{typeSelect}'}}" />`, i, line, div, bg, label;
59 </script>
60
61 <f:section name="Page">
62 <span class="text-nowrap" title="{page.titleAttribute}">
63 <core:iconForRecord table="pages" row="{page.record}" />{page.title}<br />
64 </span>
65 </f:section>
66
67 <f:section name="FormLine">
68 <div class="form-section" id="form-line-{line.index}">
69 <div class="row">
70 <div class="form-group col-xs-8">
71 <label for="page_new_{line.index}">
72 <f:translate key="{line.llprefix}wiz_newPages_page"/> {line.label}:
73 </label>
74 <div class="form-control-wrap">
75 <input class="form-control" type="text" id="page_new_{line.index}" name="data[pages][NEW{line.index}][title]" />
76 </div>
77 </div>
78 <div class="form-group col-xs-4">
79 <label for="page_new_select_{line.index}">
80 <f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.type"/>
81 </label>
82 <div class="form-control-wrap">
83 <div class="input-group">
84 <div id="page_new_icon_{line.index}" class="input-group-addon input-group-icon">
85 <core:iconForRecord table="pages" row="{id: '0'}" />
86 </div>
87 <select id="page_new_select_{line.index}" class="form-control form-control-adapt t3js-wizardcrpages-select-doktype" name="data[pages][NEW{line.index}][doktype]" data-target="#page_new_icon_{line.index}">
88 <f:for each="{line.typeselect}" as="typegroup" key="group">
89 <optgroup label="{f:translate(key: '{group}')}">
90 <f:for each="{typegroup}" as="type">
91 <option data-icon='{core:icon(identifier: "{type.2}")}' value="{type.1}">{f:translate(key: '{type.0}')}</option>
92 </f:for>
93 </optgroup>
94 </f:for>
95 </select>
96 </div>
97 </div>
98 </div>
99 </div>
100 </div>
101 </f:section>