parent
13a4817794
commit
217fec134b
15 changed files with 147 additions and 68 deletions
@ -1,46 +1,41 @@ |
||||
{% 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;"> |
||||
<div class="block" style="border-bottom: 1px solid #777; padding: 0 20px 5px 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.bank_account %} |
||||
</div> |
||||
<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.plat_doc_num id="plat_doc_num" classes="left" label="Номер платёжного документа" required="True" no_clear_after="True" %} |
||||
{% include 'docs/parts/form_field.html' with field=form.plat_doc_date id="plat_doc_date" classes="left" label="Дата платёжного документа" required="True" %} |
||||
{% include 'docs/parts/form_field.html' with field=form.bank_account %} |
||||
<div id="fixes"><input id="id_fixes" name="fixes" type="checkbox"> Исправления</div> |
||||
<div id='fix_block' class="block{% if not form.fixes.value %} hidden{% endif %}" style="border-bottom: 1px solid #777; padding: 0 20px 15px 0; margin-top: 0;"> |
||||
{% include 'docs/parts/form_field.html' with field=form.fix_doc_num id="fix_doc_num" classes="left" label="Номер исправления" required="True" no_clear_after="True" %} |
||||
{% include 'docs/parts/form_field.html' with field=form.fix_doc_date id="fix_doc_date" classes="left" label="Дата исправления" required="True" %} |
||||
</div> |
||||
<div id="avance"><input id="id_avance" name="avance" type="checkbox"> Аванс</div> |
||||
{% include 'docs/parts/form_field.html' with field=form.currency id="currency" classes="field" label="Валюта документа " %} |
||||
</div> |
||||
|
||||
|
||||
<div class="block" style="border-bottom: 1px solid #777; padding: 0 20px 5px 0;"> |
||||
{% include 'docs/parts/form_field.html' with field=form.fixes id="fixes" label="Исправления" no_clear_after="True" label_inline="True" %} |
||||
<div id='fix_block' class="block{% if not form.fixes.value %} hidden{% endif %}" style="border-bottom: 1px solid #777; padding: 0 20px 15px 0; margin-top: 0;"> |
||||
{% include 'docs/parts/form_field.html' with field=form.fix_doc_num id="fix_doc_num" classes="left" label="Номер исправления" required="True" no_clear_after="True" %} |
||||
{% include 'docs/parts/form_field.html' with field=form.fix_doc_date id="fix_doc_date" classes="left" label="Дата исправления" required="True" %} |
||||
</div> |
||||
{% include 'docs/parts/form_field.html' with field=form.avance id="avance" label="Аванс" no_clear_after="True" label_inline="True" %} |
||||
{% include 'docs/parts/form_field_client.html' with field=form.client required="True" is_ajax="True" %} |
||||
{% include 'docs/parts/form_field_client.html' with field=form.client required="True" is_ajax="True" label="Покупатель" %} |
||||
{% include 'docs/parts/form_field.html' with field=form.invoice id="invoice" classes="field hidden" label="Создать счёт-фактуру по счёту" %} |
||||
{% include 'docs/parts/form_field.html' with field=form.currency id="currency" classes="field" label="Валюта" %} |
||||
{% include 'docs/parts/form_field_sender.html' with field=form.sender id="sender" classes="field" label="Отправитель" %} |
||||
{% include 'docs/parts/form_field_receiver.html' with field=form.receiver id="receiver" classes="field" label="Получатель" %} |
||||
</div> |
||||
|
||||
<div class="block" style="border-bottom: 1px solid #777; padding: 0 20px 5px 0;"> |
||||
{% include 'docs/parts/form_field.html' with field=form.doc_reason id="doc_reason" classes="field" label="Основание" %} |
||||
{% include 'docs/parts/form_field_sender.html' with field=form.sender id="sender" %} |
||||
{% include 'docs/parts/form_field_receiver.html' with field=form.receiver id="receiver" %} |
||||
</div> |
||||
|
||||
<div class="block" style="border-bottom: 1px solid #777; padding: 0 20px 15px 0;"> |
||||
<div class="block" style="border-bottom: 1px solid #777; padding: 0 20px 5px 0;"> |
||||
{# {% include 'docs/parts/form_field.html' with field=form.doc_reason id="doc_reason" classes="field" label="Основание" %}#} |
||||
{% include 'docs/parts/form_field.html' with field=form.nds_value id="nds_value" classes="left nds_block__inline" label="НДС" no_clear_after="True" %} |
||||
{% include 'docs/parts/form_field.html' with field=form.nds_method id="nds_method" classes="left nds-method hidden" no_clear_after="True" %} |
||||
<div class="clear"></div> |
||||
</div> |
||||
|
||||
<div class="block" style="border-bottom: 1px solid #777; padding: 0 20px 15px 0;"> |
||||
{% if formset %} |
||||
{% include 'docs/faktura/form_tbl_items.html' %} |
||||
{% endif %} |
||||
</div> |
||||
{% endblock form_content %} |
||||
|
||||
{% endblock %} |
||||
|
||||
{% block js %} |
||||
{% endblock %} |
||||
{% block js %}{% endblock js %} |
||||
|
||||
@ -1,4 +1,4 @@ |
||||
<p>{{ label }}</p> |
||||
<input type="radio" name="{{ client_group|default:'client_group' }}" value="he_is"{% if default == 'he_is' %} checked{% endif %}> {{ label1|default:'Он же' }} |
||||
<input type="radio" name="{{ client_group|default:'client_group' }}" value="another"{% if default == 'another' %} checked{% endif %}>{{ label2|default:'Стороннее лицо' }} |
||||
<input type="radio" name="{{ client_group|default:'client_group' }}" value="nobody"{% if default == 'nobody' %} checked{% endif %}> Не указывать |
||||
{#<p>{{ label }}</p>#} |
||||
{#<input type="radio" name="{{ client_group|default:'client_group' }}" value="he_is"{% if default == 'he_is' %} checked{% endif %}> {{ label1|default:'Он же' }}#} |
||||
<input type="checkbox" name="{{ client_group|default:'client_group' }}" value="another"{% if default == 'another' %} checked{% endif %}><span class="checkbox__org">{{ label2|default:'Стороннее лицо' }}</span> |
||||
{#<input type="radio" name="{{ client_group|default:'client_group' }}" value="nobody"{% if default == 'nobody' %} checked{% endif %}> Не указывать#} |
||||
|
||||
@ -1,3 +1,2 @@ |
||||
{% include 'docs/parts/form_client_choices.html' with client_group="receiver_group" id="receiver_choices" classes="field" label="Получатель" default=receiver_choice %} |
||||
|
||||
{% include 'docs/parts/form_field_client.html' with field=form.receiver id="receiver" classes="field" label="Получатель" %} |
||||
{% include 'docs/parts/form_client_choices.html' with client_group="receiver_group" id="receiver_choices" classes="field" label2='Грузополучатель - стороннее лицо (не покупатель)' default=receiver_choice %} |
||||
{% include 'docs/parts/form_field_client.html' with field=form.receiver id="receiver" classes="field" label=' ' %} |
||||
|
||||
@ -1,2 +1,2 @@ |
||||
{% include 'docs/parts/form_client_choices.html' with client_group="sender_group" id="sender_choices" classes="field" label="Отправитель" label1='Подставить мои данные' default=sender_choice %} |
||||
{% include 'docs/parts/form_field_client.html' with field=form.sender id="sender" classes="field" label="Отправитель" %} |
||||
{% include 'docs/parts/form_client_choices.html' with client_group="sender_group" id="sender_choices" classes="field" label2='Грузоотправитель - стороннее лицо (не моя компания)' default=sender_choice %} |
||||
{% include 'docs/parts/form_field_client.html' with field=form.sender id="sender" classes="field" label=" " %} |
||||
|
||||
Loading…
Reference in new issue