ElixirVault/www/system-brs-core/cms/cmsTextManager/tmpl/textManager.twig

168 lines
9.4 KiB
Twig

<div>
<h2 class="title">{% if DATA.id %}{{ dt.gM("Manage your article with WYSIWYG") }}{% else %}{{ dt.gM("Create articles with WYSIWYG") }}{% endif %}
{# TITLE INFO #}
<ul class="dx record-info">
{% if dt.chkP('SYS_SHOW_TABLE_IDS') %}<li>{{ dt.gM("ID") }}:&nbsp;<span>{% if DATA.id %}{{DATA.id}}{% else %}-{% endif %}</span></li>{% endif %}
<li>{{ dt.gM("Item created") }}:&nbsp;<span>{% if DATA.a_created %}{{DATA.a_created}}{% else %}-{% endif %}</span></li>
<li>{{ dt.gM("Modified") }}:&nbsp;<span>{% if DATA.a_modified %}{{DATA.a_modified}}{% else %}-{% endif %}</span></li>
</ul>
<input type="hidden" value="{% if DATA.id %}{{DATA.id}}{% endif %}" id="id" name="id" />
</h2>
{# INCLUDE BASE DATA for TEXT MANAGER#}
<div id="pbase" class="sbox p20">
<ul class="dx col4">
<li>
<label for="a_type">{{ dt.gM("Type") }}:</label>
<div class="validate type normal">
<select class="chz search" id="a_type" name="a_type">
<option value="">{{ dt.gM("-- Select --") }}</option>
{% if TYPES %}
{% for k,el in TYPES %}
<option value="{{k}}"{% if DATA.a_type and DATA.a_type == k %} selected="selected"{% endif %}>{{el.title}}</option>
{% endfor %}
{% endif %}
</select>
</div>
</li><li class="a_npk">
<label for="a_npk">{{ dt.gM("NPK") }}:</label>
<div class="validate">
<input id="a_npk" name="a_npk" type="text" class="short" value="{% if DATA.a_npk %}{{DATA.a_npk}}{% endif %}"/>
</div>
</li><li>
<label for="a_cl_id">{{ dt.gM("SVG Icon") }}:</label>
<div class="validate type normal">
<select class="chz" id="a_cl_id" name="a_cl_id">
<option value="">{{ dt.gM("-- Select --") }}</option>
{% if SVG %}
{% for k, el in SVG %}
<option value="{{k}}"{% if DATA.a_cl_id and DATA.a_cl_id == k %} selected="selected"{% endif %}>{{el.title}}</option>
{% endfor %}
{% endif %}
</select>
</div>
</li><li>
<label for="a_cat">{{ dt.gM("Categories") }}:</label>
<div class="validate type normal">
<select class="chz" id="a_cat" name="a_cat">
<option value="">{{ dt.gM("-- Select --") }}</option>
{% if CAT %}
{% for k,el in CAT %}
<option value="{{k}}"{% if DATA.a_cat and DATA.a_cat == k %} selected="selected"{% endif %}>{{el.title}}</option>
{% endfor %}
{% endif %}
</select>
</div>
</li><li style="display: none;">
<label for="a_sub_cat">{{ dt.gM("Categories") }}:</label>
<div class="validate type slong">
<select class="chz" id="a_sub_cat" name="a_sub_cat">
<option value="">{{ dt.gM("-- Select --") }}</option>
{% if SUBCAT %}
{% for k,el in SUBCAT %}
<option value="{% if el.a_cat and el.a_cat > 0 %}1{% else %}0{% endif %}_{{k}}"{% if DATA.a_cat and DATA.a_cat == k %} selected="selected"{% endif %}>{{el.title}}</option>
{% endfor %}
{% endif %}
</select>
</div>
</li>
</ul>
<br/><br/>
</div>
<div id="article" class="pedit noskip gbox p20">
<div class="tabs">
{# TRANSLATION DATA #}
<div class="tab-cnt article-data">
{% if lang %}
{% for el in lang %}
{# TABS CONTENT #}
<div id="k{{el.id}}" class="lang-{{el.id}} sbox">
<div class="a_title" style="">
<ul class="dx col1">
<li>
<label for="a_title-{{el.id}}">{{ dt.gM("Title") }}:</label>
<div class="validate">
<textarea id="a_title-{{el.id}}" name="a_title-{{el.id}}" class="long">{% if DATA['translations'][el.id].t %}{{DATA['translations'][el.id].t}}{% endif %}</textarea>
</div>
</li><li>
<label for="a_srecord-{{el.id}}">{{ dt.gM("Short desc.") }}:</label>
<div class="validate">
<input id="a_srecord-{{el.id}}" name="a_srecord-{{el.id}}" type="text" class="long" value="{% if DATA['translations'][el.id].srec %}{{DATA['translations'][el.id].srec}}{% endif %}"/>
</div>
</li>{#<li>
<label for="a_link-seg-{{el.id}}">{{ dt.gM("Url segment") }}:</label>
<div class="validate">
<input id="a_link-seg-{{el.id}}" name="a_link-seg-{{el.id}}" type="text" class="long" value="{% if DATA['translations'][el.id].l %}{{DATA['translations'][el.id].l}}{% endif %}"/>
</div>
</li><li>
<label for="a_link-{{el.id}}">{{ dt.gM("Url") }}:</label>
<div class="validate">
<input id="a_link-{{el.id}}" name="a_link-{{el.id}}" type="text" class="long" value="{% if DATA['translations'][el.id].l %}{{DATA['translations'][el.id].l}}{% endif %}"/>
</div>
</li>#}
</ul>
<ul class="dx col2">
<li>
<label for="a_link-{{el.id}}">{{ dt.gM("Url") }}:</label>
<div class="validate">
<input id="a_link-{{el.id}}" name="a_link-{{el.id}}" type="text" class="long" value="{% if DATA['translations'][el.id].l %}{{DATA['translations'][el.id].l}}{% endif %}"/>
</div>
</li><li>
<label for="a_btn_text-{{el.id}}">{{ dt.gM("Button text") }}:</label>
<div class="validate">
<input id="a_btn_text-{{el.id}}" name="a_btn_text-{{el.id}}" type="text" class="long" value="{% if DATA['translations'][el.id].v %}{{DATA['translations'][el.id].v}}{% endif %}"/>
</div>
</li>
</ul>
</div>
{#<div style="display: none;">
<label for="a_srecord-{{el.id}}">{{ dt.gM("Article short description") }}</label>
<div>
<textarea id="a_srecord-{{el.id}}" name="a_srecord-{{el.id}}" class="tinymce short skip" style="width:100%;">{% if DATA['translations'][el.id].srec %}{{DATA['translations'][el.id].srec}}{% endif %}</textarea>
</div><br/>
</div>#}
<div class="a_record">
<label for="a_record-{{el.id}}">{{ dt.gM("Article long description") }}</label>
<div>
<textarea id="a_record-{{el.id}}" name="a_record-{{el.id}}" class="tinymce" style="width:100%;">{% if DATA['translations'][el.id].rec %}{{DATA['translations'][el.id].rec}}{% endif %}</textarea>
</div><br/>
</div>
</div>
{% endfor %}
{% endif %}
</div>
{# TABS #}
<div class="tab-btn">
<ul class="dx">
{% if lang %}
{% for el in lang %}
<li><a id="lang-{{el.id}}" href="javascript:;">{{el.lang_title}}</a></li>
{% endfor %}
{% endif %}
</ul>
</div>
</div>
<br/><br/>
</div>
{# INCLUDE IMAGE/FILE UPLOAD DATA TPL #}
{{ include("include/fileUpload.twig") }}
{# SETTINGS DATA CHECKBOXES #}
<div id="psettings" class="settings sbox show">
<h3><a>{{ dt.gM("Settings") }}</a></h3>
<div style="display: none;">
<ul class="dx pblocks"><li>
<input id="a_disabled" name="a_disabled" type="hidden" class="chk-value" value="{% if DATA.a_disabled %}1{% endif %}"/>
<label for="a_disabled">{{ dt.gM("Item Disabled") }}:</label>
<p>{{ dt.gM("Indicates whether item is Disabled or not") }}</p>
</li></ul>
</div>
<br/><br/>
</div>
</div>