84 lines
4.0 KiB
Twig
84 lines
4.0 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">
|
|
{{ MAIL.mail_attachment|raw }}
|
|
</div>
|
|
|
|
<div>
|
|
{# TABS CONTENT #}
|
|
<div id="base" class="lang sbox p20 oh">
|
|
|
|
<div>
|
|
<ul id="pbase" class="dx col1" style="width:400px;">
|
|
<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>
|
|
<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>
|
|
{#<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>
|
|
|
|
|
|
{% if MAIL.id is empty %}
|
|
<div id="checkboxes">
|
|
<div>
|
|
<ul id="base" class="dx pblocks col1 sbox">
|
|
<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>
|
|
<ul id="base" class="dx pblocks col1 sbox">
|
|
<li>
|
|
<label for="insert_magic_pixel">{{ dt.gM("Add tracking code") }}</label>
|
|
<input id="insert_magic_pixel" name="insert_magic_pixel" type="checkbox" value="" class="bchk" />
|
|
<p>{{ dt.gM("Insert mail tracking code") }}</p>
|
|
</li>
|
|
</ul>
|
|
</div>#}
|
|
</div>
|
|
{% endif %}
|
|
<div class="clearr"></div>
|
|
</div>
|
|
|
|
|
|
<br/>
|
|
<br/>
|
|
<div>
|
|
<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>
|
|
</div>
|
|
</div>
|
|
</div> |