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