Files
modoboa/modoboa/extensions/webmail/templates/webmail/compose.html
T
Vincent Génieux 24bac0e4dd issue #413
Added: email checking for to/cc/cci in webmail
2015-02-28 17:32:19 +01:00

44 lines
1.8 KiB
HTML

{% load i18n form_tags %}{% load url from future %}
<form class="form-horizontal" method="POST" action="{{ posturl }}" id="composemail">
{% csrf_token %}
<div id="compose-container">
<div id="mailheader">
<div class="form-group{% if form.errors.to %} has-error{% endif %}">
<label class="col-sm-1 control-label" for="id_to">{% trans "To" %}</label>
<div class="col-sm-8">
<input id="id_to" name="to" class="form-control" value="{% if form.to.value %}{{ form.to.value }}{% endif %}"{% if form.to.errors %} placeholder="{% for error in form.to.errors %}{{ error }}{% endfor %}" title="{% for error in form.to.errors %}{{ error }}{% endfor %}"{% endif %}>
</div>
{% if not form.cc.value %}
<div class="col-sm-2">
<button id="add_cc" class="btn btn-default btn-xs"><span class="fa fa-plus"></span> {% trans "Cc" %}</button>
<button id="add_cci" class="btn btn-default btn-xs"><span class="fa fa-plus"> {% trans "Cci" %}</span></button>
</div>
{% endif %}
</div>
{% if form.cc.value %}
{% render_field form.cc label_width="col-sm-1" %}
{% render_field form.cci label_width="col-sm-1" %}
{% else %}
{% render_field form.cc label_width="col-sm-1" hidden=True %}
{% render_field form.cci label_width="col-sm-1" hidden=True %}
{% endif %}
{% render_field form.subject label_width="col-sm-1" %}
</div>
<div id="body_container">
{% if body %}
<textarea id="id_body" name="body" class="form-control editor">{% if bodyheader %}{{ bodyheader }}{% endif %}
{{ body }}
</textarea>
{% else %}
<textarea id="id_body" name="body" class="form-control editor"></textarea>
{% endif %}
</div>
</div>
</form>