added SignalementForm templates

This commit is contained in:
Arthur Gerbaud
2016-08-24 18:18:31 +02:00
parent 746c21e52b
commit 9ac005e181
2 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
<div class="panel panel-warning">
<div class="panel-heading">
<h4 class="panel-title">Signalement</h4>
</div>
<div class="panel-body">
{% include "suivi/signalement_form_inner.html" %}
</div>
</div>

View File

@@ -0,0 +1,27 @@
{% load bootstrap3 %}
<form action="" method="POST">{% csrf_token %}
{% bootstrap_form_errors form %}
{% with "inline" as layout %}
<div class="form-group form-{{layout}} well">
<label class="control-label col-md-2" for="id_source">
Source
</label>
{% bootstrap_field form.source layout=layout %}
{% bootstrap_field form.created_date layout=layout %}
{% bootstrap_field form.created_time layout=layout %}
</div> {% endwith %}
<div class="well">
{% with "horizontal" as layout %}
<div class="form-group form-{{layout}}">
{% bootstrap_field form.nom layout=layout %}
{% bootstrap_field form.prenom layout=layout %}
{% bootstrap_field form.genre layout=layout %}
{% bootstrap_field form.age layout=layout %}
</div> {% endwith %}
</div>
{% with "horizontal" as layout %}
<div class="form-group form-{{layout}}">
{% bootstrap_field form.text layout=layout %}
</div> {% endwith %}
<div class="pull-right">{% bootstrap_button "Enregistrer le signalement" button_type="submit" %}</div>
</form>