166 lines
9.4 KiB
Twig
166 lines
9.4 KiB
Twig
<div>
|
|
<h2 class="title">
|
|
{% if MAIL.id %}{{ dt.gM("Edit Mail data") }}{% else %}{{ dt.gM("Add new Mail") }}{% endif %}
|
|
{# TITLE INFO #}
|
|
<ul class="dx record-info">
|
|
{% if dt.chkP('SYS_SHOW_TABLE_IDS') %}<li>{{ dt.gM("ID") }}: <span>{% if MAIL.id %}{{MAIL.id}}{% else %}-{% endif %}</span></li>{% endif %}
|
|
<li>{{ dt.gM("Created") }}: <span>{% if MAIL.mail_inserted %}{{MAIL.mail_inserted}}{% else %}-{% endif %}</span></li>
|
|
<li>{{ dt.gM("Modified") }}: <span>{% if MAIL.mail_modified %}{{MAIL.mail_modified}}{% else %}-{% endif %}</span></li>
|
|
</ul>
|
|
<input type="hidden" value="{% if MAIL.id %}{{MAIL.id}}{% endif %}" id="id" name="id" />
|
|
</h2>
|
|
<div class="att-body">
|
|
{% if MAIL %}{{MAIL.mail_attachment|raw}}{% endif %}
|
|
</div>
|
|
|
|
<div>
|
|
{# TABS CONTENT #}
|
|
<div id="base" class="lang p20 oh">
|
|
<div>
|
|
{% if not MAIL.id %}
|
|
<div id="checkboxes">
|
|
<div>
|
|
<label for="selMailType">{{ dt.gM("Possible Global mail sendout") }}:</label>
|
|
<ul id="base" class="dx pblocks col1 sbox">
|
|
<li>
|
|
<input id="newsletter_mails" name="newsletter_mails" type="hidden" class="chk-value" value="" />
|
|
<label for="newsletter_mails">{{ dt.gM("Newsletter mails") }}:</label>
|
|
<p>{{ dt.gM("To all newsletter mails") }}</p>
|
|
</li><li>
|
|
<input id="system_mails" name="system_mails" type="hidden" class="chk-value" value="" />
|
|
<label for="system_mails">{{ dt.gM("System notices mails") }}:</label>
|
|
<p>{{ dt.gM("To all System user mails") }}</p>
|
|
</li>
|
|
|
|
|
|
|
|
{#<li>#}
|
|
{#<label for="newsletter_mails">{{ dt.gM("Newsletter mails") }}</label>#}
|
|
{#<input id="newsletter_mails" name="newsletter_mails" type="checkbox" value="" class="bchk" />#}
|
|
{#<p>{{ dt.gM("To all newsletter mails") }}</p>#}
|
|
{#</li>#}
|
|
{#<li>#}
|
|
{#<label for="all_mails">{{ dt.gM("All system mails") }}</label>#}
|
|
{#<input id="all_mails" name="all_mails" type="checkbox" value="" class="bchk" />#}
|
|
{#<p>{{ dt.gM("To all system registered mails") }}</p>#}
|
|
{#</li>#}
|
|
</ul>
|
|
</div>
|
|
|
|
</div>
|
|
{% endif %}
|
|
<ul id="base" class="dx col2 sbox" style="max-width: 660px;">
|
|
{% if not MAIL.id %}
|
|
<li>
|
|
<label for="selMailType">{{ dt.gM("Mail type") }}:</label>
|
|
<div class="validate long">
|
|
<select id="selMailType" name="selMailType" class="chz">
|
|
<option value="">{{ dt.gM("-- Select --") }}</option>
|
|
{% if vMailTypes is iterable %}
|
|
{% for k,v in vMailTypes %}
|
|
<option {% if loop.first %} selected="selected" {% endif %} value="{{k}}">{{v.title}}{% if v.cl_data %} - {{v.cl_data}}{% endif %}</option>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</select>
|
|
</div>
|
|
</li>
|
|
{#<li>
|
|
<label for="selMailType">{{ dt.gM("Language") }}:</label>
|
|
<div class="validate short">
|
|
<select id="selMailType" name="selMailType" class="chz">
|
|
<option value="">{{ dt.gM("-- Select --") }}</option>
|
|
{% if vLangs is iterable %}
|
|
{% for v in vLangs %}
|
|
<option {% if iDefaultLang and iDefaultLang == v.id %} selected="selected" {% endif %} value="{{ v.id }}">{{v.lang_title}}</option>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</select>
|
|
</div>
|
|
</li>#}
|
|
{% endif %}
|
|
<li>
|
|
<label for="to">{{ dt.gM("To") }}:</label>
|
|
<div class="validate" style="padding-left: 0;">
|
|
<input type="text" id="to" name="to" type="text" class="long" {% if readonly %} disabled="" {% endif %} value="{% if MAIL.mail_owner %}{{MAIL.mail_owner}}{% endif %}" />
|
|
</div>
|
|
</li>
|
|
{% if MAIL.id %}
|
|
<li>
|
|
<label for="subject">{{ dt.gM("Subject") }}:</label>
|
|
<div class="validate" style="padding-left: 0;">
|
|
<input type="text" id="subject" name="subject" type="text" class="long" {% if readonly %} disabled="" {% endif %} value="{% if MAIL.mail_title %}{{MAIL.mail_title}}{% endif %}" />
|
|
</div>
|
|
</li>
|
|
{% endif %}
|
|
{#<li>
|
|
<label for="m">Send to all</label>
|
|
<input id="m" name="m" type="checkbox" value="" class="bchk" />
|
|
<p>{{ dt.gM("Send E-mail to all registered mails (newsletter)") }}</p>
|
|
</li>#}
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="clear"></div>
|
|
</div>
|
|
|
|
|
|
<br/>
|
|
<br/>
|
|
{% if not MAIL.id %}
|
|
<div class="tabs">
|
|
{# TRANSLATION DATA #}
|
|
<div id="translations" class="tab-cnt gbox">
|
|
{% if vLangs is iterable %}
|
|
{% for el in vLangs %}
|
|
{# TABS CONTENT #}
|
|
<div id="k{{el.id}}" class="lang-{{el.id}} sbox">
|
|
<ul class="dx col2">
|
|
<li>
|
|
<label for="title-{{el.id}}">{{ dt.gM("Title") }}:</label>
|
|
<div class="validate" style="padding-left: 0;">
|
|
<input type="text" id="title-{{el.id}}" name="title-{{el.id}}" class="long" value="{% if MDD[el.id].mail_title %}{{MDD[el.id].mail_title}}{% endif %}" />
|
|
</div>
|
|
<input id="mail_type-{{el.id}}" name="mail_type-{{el.id}}" class="upd-mail-ty" type="hidden" value="{% if MAIL.mail_type %}{{MAIL.mail_type}}{% endif %}" />
|
|
</li><li class="chk-box">
|
|
<input id="def-html-content-{{el.id}}" name="def-html-content-{{el.id}}" type="hidden" class="chk-value" value="{% if iDefaultLang and iDefaultLang == el.id %}1{% endif %}" />
|
|
<label for="def-html-content-{{el.id}}">{{ dt.gM("Default") }}:</label>
|
|
<p>{{ dt.gM("Used as bse if language not found") }}</p>
|
|
</li>
|
|
</ul>
|
|
<br/>
|
|
<br/>
|
|
<label for="WYSIWYG-{{el.id}}">{{ dt.gM("Mail HTML content") }}</label>
|
|
<div>
|
|
<textarea id="WYSIWYG-{{el.id}}" name="WYSIWYG-{{el.id}}" class="tinymce" style="width:100%;">
|
|
{% if MDD[el.id].mail_data %}{{ MDD[el.id].mail_data|raw }}{% endif %}
|
|
</textarea>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</div>
|
|
|
|
{# TABS #}
|
|
<div class="tab-btn">
|
|
<ul class="dx">
|
|
{% if vLangs is iterable %}
|
|
{% for el in vLangs %}
|
|
<li><a id="lang-{{el.id}}" href="javascript:;">{{el.lang_title}}</a></li>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
<div class="clear"></div>
|
|
</div>
|
|
{% else %}
|
|
<div class="sbox">
|
|
<label for="WYSIWYG">{{ dt.gM("Mail HTML content") }}</label>
|
|
<textarea id="WYSIWYG" name="WYSIWYG" class="tinymce" {% if readonly %} disabled="" {% endif %} style="width:100%;">
|
|
{% if MAIL.mail_content %}{{ MAIL.mail_content|raw }}{% endif %}
|
|
</textarea>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div> |