[BUGFIX] Impexp: Make CSH useable again
[Packages/TYPO3.CMS.git] / typo3 / sysext / impexp / Resources / Private / Partials / Import / Import.html
1 <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
2 <h3><f:translate key="importdata_selectFileToImport" /></h3>
3 <div class="form-group">
4 <label for="impexp-file">
5 <f:translate key="importdata_file" />
6 </label>
7 <f:be.buttons.csh table="xMOD_tx_impexp" field="importFile" />
8 <f:form.select name="tx_impexp[file]" class="form-control" id="impexp-file" value="{inData.file}" options="{fileSelectOptions}" />
9 <p class="help-block">{importPath}</p>
10 <f:if condition="{import.compress}">
11 <f:else><span class="text-danger"><f:translate key="importdata_noteNoDecompressorAvailable" /></span></f:else>
12 </f:if>
13 </div>
14 <h3><f:translate key="importdata_importOptions" /></h3>
15
16 <h4>
17 <f:translate key="importdata_update" />
18 <f:be.buttons.csh table="xMOD_tx_impexp" field="update" />
19 </h4>
20 <div class="form-group">
21 <label for="checkDo_update">
22 <f:form.checkbox name="tx_impexp[do_update]" id="checkDo_update" value="1" checked="{inData.do_update} == 1" />
23 <f:translate key="importdata_updateRecords" />
24 </label>
25 <p class="help-block">(<f:translate key="importdata_thisOptionRequiresThat" />)</p>
26 </div>
27 <f:if condition="{inData.do_update}">
28 <div class="form-group">
29 <label for="checkGlobal_ignore_pid">
30 <f:form.checkbox name="tx_impexp[global_ignore_pid]" id="checkGlobal_ignore_pid" value="1" checked="{inData.global_ignore_pid} == 1" />
31 <f:translate key="importdata_ignorePidDifferencesGlobally" />
32 </label>
33 <p class="help-block">(<f:translate key="importdata_ifYouSetThis" />)</p>
34 </div>
35 </f:if>
36
37 <h4>
38 <f:translate key="importdata_options" />
39 <f:be.buttons.csh table="xMOD_tx_impexp" field="options" />
40 </h4>
41 <div class="form-group">
42 <label for="checkNotShowDiff">
43 <f:form.checkbox name="tx_impexp[notShowDiff]" id="checkNotShowDiff" value="1" checked="{inData.notShowDiff} == 1" />
44 <f:translate key="importdata_doNotShowDifferences" />
45 </label>
46 <p class="help-block">(<f:translate key="importdata_greenValuesAreFrom" />)</p>
47 </div>
48 <f:if condition="{isAdmin}">
49 <div class="form-group">
50 <label for="checkAllowPHPScripts">
51 <f:form.checkbox name="tx_impexp[allowPHPScripts]" id="checkAllowPHPScripts" value="1"
52 checked="{inData.allowPHPScripts} == 1" />
53 <f:translate key="importdata_allowToWriteBanned" />
54 </label>
55 </div>
56 <f:if condition="!{inData.do_update}">
57 <div class="form-group">
58 <label for="checkForce_all_UIDS">
59 <f:form.checkbox name="tx_impexp[force_all_UIDS]" id="checkForce_all_UIDS" value="1"
60 checked="{inData.force_all_UIDS} == 1" />
61 <span class="text-danger">
62 <f:translate key="importdata_force_all_UIDS" />
63 </span>
64 </label>
65 <p class="help-block">(<f:translate key="importdata_force_all_UIDS_descr" />)</p>
66 </div>
67 </f:if>
68 </f:if>
69
70 <h4>
71 <f:translate key="importdata_action" />
72 <f:be.buttons.csh table="xMOD_tx_impexp" field="action" />
73 </h4>
74 <f:if condition="{inData.import_file}">
75 <f:then>
76 <f:form.submit class="btn btn-default" name="tx_impexp[new_import]" value="{f:translate(key: 'importdata_newImport')}" />
77 </f:then>
78 <f:else>
79 <f:form.submit class="btn btn-default" value="{f:translate(key: 'importdata_preview')}" />
80 <f:if condition="{inData.file}">
81 - <f:form.hidden name="not-set" value="1" id="t3js-submit-field" />
82 <f:if condition="{inData.do_update}">
83 <f:then>
84 <f:form.button class="btn btn-default t3js-confirm-trigger"
85 type="button" name="tx_impexp[import_file]"
86 data="{title: '{f:translate(key: \'pleaseConfirm\')}', message: '{f:translate(key: \'makesavefo_areYouSure\')}'}">
87 <f:translate key="importdata_update_299e" />
88 </f:form.button>
89 </f:then>
90 <f:else>
91 <f:form.button class="btn btn-default t3js-confirm-trigger"
92 type="button" name="tx_impexp[import_file]"
93 data="{title: '{f:translate(key: \'pleaseConfirm\')}', message: '{f:translate(key: \'makesavefo_areYouSure\')}'}">
94 <f:translate key="importdata_import" />
95 </f:form.button>
96 </f:else>
97 </f:if>
98 </f:if>
99 </f:else>
100 </f:if>
101 <f:form.hidden name="tx_impexp[action]" value="import" />
102
103 <h4>
104 <f:translate key="importdata_enableLogging" />
105 <f:be.buttons.csh table="xMOD_tx_impexp" field="enableLogging" />
106 </h4>
107 <div class="form-group">
108 <label for="checkEnableLogging">
109 <f:form.checkbox name="tx_impexp[enableLogging]" id="checkEnableLogging" value="1"
110 checked="{inData.enableLogging} == 1" />
111 <f:translate key="importdata_writeIndividualDbActions" />
112 </label>
113 <p class="help-block">(<f:translate key="importdata_thisIsDisabledBy" />)</p>
114 </div>
115 </html>