added SignalementForm templates
This commit is contained in:
8
suivi/templates/suivi/signalement_form.html
Normal file
8
suivi/templates/suivi/signalement_form.html
Normal 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>
|
||||
27
suivi/templates/suivi/signalement_form_inner.html
Normal file
27
suivi/templates/suivi/signalement_form_inner.html
Normal 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>
|
||||
Reference in New Issue
Block a user