You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
3.6 KiB
84 lines
3.6 KiB
<div class="doc-email-form">
|
|
{% if not is_ajax %}
|
|
{% if form.non_field_errors %}<p class="error">{{ form.non_field_errors }}</p>{% endif %}
|
|
{% endif %}
|
|
|
|
<form id="doc-email-form" class="doc-email-form{% if is_ajax %} ajax-form{% endif %}" action="" method="post"{% if is_ajax %} title="Отправка документа"{% endif %}>
|
|
{% csrf_token %}
|
|
|
|
{% for hidden in form.hidden_fields %}
|
|
{{ hidden }}
|
|
{% endfor %}
|
|
|
|
{% if is_ajax %}<div class="errors-layout"></div>{% endif %}
|
|
|
|
<div id="to" class="field">
|
|
<div style="float: left; width: 130px; text-align: right; margin-right: 6px;">
|
|
E-mail получателя:{% if form.to.field.required %} <span class="required">*</span>{% endif %}
|
|
</div>
|
|
<div style="float: left; width: 210px;">
|
|
{{ form.to }}
|
|
{% if not is_ajax %}{{ form.to.errors }}{% endif %}
|
|
</div>
|
|
<div class="clear"></div>
|
|
</div>
|
|
|
|
<div id="body" class="field">
|
|
<div style="float: left; width: 130px; text-align: right; margin-right: 6px;">
|
|
Текст сообщения:{% if form.body.field.required %} <span class="required">*</span>{% endif %}
|
|
</div>
|
|
<div style="float: left; width: 210px;">
|
|
{{ form.body }}
|
|
{% if not is_ajax %}{{ form.body.errors }}{% endif %}
|
|
</div>
|
|
<div class="clear"></div>
|
|
</div>
|
|
|
|
<div id="doc_format" class="field hidden">
|
|
<div style="float: left; width: 130px; text-align: right; margin-right: 6px;">
|
|
Отправить как:
|
|
</div>
|
|
<div style="float: left; width: 210px;">
|
|
{{ form.doc_format }}
|
|
{% if not is_ajax %}{{ form.doc_format.errors }}{% endif %}
|
|
</div>
|
|
<div class="clear"></div>
|
|
</div>
|
|
|
|
{% if maybe_sign %}
|
|
<div id="insert_sign" class="field">
|
|
<div style="float: left; width: 346px; font-size: 11px; margin-top: 5px; word-break: break-all;">
|
|
<label for="{{ form.insert_sign.auto_id }}">
|
|
{{ form.insert_sign }}
|
|
Вставить подписи и печать
|
|
</label>
|
|
{% if not is_ajax %}{{ form.insert_sign.errors }}{% endif %}
|
|
</div>
|
|
<div class="clear"></div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div id="save_client_email" class="field">
|
|
<div style="float: left; width: 346px; font-size: 11px; margin-top: 5px; word-break: break-all;">
|
|
<label for="{{ form.save_client_email.auto_id }}">
|
|
{{ form.save_client_email }}
|
|
Сохранить этот e-mail в анкете контрагента
|
|
<span class='client'>«{{ obj.client.name }}»</span>
|
|
</label>
|
|
{% if not is_ajax %}{{ form.save_client_email.errors }}{% endif %}
|
|
</div>
|
|
<div class="clear"></div>
|
|
</div>
|
|
|
|
<div class="buttons">
|
|
{% if not is_ajax %}
|
|
<input type="submit" name="submit" value="Отправить" />
|
|
<input type="submit" name="_cancel" value="Отмена" />
|
|
{% else %}
|
|
<button type="submit" role="button" name="submit">Отправить</button>
|
|
<button class="close-form" type="button" role="close" name="close-form">Отмена</button>
|
|
{% endif %}
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
|