@ -17,13 +17,16 @@ class AktRabotForm(BaseModelForm):
'client',
'invoice',
'nds_value',
'nds_method',
'doc_text',
)
_radioselect = forms.RadioSelect
_textarea = forms.Textarea(attrs={'cols': 80, 'rows': 3})
widgets = {
'doc_text': _textarea,
'nds_method': forms.RadioSelect()
}
# nds_method = forms.ChoiceField(widget=forms.RadioSelect())
class AktRabotAdminForm(AktRabotForm):
@ -18,6 +18,7 @@
<div class="block" style="border-bottom: 1px solid #777; padding: 0 20px 15px 0;">
{% include 'docs/parts/form_field.html' with field=form.nds_value id="nds_value" classes="left" label="НДС" no_clear_after="True" %}
{% include 'docs/parts/form_field.html' with field=form.nds_method id="nds_method" classes="left nds-method" no_clear_after="True" %}
{% if formset %}
{% include 'docs/parts/form_tbl_items.html' %}