[BUGFIX] Impexp: Make CSH useable again
[Packages/TYPO3.CMS.git] / typo3 / sysext / impexp / Resources / Private / Partials / Export / Configuration.html
1 <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
2 <f:if condition="{inData.pagetree.id}">
3 <h3>
4 <f:translate key="makeconfig_exportPagetreeConfiguration" />
5 <f:be.buttons.csh table="xMOD_tx_impexp" field="pageTreeCfg" />
6 </h3>
7 <div class="row">
8 <div class="col-sm-2">
9 <label class="control-label"><f:translate key="makeconfig_pageId" /></label>
10 </div>
11 <div class="col-sm-10">
12 {inData.pagetree.id}
13 <f:form.hidden value="{inData.pagetree.id}" name="tx_impexp[pagetree][id]" />
14 </div>
15 </div>
16 <div class="row">
17 <div class="col-sm-2">
18 <label class="control-label">
19 <f:translate key="makeconfig_tree" />
20 <f:be.buttons.csh table="xMOD_tx_impexp" field="pageTreeDisplay" />
21 </label>
22 </div>
23 <div class="col-sm-10">
24 <f:if condition="{treeHTML}">
25 <f:then><f:format.raw>{treeHTML}</f:format.raw></f:then>
26 <f:else><f:translate key="makeconfig_noTreeExportedOnly" /></f:else>
27 </f:if>
28 </div>
29 <f:form.hidden value="{inData.pagetree.id}" name="tx_impexp[pagetree][id]" />
30 </div>
31 <div class="form-group">
32 <label for="impexp-pagetree-levels">
33 <f:translate key="makeconfig_levels" />
34 </label>
35 <f:be.buttons.csh table="xMOD_tx_impexp" field="pageTreeMode" />
36 <f:form.select class="form-control" name="tx_impexp[pagetree][levels]" id="impexp-pagetree-levels" options="{levelSelectOptions}" value="{inData.pagetree.levels}" />
37 </div>
38 <div class="form-group">
39 <label for="impexp-pagetree-includetables">
40 <f:translate key="makeconfig_includeTables" />
41 </label>
42 <f:be.buttons.csh table="xMOD_tx_impexp" field="pageTreeRecordLimit"/>
43 <f:form.select class="form-control" name="tx_impexp[pagetree][tables]" id="impexp-pagetree-includetables"
44 options="{tableSelectOptions}" multiple="multiple" value="{inData.pagetree.tables}"
45 size="{f:if(condition: '{tableSelectOptions -> f:count()} > 9', then: '10', else: '5')}" />
46 </div>
47 <div class="form-group">
48 <label for="impexp-pagetree-maxnumber">
49 <f:translate key="makeconfig_maxNumberOfRecords" />
50 </label>
51 <f:form.textfield class="form-control" name="tx_impexp[pagetree][maxNumber]" id="impexp-pagetree-maxnumber" value="{inData.pagetree.maxNumber}" />
52 </div>
53 </f:if>
54 <f:if condition="{records -> f:count()} > 0">
55 <h4>
56 <f:translate key="makeconfig_exportSingleRecord" />
57 <f:be.buttons.csh table="xMOD_tx_impexp" field="singleRecord" />
58 </h4>
59 <div class="row">
60 <div class="col-sm-2">
61 <label><f:translate key="makeconfig_record" /></label>
62 </div>
63 <div class="col-sm-10">
64 <f:for each="{records}" as="record">
65 <f:format.raw>{record.icon}</f:format.raw>
66 {record.title}
67 <f:form.hidden name="tx_impexp[record][]" value="{record.tableName}:{record.recordUid}" />
68 <br />
69 </f:for>
70 </div>
71 </div>
72 </f:if>
73 <f:if condition="{tableList -> f:count()} > 0">
74 <h4><f:translate key="makeconfig_exportTablesFromPages" /></h4>
75 <div class="row">
76 <div class="col-sm-2">
77 <label>
78 <f:translate key="makeconfig_tablePids" />
79 <f:be.buttons.csh table="xMOD_tx_impexp" field="tableList" />
80 </label>
81 </div>
82 <div class="col-sm-10">
83 <f:for each="{tableList}" as="table">
84 <f:translate key="makeconfig_tableListEntry" arguments="{0: table.tableName, 1: table.iconAndTitle}" />
85 <f:form.hidden name="tx_impexp[list][]" value="{table.reference}" />
86 <br />
87 </f:for>
88 </div>
89 </div>
90 <div class="form-group">
91 <label for="impexp-listcfg-maxnumber">
92 <f:translate key="makeconfig_maxNumberOfRecords" />
93 <f:be.buttons.csh table="xMOD_tx_impexp" field="tableListMaxNumber" />
94 </label>
95 <f:form.textfield class="form-control" name="tx_impexp[listCfg][maxNumber]" id="impexp-listcfg-maxnumber"value="{inData.listCfg.maxNumber}" />
96 </div>
97 </f:if>
98 <h4><f:translate key="makeconfig_relationsAndExclusions" /></h4>
99 <div class="form-group">
100 <label for="impexp-externalref-tables">
101 <f:translate key="makeconfig_includeRelationsToTables" />
102 </label>
103 <f:be.buttons.csh table="xMOD_tx_impexp" field="inclRelations" />
104 <f:form.select class="form-control" name="tx_impexp[external_ref][tables]" id="impexp-externalref-tables"
105 options="{externalReferenceTableSelectOptions}" multiple="multiple" value="{inData.external_ref.tables}"
106 size="{f:if(condition: '{externalReferenceTableSelectOptions -> f:count()} > 9', then: '10', else: '5')}" />
107 </div>
108 <div class="form-group">
109 <label for="impexp-externalstatic-tables">
110 <f:translate key="makeconfig_useStaticRelationsFor" />
111 </label>
112 <f:be.buttons.csh table="xMOD_tx_impexp" field="staticRelations" />
113 <f:form.select class="form-control" name="tx_impexp[external_static][tables]" id="impexp-externalstatic-tables"
114 options="{externalStaticTableSelectOptions}" multiple="multiple" value="{inData.external_static.tables}"
115 size="{f:if(condition: '{externalStaticTableSelectOptions -> f:count()} > 9', then: '10', else: '5')}" />
116 </div>
117 <div class="form-group">
118 <label for="checkShowStaticRelations">
119 <f:form.checkbox name="tx_impexp[showStaticRelations]" id="checkShowStaticRelations" value="1"
120 checked="{inData.showStaticRelations} == 1" />
121 <f:translate key="makeconfig_showStaticRelations" />
122 </label>
123 </div>
124
125 <div class="form-group">
126 <label class="control-label">
127 <f:translate key="makeconfig_excludeElements" />
128 <f:be.buttons.csh table="xMOD_tx_impexp" field="excludedElements" />
129 </label>
130 <p class="form-control-static">
131 <f:if condition="{inData.exclude -> f:count()} > 0">
132 <f:then>
133 <f:for each="{inData.exclude}" key="key" as="value" iteration="index">
134 <f:form.hidden name="tx_impexp[exclude][{key}]" value="1" />
135 <f:if condition="{index.isLast}">
136 <f:then>{key}</f:then>
137 <f:else>{key}, </f:else>
138 </f:if>
139 </f:for>
140 <label for="checkExclude">
141 <input type="checkbox" name="tx_impexp[exclude]" id="checkExclude" value="1" />
142 <f:translate key="makeconfig_clearAllExclusions" />
143 </label>
144 </f:then>
145 <f:else>
146 <f:translate key="makeconfig_noManuallyExcludedElementsYet" />
147 </f:else>
148 </f:if>
149 </p>
150 <p class="form-control-static">
151 <label for="checkExcludeDisabled">
152 <f:form.checkbox name="tx_impexp[excludeDisabled]" id="checkExcludeDisabled" value="1" checked="{inData.excludeDisabled}" />
153 <f:translate key="makeconfig_excludeDisabledElements" />
154 </label>
155 </p>
156 </div>
157
158 <div class="form-group">
159 <f:form.submit class="btn btn-default" value="{f:translate(key: 'makeadvanc_update')}" />
160 <f:form.hidden
161 name="tx_impexp[download_export_name]"
162 value="{nameSuggestion -> f:format.crop(maxCharacters: 30, append: '')}" />
163 </div>
164 </html>