Import.html 4.58 KB
Newer Older
1
2
3
4
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<h3><f:translate key="importdata_selectFileToImport" /></h3>
<div class="form-group">
	<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
7
8
9
10
11
12
13
	</label>
	<f:form.select name="tx_impexp[file]" class="form-control" id="impexp-file" value="{inData.file}" options="{fileSelectOptions}" />
	<p class="help-block">{importPath}</p>
	<f:if condition="{import.compress}">
		<f:else><span class="text-danger"><f:translate key="importdata_noteNoDecompressorAvailable" /></span></f:else>
	</f:if>
</div>
<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
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
</h4>
<div class="form-group">
	<label for="checkDo_update">
		<f:form.checkbox name="tx_impexp[do_update]" id="checkDo_update" value="1" checked="{inData.do_update} == 1" />
		<f:translate key="importdata_updateRecords" />
	</label>
	<p class="help-block">(<f:translate key="importdata_thisOptionRequiresThat" />)</p>
</div>
<f:if condition="{inData.do_update}">
	<div class="form-group">
		<label for="checkGlobal_ignore_pid">
			<f:form.checkbox name="tx_impexp[global_ignore_pid]" id="checkGlobal_ignore_pid" value="1" checked="{inData.global_ignore_pid} == 1" />
			<f:translate key="importdata_ignorePidDifferencesGlobally" />
		</label>
		<p class="help-block">(<f:translate key="importdata_ifYouSetThis" />)</p>
	</div>
</f:if>

<h4>
36
	<f:be.buttons.csh table="xMOD_tx_impexp" field="options"><f:translate key="importdata_options" /></f:be.buttons.csh>
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
</h4>
<div class="form-group">
	<label for="checkNotShowDiff">
		<f:form.checkbox name="tx_impexp[notShowDiff]" id="checkNotShowDiff" value="1" checked="{inData.notShowDiff} == 1" />
		<f:translate key="importdata_doNotShowDifferences" />
	</label>
	<p class="help-block">(<f:translate key="importdata_greenValuesAreFrom" />)</p>
</div>
<f:if condition="{isAdmin}">
	<div class="form-group">
		<label for="checkAllowPHPScripts">
			<f:form.checkbox name="tx_impexp[allowPHPScripts]" id="checkAllowPHPScripts" value="1"
											 checked="{inData.allowPHPScripts} == 1" />
			<f:translate key="importdata_allowToWriteBanned" />
		</label>
	</div>
	<f:if condition="!{inData.do_update}">
		<div class="form-group">
			<label for="checkForce_all_UIDS">
				<f:form.checkbox name="tx_impexp[force_all_UIDS]" id="checkForce_all_UIDS" value="1"
												 checked="{inData.force_all_UIDS} == 1" />
				<span class="text-danger">
					<f:translate key="importdata_force_all_UIDS" />
				</span>
			</label>
			<p class="help-block">(<f:translate key="importdata_force_all_UIDS_descr" />)</p>
		</div>
	</f:if>
</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
70
71
72
73
74
75
76
77
</h4>
<f:if condition="{inData.import_file}">
	<f:then>
		<f:form.submit class="btn btn-default" name="tx_impexp[new_import]" value="{f:translate(key: 'importdata_newImport')}" />
	</f:then>
	<f:else>
		<f:form.submit class="btn btn-default" value="{f:translate(key: 'importdata_preview')}" />
		<f:if condition="{inData.file}">
			- <f:form.hidden name="not-set" value="1" id="t3js-submit-field" />
78
79
			<f:if condition="{inData.do_update}">
				<f:then>
80
81
82
					<f:form.button class="btn btn-default t3js-confirm-trigger"
												 type="button" name="tx_impexp[import_file]"
												 data="{title: '{f:translate(key: \'pleaseConfirm\')}', message: '{f:translate(key: \'makesavefo_areYouSure\')}'}">
83
84
						<f:translate key="importdata_update_299e" />
					</f:form.button>
85
86
				</f:then>
				<f:else>
87
88
89
90
91
					<f:form.button class="btn btn-default t3js-confirm-trigger"
												 type="button" name="tx_impexp[import_file]"
												 data="{title: '{f:translate(key: \'pleaseConfirm\')}', message: '{f:translate(key: \'makesavefo_areYouSure\')}'}">
						<f:translate key="importdata_import" />
					</f:form.button>
92
93
				</f:else>
			</f:if>
94
95
96
97
98
99
		</f:if>
	</f:else>
</f:if>
<f:form.hidden name="tx_impexp[action]" value="import" />

<h4>
100
	<f:be.buttons.csh table="xMOD_tx_impexp" field="enableLogging"><f:translate key="importdata_enableLogging" /></f:be.buttons.csh>
101
102
103
104
105
106
107
108
109
110
</h4>
<div class="form-group">
	<label for="checkEnableLogging">
		<f:form.checkbox name="tx_impexp[enableLogging]" id="checkEnableLogging" value="1"
										 checked="{inData.enableLogging} == 1" />
		<f:translate key="importdata_writeIndividualDbActions" />
	</label>
	<p class="help-block">(<f:translate key="importdata_thisIsDisabledBy" />)</p>
</div>
</html>