159 lignes
9.1 KiB
Twig
159 lignes
9.1 KiB
Twig
{% include "headitem.html.twig" with {title: "D3MXEXTSEARCH_SYNEDITOR"|translate} %}
|
|
|
|
<script type="text/javascript">
|
|
<!--
|
|
window.onload = function ()
|
|
{
|
|
{% if updatelist == 1 %}
|
|
top.oxid.admin.updateList('{{ oxid }}');
|
|
{% endif %}
|
|
let oField = top.oxid.admin.getLockTarget();
|
|
oField.onchange = oField.onkeyup = oField.onmouseout = top.oxid.admin.unlockSave;
|
|
}
|
|
-->
|
|
</script>
|
|
|
|
<style type="text/css">
|
|
<!--
|
|
|
|
fieldset {
|
|
border: 1px inset black;
|
|
background-color: #F0F0F0;
|
|
}
|
|
|
|
legend {
|
|
font-weight: bold;
|
|
}
|
|
|
|
dl dt {
|
|
font-weight: normal;
|
|
width: 55%;
|
|
}
|
|
|
|
.ext_edittext {
|
|
padding: 2px;
|
|
}
|
|
|
|
.edittext select.editinput {
|
|
width: auto;
|
|
}
|
|
-->
|
|
</style>
|
|
|
|
{% if readonly %}
|
|
{% set readonly = "readonly disabled" %}
|
|
{% else %}
|
|
{% set readonly = "" %}
|
|
{% endif %}
|
|
|
|
<form name="transfer" id="transfer" action="{{ oViewConf.getSelfLink()|raw}}" method="post">
|
|
{{ oViewConf.getHiddenSid()|raw }}
|
|
<input type="hidden" name="oxid" value="{{ oxid }}">
|
|
<input type="hidden" name="cl" value="{{ oViewConf.getActiveClassName() }}">
|
|
<input type="hidden" name="actshop" value="{{ shop.id }}">
|
|
<input type="hidden" name="editlanguage" value="{{ editlanguage }}">
|
|
</form>
|
|
|
|
<form name="myedit" id="myedit" action="{{ oViewConf.getSelfLink()|raw}}" method="post" style="padding: 0;margin: 0;height:0;">
|
|
{{ oViewConf.getHiddenSid()|raw }}
|
|
<input type="hidden" name="cl" value="{{ oViewConf.getActiveClassName() }}">
|
|
<input type="hidden" name="fnc" value="save">
|
|
<input type="hidden" name="oxid" value="{{ oxid }}">
|
|
<input type="hidden" name="editval[d3_extsearch_term__oxid]" value="{{ oxid }}">
|
|
<table style="width:98%;padding:0;border:0">
|
|
<tr>
|
|
<td class="edittext" style="vertical-align:top;padding-top:10px;padding-left:10px; width: 50%;">
|
|
|
|
<table style="padding:0;border:0">
|
|
<tr>
|
|
<td class="edittext" style="width:120px;">
|
|
<label for="term__word">{{ translate({ ident: "D3_EXTSEARCH_SYNED_MAIN_WORD" }) }}</label>
|
|
</td>
|
|
<td class="edittext">
|
|
<input type="text" class="editinput" size="32" maxlength="{{ edit.d3_extsearch_term__word.fldmax_length }}" id="term__word" name="editval[d3_extsearch_term__word]" value="{{ edit.getFieldData('word') }}" {{ readonly }}>
|
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_SYNED_MAIN_WORD_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_SYNED_MAIN_WORD_DESC")} %}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="edittext" style="width:120px;">
|
|
<label for="term__user_comment">{{ translate({ ident: "D3_EXTSEARCH_SYNED_MAIN_COMMENT" }) }}</label>
|
|
</td>
|
|
<td class="edittext">
|
|
<input type="text" class="editinput" size="32" maxlength="{{ edit.d3_extsearch_term__user_comment.fldmax_length }}" id="term__user_comment" name="editval[d3_extsearch_term__user_comment]" value="{{ edit.getFieldData('user_comment') }}" {{ readonly }}>
|
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_SYNED_MAIN_COMMENT_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_SYNED_MAIN_COMMENT_DESC")} %}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<!-- Anfang rechte Seite -->
|
|
<td class="edittext" style="text-align: left;vertical-align:top;width:100%;height:99%;padding-left:5px;padding-bottom:30px;padding-top:10px;">
|
|
<table style="padding:0;border:0">
|
|
<tr>
|
|
<td class="edittext" style="width:120px;">
|
|
<label for="term__synset_id">{{ translate({ ident: "D3_EXTSEARCH_SYNED_MAIN_SYNSETID" }) }}</label>
|
|
</td>
|
|
<td class="edittext">
|
|
{% if oxid != ' - 1' %}
|
|
<input type="text" class="editinput" size="32" maxlength="{{ edit.d3_extsearch_term__synset_id.fldmax_length }}" id="term__synset_id" name="editval[d3_extsearch_term__synset_id]" value="{{ edit.getFieldData('synset_id') }}" {{ readonly }}>
|
|
{% else %}
|
|
{{ oView.getNextSynsetId() }}
|
|
{% endif %}
|
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_SYNED_MAIN_SYNSETID_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_SYNED_MAIN_SYNSETID_DESC")} %}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="edittext" style="width:120px;">
|
|
<label for="synIsVisible">{{ translate({ ident: "D3_EXTSEARCH_SYNED_MAIN_ISVISIBLE" }) }}</label>
|
|
</td>
|
|
<td class="edittext">
|
|
<input type="hidden" name="synset[d3_extsearch_synset__is_visible]" value="0">
|
|
<input id="synIsVisible" class="edittext ext_edittext" type="checkbox" name="synset[d3_extsearch_synset__is_visible]" value="1" {% if synset.getFieldData('is_Visible') == 1 %}checked{% endif %} {{ readonly }}>
|
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_SYNED_MAIN_ISVISIBLE_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_SYNED_MAIN_ISVISIBLE_DESC")} %}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="edittext" style="width:120px;">
|
|
<label for="term__language_id">{{ translate({ ident: "D3_EXTSEARCH_SYNED_MAIN_LANGUAGE" }) }}</label>
|
|
</td>
|
|
<td class="edittext">
|
|
<select class="editinput" name="editval[d3_extsearch_term__language_id]" id="term__language_id" {{ readonly }}>
|
|
{% for oLanguage in oView.getLanguageList() %}
|
|
<option value="{{ oLanguage.id }}"{% if oLanguage.selected and oxid == ' - 1' or edit.getFieldData('language_id') == oLanguage.id %} selected{% endif %}>{{ oLanguage.name }} {% if oView.convertBin2Int(oLanguage.active) == 0 %}{{ translate({ ident: "D3_EXTSEARCH_SYNED_MAIN_LANGUAGE_DISABLED" }) }}{% endif %}</option>
|
|
{% endfor %}
|
|
</select>
|
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_SYNED_MAIN_LANGUAGE_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_SYNED_MAIN_LANGUAGE_DESC")} %}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="edittext" style="width:120px;">
|
|
{{ translate({ ident: "D3_EXTSEARCH_SYNED_MAIN_SYNONYMUSE" }) }}
|
|
</td>
|
|
<td class="edittext">
|
|
<input type="hidden" name="synset[d3_extsearch_synset__useforterms]" value="0">
|
|
<input id="synUseForTerms" class="edittext ext_edittext" type="checkbox" name="synset[d3_extsearch_synset__useforterms]" value="1" {% if synset.getFieldData('useForTerms') == 1 %}checked{% endif %} {{ readonly }}>
|
|
<label for="synUseForTerms">{{ translate({ ident: "D3_EXTSEARCH_SYNED_MAIN_SYNONYMUSEFORTERMS" }) }}</label> {% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_SYNED_MAIN_SYNONYMUSEFORTERMS_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_SYNED_MAIN_SYNONYMUSEFORTERMS_DESC")} %}<br>
|
|
<input type="hidden" name="synset[d3_extsearch_synset__useforattributes]" value="0">
|
|
<input id="synUseForAttributes" class="edittext ext_edittext" type="checkbox" name="synset[d3_extsearch_synset__useforattributes]" value="1" {% if synset.getFieldData('useForAttributes') == 1 %}checked{% endif %} {{ readonly }}>
|
|
<label for="synUseForAttributes">{{ translate({ ident: "D3_EXTSEARCH_SYNED_MAIN_SYNONYMUSEFORATTRIBUTES" }) }}</label> {% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_SYNED_MAIN_SYNONYMUSEFORATTRIBUTES_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_SYNED_MAIN_SYNONYMUSEFORATTRIBUTES_DESC")} %}<br>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</td>
|
|
<!-- Ende rechte Seite -->
|
|
</tr>
|
|
<tr>
|
|
<td class="edittext ext_edittext" style="text-align: left;" colspan="2">
|
|
<br>
|
|
<span class="d3modcfg_btn icon d3color-green">
|
|
<button type="submit" name="save" {{ readonly }}>
|
|
<i class="fa fa-check-circle fa-inverse"></i>{{ translate({ ident: "D3_EXTSEARCH_MAIN_SAVE" }) }}
|
|
</button>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
|
|
{% include "@d3modcfg_lib/admin/inc/inc.html.twig" %}
|