76df2de25724b8c3ca32daaa769700e4c4228b1b
[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 <div class="form-group">
47 <label for="checkAllowPHPScripts">
48 <f:form.checkbox name="tx_impexp[allowPHPScripts]" id="checkAllowPHPScripts" value="1"
49 checked="{inData.allowPHPScripts} == 1" />
50 <f:translate key="importdata_allowToWriteBanned" />
51 </label>
52 </div>
53 <f:if condition="!{inData.do_update}">
54 <div class="form-group">
55 <label for="checkForce_all_UIDS">
56 <f:form.checkbox name="tx_impexp[force_all_UIDS]" id="checkForce_all_UIDS" value="1"
57 checked="{inData.force_all_UIDS} == 1" />
58 <span class="text-danger">
59 <f:translate key="importdata_force_all_UIDS" />
60 </span>
61 </label>
62 <p class="help-block">(<f:translate key="importdata_force_all_UIDS_descr" />)</p>
63 </div>
64 </f:if>
65 </f:if>
66
67 <h4>
68 <f:be.buttons.csh table="xMOD_tx_impexp" field="action"><f:translate key="importdata_action" /></f:be.buttons.csh>
69 </h4>
70 <f:if condition="{inData.import_file}">
71 <f:then>
72 <f:form.submit class="btn btn-default" name="tx_impexp[new_import]" value="{f:translate(key: 'importdata_newImport')}" />
73 </f:then>
74 <f:else>
75 <f:form.submit class="btn btn-default" value="{f:translate(key: 'importdata_preview')}" />
76 <f:if condition="{inData.file}">
77 - <f:form.hidden name="not-set" value="1" id="t3js-submit-field" />
78 <f:if condition="{inData.do_update}">
79 <f:then>
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_update_299e" />
84 </f:form.button>
85 </f:then>
86 <f:else>
87 <f:form.button class="btn btn-default t3js-confirm-trigger"
88 type="button" name="tx_impexp[import_file]"
89 data="{title: '{f:translate(key: \'pleaseConfirm\')}', message: '{f:translate(key: \'makesavefo_areYouSure\')}'}">
90 <f:translate key="importdata_import" />
91 </f:form.button>
92 </f:else>
93 </f:if>
94 </f:if>
95 </f:else>
96 </f:if>
97 <f:form.hidden name="tx_impexp[action]" value="import" />
98
99 <h4>
100 <f:be.buttons.csh table="xMOD_tx_impexp" field="enableLogging"><f:translate key="importdata_enableLogging" /></f:be.buttons.csh>
101 </h4>
102 <div class="form-group">
103 <label for="checkEnableLogging">
104 <f:form.checkbox name="tx_impexp[enableLogging]" id="checkEnableLogging" value="1"
105 checked="{inData.enableLogging} == 1" />
106 <f:translate key="importdata_writeIndividualDbActions" />
107 </label>
108 <p class="help-block">(<f:translate key="importdata_thisIsDisabledBy" />)</p>
109 </div>
110 </html>