Import.html 4.94 KB
Newer Older
1
2
3
<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">
4
5
6
    <label for="impexp-file">
        <f:be.buttons.csh table="xMOD_tx_impexp" field="importFile"><f:translate key="importdata_file" /></f:be.buttons.csh>
    </label>
7
    <f:form.select name="tx_impexp[file]" class="form-select" id="impexp-file" value="{inData.file}" options="{fileSelectOptions}" />
8
9
10
11
    <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>
12
13
</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
</h4>
<div class="form-group">
19
20
21
22
23
    <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>
24
25
</div>
<f:if condition="{inData.do_update}">
26
27
28
29
30
31
32
    <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>
33
34
35
</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
</h4>
<div class="form-group">
39
40
41
42
43
    <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>
44
45
</div>
<f:if condition="{isAdmin}">
46
47
48
49
50
51
52
53
54
55
56
57
    <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>
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
63
</h4>
<f:if condition="{inData.import_file}">
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
    <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" />
            <f:if condition="{inData.do_update}">
                <f:then>
                    <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_update_299e" />
                    </f:form.button>
                </f:then>
                <f:else>
                    <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>
                </f:else>
            </f:if>
        </f:if>
    </f:else>
89
90
91
92
</f:if>
<f:form.hidden name="tx_impexp[action]" value="import" />

<h4>
93
    <f:be.buttons.csh table="xMOD_tx_impexp" field="enableLogging"><f:translate key="importdata_enableLogging" /></f:be.buttons.csh>
94
95
</h4>
<div class="form-group">
96
97
98
99
100
101
    <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>
102
103
</div>
</html>