| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- {% extends 'base.html' %}
- {% load crispy_forms_tags %}
- {% load static %}
- {% block main %}
- <div class="card-body">
- {% if not page.output or page.err %}
- {{page.p_contenu|safe}}
- {% else %}
- {% if page.err %}{{page.err|safe}}{% endif %}
- {% if page.output and page.err %}<hr>{% endif %}
- {% if page.output %}{{page.output|safe|urlize}}{% endif %}
- {% endif %}
- {% if page.form and not page.output %}
- <div class="col-sm-9 p-0 m-3">
- <div class="card text-white bg-dark">
- {% if page.p_f_titre %}<div class="card-header">{{page.p_f_titre}}</div>{% endif %}
- <div class="card-body">
- <form action="{{page.p_adresse}}" method="post">{% csrf_token %}
- {{ page.form|crispy }}
- <input type="submit" class="btn btn-success mt-1" value="Valider">
- </form>
- </div>
- </div>
- </div>
- {% endif %}
- </div>
- {% endblock %}
- {% block right_panel %}
- {% if page.p_right != "" %}
- <div class="card-body">
- {% if page.form and page.output %}
- {% if page.p_f_titre %}<div class="card-header">{{page.p_f_titre}}</div>{% endif %}
- <form class="mb-2" action="{{page.p_adresse}}" method="post">{% csrf_token %}
- {{ page.form|crispy }}
- <input type="submit" class="btn btn-success mt-1" value="Valider">
- </form>
- {% endif %}
- {{page.p_right|safe}}
- </div>
- {% endif %}
- {% endblock %}
|