better use of CompteRendu proxy model
This commit is contained in:
@@ -16,13 +16,12 @@
|
||||
{% for form in inline_formset %}
|
||||
<div class="dynamic-formset">
|
||||
{% if form.id %}{% bootstrap_field form.id %}{% endif %}
|
||||
{% if form.instance.pk %}{% bootstrap_field form.note_ptr %}{% endif %}
|
||||
|
||||
{% bootstrap_field form.sujet size="small" layout="horizontal" %}
|
||||
{% if inline_formset.instance.pk %}
|
||||
{% bootstrap_field form.text size="small" layout="horizontal" %}
|
||||
{% if form.instance.pk %}
|
||||
{% bootstrap_field form.note_ptr %}
|
||||
{% bootstrap_field form.DELETE layout="horizontal" %}
|
||||
{% endif %}
|
||||
{% bootstrap_field form.text size="small" layout="horizontal" %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user