[!!!][TASK] Remove import of PHP files of admins from impexp
[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:be.buttons.csh table="xMOD_tx_impexp" field="importFile"><f:translate key="importdata_file" /></f:be.buttons.csh>
6 </label>
7 <f:form.select name="tx_impexp[file]" class="form-control" id="impexp-file" value="{inData.file}" options="{fileSelectOptions}" />
8 <p class="help-block">{importPath}</p>
9 <f:if condition="{import.compress}">
10 <f:else><span class="text-danger"><f:translate key="importdata_noteNoDecompressorAvailable" /></span></f:else>
11 </f:if>
12 </div>
13 <h3><f:translate key="importdata_importOptions" /></h3>
14
15 <h4>
16 <f:be.buttons.csh table="xMOD_tx_impexp" field="update"><f:translate key="importdata_update" /></f:be.buttons.csh>
17 </h4>
18 <div class="form-group">
19 <label for="checkDo_update">
20 <f:form.checkbox name="tx_impexp[do_update]" id="checkDo_update" value="1" checked="{inData.do_update} == 1" />
21 <f:translate key="importdata_updateRecords" />
22 </label>
23 <p class="help-block">(<f:translate key="importdata_thisOptionRequiresThat" />)</p>
24 </div>
25 <f:if condition="{inData.do_update}">
26 <div class="form-group">
27 <label for="checkGlobal_ignore_pid">
28 <f:form.checkbox name="tx_impexp[global_ignore_pid]" id="checkGlobal_ignore_pid" value="1" checked="{inData.global_ignore_pid} == 1" />
29 <f:translate key="importdata_ignorePidDifferencesGlobally" />
30 </label>
31 <p class="help-block">(<f:translate key="importdata_ifYouSetThis" />)</p>
32 </div>
33 </f:if>
34
35 <h4>
36 <f:be.buttons.csh table="xMOD_tx_impexp" field="options"><f:translate key="importdata_options" /></f:be.buttons.csh>
37 </h4>
38 <div class="form-group">
39 <label for="checkNotShowDiff">
40 <f:form.checkbox name="tx_impexp[notShowDiff]" id="checkNotShowDiff" value="1" checked="{inData.notShowDiff} == 1" />
41 <f:translate key="importdata_doNotShowDifferences" />
42 </label>
43 <p class="help-block">(<f:translate key="importdata_greenValuesAreFrom" />)</p>
44 </div>
45 <f:if condition="{isAdmin}">
46 <f:if condition="!{inData.do_update}">
47 <div class="form-group">
48 <label for="checkForce_all_UIDS">
49 <f:form.checkbox name="tx_impexp[force_all_UIDS]" id="checkForce_all_UIDS" value="1"
50 checked="{inData.force_all_UIDS} == 1" />
51 <span class="text-danger">
52 <f:translate key="importdata_force_all_UIDS" />
53 </span>
54 </label>
55 <p class="help-block">(<f:translate key="importdata_force_all_UIDS_descr" />)</p>
56 </div>
57 </f:if>
58 </f:if>
59
60 <h4>
61 <f:be.buttons.csh table="xMOD_tx_impexp" field="action"><f:translate key="importdata_action" /></f:be.buttons.csh>
62 </h4>
63 <f:if condition="{inData.import_file}">
64 <f:then>
65 <f:form.submit class="btn btn-default" name="tx_impexp[new_import]" value="{f:translate(key: 'importdata_newImport')}" />
66 </f:then>
67 <f:else>
68 <f:form.submit class="btn btn-default" value="{f:translate(key: 'importdata_preview')}" />
69 <f:if condition="{inData.file}">
70 - <f:form.hidden name="not-set" value="1" id="t3js-submit-field" />
71 <f:if condition="{inData.do_update}">
72 <f:then>
73 <f:form.button class="btn btn-default t3js-confirm-trigger"
74 type="button" name="tx_impexp[import_file]"
75 data="{title: '{f:translate(key: \'pleaseConfirm\')}', message: '{f:translate(key: \'makesavefo_areYouSure\')}'}">
76 <f:translate key="importdata_update_299e" />
77 </f:form.button>
78 </f:then>
79 <f:else>
80 <f:form.button class="btn btn-default t3js-confirm-trigger"
81 type="button" name="tx_impexp[import_file]"
82 data="{title: '{f:translate(key: \'pleaseConfirm\')}', message: '{f:translate(key: \'makesavefo_areYouSure\')}'}">
83 <f:translate key="importdata_import" />
84 </f:form.button>
85 </f:else>
86 </f:if>
87 </f:if>
88 </f:else>
89 </f:if>
90 <f:form.hidden name="tx_impexp[action]" value="import" />
91
92 <h4>
93 <f:be.buttons.csh table="xMOD_tx_impexp" field="enableLogging"><f:translate key="importdata_enableLogging" /></f:be.buttons.csh>
94 </h4>
95 <div class="form-group">
96 <label for="checkEnableLogging">
97 <f:form.checkbox name="tx_impexp[enableLogging]" id="checkEnableLogging" value="1"
98 checked="{inData.enableLogging} == 1" />
99 <f:translate key="importdata_writeIndividualDbActions" />
100 </label>
101 <p class="help-block">(<f:translate key="importdata_thisIsDisabledBy" />)</p>
102 </div>
103 </html>