174 Zeilen
9.4 KiB
Twig
174 Zeilen
9.4 KiB
Twig
{% include "headitem.html.twig" with {title: "GENERAL_ADMIN_TITLE"|translate, box: "box"} %}
|
|
{{ style({ include: oViewConf.getModuleUrl('d3modcfg_lib', 'out/admin/src/d3_mod_cfg.min.css') }) }}
|
|
{{ style() }}
|
|
{% include "@d3importer/admin/errormessages.html.twig" %}
|
|
|
|
{% if readonly %}
|
|
{% set readonly = "readonly disabled" %}
|
|
{% else %}
|
|
{% set readonly = "" %}
|
|
{% endif %}
|
|
<style type="text/css">
|
|
<!--
|
|
select {
|
|
max-width : 375px;
|
|
}
|
|
-->
|
|
</style>
|
|
<script type="text/javascript">
|
|
<!--
|
|
{% if updatelist == 1 %}
|
|
UpdateList('{{ oxid }}');
|
|
{% endif %}
|
|
function UpdateList(sID) {
|
|
var oSearch = parent.list.document.getElementById("search");
|
|
oSearch.oxid.value = sID;
|
|
oSearch.submit();
|
|
}
|
|
function ChangeLine(iLine) {
|
|
var oFormEdit = document.getElementById("myedit");
|
|
oFormEdit.line.value = iLine;
|
|
oFormEdit.fnc.value = '';
|
|
oFormEdit.submit();
|
|
}
|
|
//-->
|
|
</script>
|
|
|
|
<form name="transfer" id="transfer" action="{{ oViewConf.getSelfLink()|raw }}" method="post">
|
|
<div>
|
|
{{ oViewConf.getHiddenSid()|raw }}
|
|
<input type="hidden" name="oxid" value="{{ oxid }}">
|
|
<input type="hidden" name="cl" value="{{ oViewConf.getActiveClassName() }}">
|
|
<input type="hidden" name="editlanguage" value="{{ editlanguage }}">
|
|
</div>
|
|
</form>
|
|
<form name="myedit" id="myedit" enctype="multipart/form-data" action="{{ oViewConf.getSelfLink()|raw }}" method="post">
|
|
<div>
|
|
{{ oViewConf.getHiddenSid()|raw }}
|
|
<input type="hidden" name="cl" value="{{ oViewConf.getActiveClassName() }}">
|
|
<input type="hidden" name="fnc" value="">
|
|
<input type="hidden" name="oxid" value="{{ oxid }}">
|
|
<input type="hidden" name="line" value="{{ actcsvline }}">
|
|
</div>
|
|
<table border="0" width="98%" style="border-collapse: collapse">
|
|
<colgroup>
|
|
<col width="25%">
|
|
<col width="75%">
|
|
</colgroup>
|
|
{% include "@d3importer/admin/d3_importer_inc_nav.html.twig" %}
|
|
{% if maxcsvline %}
|
|
{% block d3_d3importer_views_admin_tpl_d3_importer_cross %}
|
|
<tr>
|
|
<td class="edittext" style="border: 1px #7A7A7A solid; padding:5px; border-right:0; border-bottom:0">
|
|
{{ translate({ ident: "D3_IMPORTER_CROSS_IMPORTTYPE" }) }}
|
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_IMPORTER_CROSS_IMPORTTYPEINFO_HELP"), 'sHelpText': help_text("D3_IMPORTER_CROSS_IMPORTTYPEINFO_HELP")} %}
|
|
</td>
|
|
<td class="edittext"
|
|
style="border:1px #7A7A7A solid; padding:5px; border-left:0; border-bottom:0">
|
|
<select name="xmlval[IMPORTTYPE_CROSS]" {{ readonly }}>
|
|
<option value="import" {% if aProfile.IMPORTTYPE_CROSS == "import" %}SELECTED{% endif %}>
|
|
{{ translate({ ident: "D3_IMPORTER_CROSS_IMPORTTYPE1" }) }}
|
|
</option>
|
|
<option value="clearbefore" {% if aProfile.IMPORTTYPE_CROSS == "clearbefore" %}SELECTED{% endif %}>
|
|
{{ translate({ ident: "D3_IMPORTER_CROSS_IMPORTTYPE2" }) }}
|
|
</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="edittext" width="140" style="border-left: 1px #7A7A7A solid; padding:5px;">
|
|
{{ translate({ ident: "D3_IMPORTER_CROSS_IMPORTCOLUM" }) }} {{ count }}
|
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_IMPORTER_CROSS_IMPORTCOLUMINFO_HELP"), 'sHelpText': help_text("D3_IMPORTER_CROSS_IMPORTCOLUMINFO_HELP")} %}
|
|
</td>
|
|
<td class="edittext" style="border-right: 1px #7A7A7A solid; padding:5px;">
|
|
<select name="xmlval[IMPORTCOLUM_CROSS]" {{ readonly }}>
|
|
<option value="">{{ translate({ ident: "D3_IMPORTER_CROSS_NOASSIGN" }) }}</option>
|
|
{% for key, name in aCSVLines %}
|
|
<option value="{{ key }}"
|
|
{% if aProfile.IMPORTCOLUM_CROSS == key and aProfile.IMPORTCOLUM_CROSS != "" %}selected{% endif %}>
|
|
{{ name|striptags|truncate(70, " ...", false) }}
|
|
</option>
|
|
{% endfor %}
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="edittext" style="border: 1px #7A7A7A solid; padding:5px; border-right:0; border-top:0">
|
|
{{ translate({ ident: "D3_IMPORTER_CROSS_COLSEP" }) }}
|
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_IMPORTER_MAIN_COLSEPDESCRIPTION_HELP"), 'sHelpText': help_text("D3_IMPORTER_MAIN_COLSEPDESCRIPTION_HELP")} %}
|
|
</td>
|
|
<td class="edittext"
|
|
style="border:1px #7A7A7A solid; padding:5px; border-left:0; border-top:0">
|
|
<input type="text" size="3" maxlength="10" name="xmlval[COLUMSEPARATOR_CROSS]"
|
|
value="{{ aProfile.COLUMSEPARATOR_CROSS }}" {{ readonly }}>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="edittext" colspan="3"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="edittext"
|
|
style="border: 1px #7A7A7A solid; padding:5px; border-right: 0; border-bottom: 0">
|
|
{{ translate({ ident: "D3_IMPORTER_ACC_IMPORTTYPE" }) }}
|
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_IMPORTER_ACC_IMPORTTYPEINFO_HELP"), 'sHelpText': help_text("D3_IMPORTER_ACC_IMPORTTYPEINFO_HELP")} %}
|
|
</td>
|
|
<td class="edittext"
|
|
style="border: 1px #7A7A7A solid; padding:5px; border-left:0; border-bottom:0">
|
|
<select name="xmlval[IMPORTTYPE_ACC]" {{ readonly }}>
|
|
<option value="import" {% if aProfile.IMPORTTYPE_ACC == "import" %}SELECTED{% endif %}>
|
|
{{ translate({ ident: "D3_IMPORTER_ACC_IMPORTTYPE1" }) }}
|
|
</option>
|
|
<option value="clearbefore" {% if aProfile.IMPORTTYPE_ACC == "clearbefore" %}SELECTED{% endif %}>
|
|
{{ translate({ ident: "D3_IMPORTER_ACC_IMPORTTYPE2" }) }}
|
|
</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="edittext" style="border-left: 1px #7A7A7A solid; padding:5px;">
|
|
{{ translate({ ident: "D3_IMPORTER_ACC_IMPORTCOLUM" }) }} {{ count }}
|
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_IMPORTER_ACC_IMPORTCOLUMINFO_HELP"), 'sHelpText': help_text("D3_IMPORTER_ACC_IMPORTCOLUMINFO_HELP")} %}
|
|
</td>
|
|
<td class="edittext" style="border-right: 1px #7A7A7A solid; padding:5px;">
|
|
<select name="xmlval[IMPORTCOLUM_ACC]" {{ readonly }}>
|
|
<option value="">{{ translate({ ident: "D3_IMPORTER_ACC_NOASSIGN" }) }}</option>
|
|
{% for key, name in aCSVLines %}
|
|
<option value="{{ key }}"
|
|
{% if aProfile.IMPORTCOLUM_ACC == key and aProfile.IMPORTCOLUM_ACC != "" %}selected{% endif %}>
|
|
{{ name|striptags|truncate(70, " ...", false) }}
|
|
</option>
|
|
{% endfor %}
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="edittext" style="border:1px #7A7A7A solid; padding:5px; border-right:0; border-top:0">
|
|
{{ translate({ ident: "D3_IMPORTER_ACC_COLSEP" }) }}
|
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_IMPORTER_MAIN_COLSEPDESCRIPTION_HELP"), 'sHelpText': help_text("D3_IMPORTER_MAIN_COLSEPDESCRIPTION_HELP")} %}
|
|
</td>
|
|
<td class="edittext"
|
|
style="border:1px #7A7A7A solid; padding:5px; border-left:0; border-top:0">
|
|
<input type="text" size="3" maxlength="10" name="xmlval[COLUMSEPARATOR_ACC]"
|
|
value="{{ aProfile.COLUMSEPARATOR_ACC }}" {{ readonly }}>
|
|
</td>
|
|
</tr>
|
|
{% endblock %}
|
|
<tr>
|
|
<td class="edittext"></td>
|
|
<td class="edittext"><br>
|
|
<span class="d3modcfg_btn fixed icon status_ok">
|
|
<input type="submit" class="edittext" name="saveImportProfile"
|
|
value="{{ translate({ ident: "GENERAL_SAVE" }) }}"
|
|
onClick="document.myedit.fnc.value='saveImportProfile'" {{ readonly }}>
|
|
<span></span>
|
|
</span>
|
|
<br>
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
</table>
|
|
</form>
|
|
|
|
{% include "bottomnaviitem.html.twig" %}
|
|
{% include "bottomitem.html.twig" %}
|