mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 11:59:23 +00:00
Coherent create/edit/delete templates for elections
This commit is contained in:
@ -1,15 +0,0 @@
|
||||
{% extends "core/base.jinja" %}
|
||||
|
||||
{% block title %}
|
||||
{% trans %}Create{% endtrans %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>{% trans %}Create{% endtrans %}
|
||||
<section class="election__add-candidature">
|
||||
<form action="" method="post">{{form.as_p()}}
|
||||
<p><input type="submit" value="{% trans %}Save{% endtrans %}" /></p>
|
||||
{% csrf_token %}
|
||||
</form>
|
||||
</section>
|
||||
{% endblock content %}
|
@ -1,12 +0,0 @@
|
||||
{% extends "core/base.jinja" %}
|
||||
|
||||
{% block title %}
|
||||
{% trans %}Delete{% endtrans %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form action="" method="post">{% csrf_token %}
|
||||
<p>{% trans %}Are you sure you want to delete {% endtrans %}"{{ object }}"?</p>
|
||||
<input type="submit" value="Confirm" />
|
||||
</form>
|
||||
{% endblock content %}
|
@ -1,15 +0,0 @@
|
||||
{% extends "core/base.jinja" %}
|
||||
|
||||
{% block title %}
|
||||
{% trans %}Edit{% endtrans %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>{% trans %}Edit{% endtrans %}
|
||||
<section class="election__add-candidature">
|
||||
<form action="" method="post">{{form.as_p()}}
|
||||
<p><input type="submit" value="{% trans %}Save{% endtrans %}" /></p>
|
||||
{% csrf_token %}
|
||||
</form>
|
||||
</section>
|
||||
{% endblock content %}
|
Reference in New Issue
Block a user