100 lines
5.1 KiB
Twig
100 lines
5.1 KiB
Twig
<div>
|
|
<h2 class="title">{% if LANG.id %}{{ dt.gM("Edit language data") }}{% else %}{{ dt.gM("Add new language") }}{% endif %}
|
|
{# TITLE INFO #}
|
|
<ul class="dx record-info">
|
|
{% if dt.chkP('SYS_SHOW_TABLE_IDS') %}<li>{{ dt.gM("ID") }}: <span>{% if LANG.id %}{{LANG.id}}{% else %}-{% endif %}</span></li>{% endif %}
|
|
<li>{{ dt.gM("Created") }}: <span>{% if LANG.lang_created %}{{LANG.lang_created}}{% else %}-{% endif %}</span></li>
|
|
<li>{{ dt.gM("Modified") }}: <span>{% if LANG.lang_modified %}{{LANG.lang_modified}}{% else %}-{% endif %}</span></li>
|
|
</ul>
|
|
<input type="hidden" value="{% if LANG.id %}{{LANG.id}}{% endif %}" id="id" name="id" />
|
|
</h2>
|
|
|
|
{# BASE DATA #}
|
|
<ul id="pbase" class="dx colX sbox p20">
|
|
<li>
|
|
<label for="lang_title">{{ dt.gM("Language title") }}:</label>
|
|
<div class="validate">
|
|
<input id="lang_title" name="lang_title" type="text" class="long" value="{% if LANG.lang_title %}{{LANG.lang_title}}{% endif %}"/>
|
|
</div>
|
|
</li><li>
|
|
<label for="lang_country">{{ dt.gM("Country") }}:</label>
|
|
<div class="validate">
|
|
<input id="lang_country" name="lang_country" type="text" class="normal" value="{% if LANG.lang_country %}{{LANG.lang_country}}{% endif %}"/>
|
|
</div>
|
|
</li><li>
|
|
<label for="lang_code">{{ dt.gM("URL code") }}:</label>
|
|
<div class="validate">
|
|
<input id="lang_code" name="lang_code" type="text" class="short" value="{% if LANG.lang_code %}{{LANG.lang_code}}{% endif %}"/>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
|
|
{# BASE DATA #}
|
|
<ul id="pbase" class="dx colX sbox p20">
|
|
<li>
|
|
<label for="lang_order">{{ dt.gM("Order") }}:</label>
|
|
<div class="validate">
|
|
<input id="lang_order" name="lang_order" type="text" class="short" value="{% if LANG.order %}{{LANG.order}}{% endif %}"/>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
|
|
{# BASE DATA #}
|
|
{#<ul id="pbase" class="dx col3 sbox p20">
|
|
<li>
|
|
<label for="lang_title">{{ dt.gM("Language title") }}:</label>
|
|
<div class="validate">
|
|
<input id="lang_title" name="lang_title" type="text" class="long" value="{% if LANG.lang_title %}{{LANG.lang_title}}{% endif %}"/>
|
|
</div>
|
|
</li><li>
|
|
<label for="lang_country">{{ dt.gM("Country") }}:</label>
|
|
<div class="validate">
|
|
<input id="lang_country" name="lang_country" type="text" class="normal" value="{% if LANG.lang_country %}{{LANG.lang_country}}{% endif %}"/>
|
|
</div>
|
|
</li><li>
|
|
<label for="lang_code">{{ dt.gM("URL code") }}:</label>
|
|
<div class="validate">
|
|
<input id="lang_code" name="lang_code" type="text" class="short" value="{% if LANG.lang_code %}{{LANG.lang_code}}{% endif %}"/>
|
|
</div>
|
|
</li><li>
|
|
<label for="lang_order">{{ dt.gM("Order") }}:</label>
|
|
<div class="validate">
|
|
<input id="lang_order" name="lang_order" type="text" class="short" value="{% if LANG.order %}{{LANG.order}}{% endif %}"/>
|
|
</div>
|
|
</li>
|
|
</ul>#}
|
|
|
|
{# SETTINGS DATA CHECKBOXES #}
|
|
<div id="psettings" class="sbox noskip show" >
|
|
<h3><a>{{ dt.gM("Permission settings") }}</a></h3>
|
|
<div style="display:none;">
|
|
<ul class="dx pblocks">
|
|
<li>
|
|
<input id="lang_blocked" name="lang_blocked" type="hidden" class="chk-value" value="{% if LANG.lang_blocked %}1{% endif %}"/>
|
|
<label>{{ dt.gM("Language blocked") }}:</label>
|
|
<p>{{ dt.gM("Indicates whether language is disabled or not") }}</p>
|
|
</li><li>
|
|
<input id="lang_type" name="lang_type" type="hidden" class="chk-value" value="{% if LANG.type %}1{% endif %}"/>
|
|
<label>{{ dt.gM("Language type") }}:</label>
|
|
<p>{{ dt.gM("Language type - public or cms side") }}</p>
|
|
<div class="on" style="display:none;">CMS</div>
|
|
<div class="off" style="display:none;">PUB</div>
|
|
</li><li>
|
|
<input id="lang_default" name="lang_default" type="hidden" class="chk-value" value="{% if LANG.default %}1{% endif %}"/>
|
|
<label>{{ dt.gM("Language is default") }}:</label>
|
|
<p>{{ dt.gM("Indicates if language is default") }}</p>
|
|
</li><li>
|
|
<input id="lang_cms_e" name="lang_cms_e" type="hidden" class="chk-value" value="{% if LANG.lang_cms_e %}1{% endif %}"/>
|
|
<label>{{ dt.gM("Language is visible in CMS") }}:</label>
|
|
<p>{{ dt.gM("Indicates if language is visible & available in cms translatins") }}</p>
|
|
</li><li>
|
|
<input id="lang_reset_e" name="lang_reset_e" type="hidden" class="chk-value" />
|
|
<label>{{ dt.gM("Reset Default language messages") }}:</label>
|
|
<p>{{ dt.gM("Resets all language translation messages to default ones") }}</p>
|
|
</li>
|
|
</ul>
|
|
<div class="clear"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<br/> |