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.
63 lines
3.6 KiB
63 lines
3.6 KiB
{% extends "docs/_base/base_form.html" %}
|
|
|
|
{% load my_tags %}
|
|
|
|
{% block form_content %}
|
|
<div class="block" style="border-bottom: 1px solid #777; padding: 0 20px 15px 0; margin-top: 0;">
|
|
{% include 'docs/parts/form_field.html' with field=form.doc_num id="doc_num" classes="left" label="Номер" required="True" no_clear_after="True" %}
|
|
{% include 'docs/parts/form_field.html' with field=form.doc_date id="doc_date" classes="left" label="Дата выдачи" required="True" no_clear_after="True" %}
|
|
{% include 'docs/parts/form_field.html' with field=form.doc_expire_date id="doc_expire_date" classes="left" label="Срок действия" required="True" %}
|
|
</div>
|
|
|
|
<div class="block" style="border-bottom: 1px solid #777; padding: 0 20px 5px 0;">
|
|
{% include 'docs/parts/form_field_client.html' with field=form.client required="True" is_ajax="True" %}
|
|
|
|
{% include 'docs/parts/form_field.html' with field=form.dover_doc id="dover_doc" classes="field left" label="По документу №" required="True" no_clear_after="True" %}
|
|
{% include 'docs/parts/form_field.html' with field=form.dover_doc_date id="dover_doc_date" classes="field left" label="От" required="True" %}
|
|
|
|
<div style="font-size: 14px;">Кому выдана доверенность</div>
|
|
</div>
|
|
|
|
<div class="block" style="border-bottom: 1px solid #777; padding: 0 20px 5px 0;">
|
|
{% include 'docs/parts/form_field.html' with field=form.dover_name id="dover_name" label="Должность, ФИО" label_inline="True" required="True" help="Полностью, в дательном падеже." %}
|
|
|
|
{% include 'docs/parts/form_field.html' with field=form.dover_passport_ser id="dover_passport_ser" classes="field left" label="Серия и номер паспорта" label_inline="True" required="True" no_clear_after="True" %}
|
|
{% include 'docs/parts/form_field.html' with field=form.dover_passport_num id="dover_passport_num" classes="field left" label_inline="True" required="True" %}
|
|
|
|
{% include 'docs/parts/form_field.html' with field=form.dover_passport_org id="dover_passport_org" classes="field" label="Кем выдан" label_inline="True" required="True" %}
|
|
{% include 'docs/parts/form_field.html' with field=form.dover_passport_date id="dover_passport_date" classes="field" label="Дата выдачи" label_inline="True" required="True" %}
|
|
|
|
<div style="font-size: 14px;margin-top:15px;">Список ТМЦ для получения</div>
|
|
</div>
|
|
|
|
<div class="block" style="border-bottom: 1px solid #777; padding: 0 20px 15px 0;">
|
|
{% if formset %}
|
|
{% include 'docs/dover/form_tbl_items.html' %}
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block js %}
|
|
{% comment %}<script type="text/javascript">
|
|
{% include 'docs/_common_js/add_line_handler.js' %}
|
|
{% include 'docs/_common_js/calc_summa.js' %}
|
|
{% include 'docs/_common_js/calc_itogo.js' %}
|
|
|
|
function set_events() {
|
|
$("#tbl_items tr.row td.qty input").blur(calc_summa);
|
|
$("#tbl_items tr.row td.price input").blur(calc_summa);
|
|
|
|
$("#tbl_items tr.row td.qty input").blur(calc_itogo);
|
|
$("#tbl_items tr.row td.price input").blur(calc_itogo);
|
|
$("#tbl_items tr.row td.total_price input").blur(calc_itogo);
|
|
}
|
|
|
|
$(document).ready(function() {
|
|
EnterToTab.init(document.getElementById('aktrabot'), true);
|
|
$("#id_doc_date").datepicker({dateFormat:'dd.mm.yy'});
|
|
set_events();
|
|
calc_itogo();
|
|
add_line_handler();
|
|
});
|
|
</script>{% endcomment %}
|
|
{% endblock %}
|
|
|