choice_form.html 1.53 KB
Newer Older
chris's avatar
chris committed
1
{% extends "base.html" %}
2
{% load staticfiles %}
chris's avatar
chris committed
3
{% load i18n %}
chris's avatar
chris committed
4

5
{% block title %}Nuages - {{object}}{% endblock %}
chris's avatar
chris committed
6 7

{% block head %}
8
<link href="{% static 'css/datetimepicker.css' %}" rel="stylesheet" type="text/css"/>
chris's avatar
chris committed
9
<script type="text/javascript" src="{% static 'js/bootstrap-datetimepicker.js' %}"></script>
chris's avatar
chris committed
10 11
{% endblock %}

Christophe Siraut's avatar
Christophe Siraut committed
12
{% block main %}
Christophe Siraut's avatar
Christophe Siraut committed
13 14 15 16
<h1>{% trans "Step 2 : Manage choices" %}</h1>
<div class="lead">{% trans "Provide possible dates for your meeting. You may adjust the time and add other details in the text field." %}</div>

<br />
17
    <form method="post" action=""> {% csrf_token %}
Christophe Siraut's avatar
Christophe Siraut committed
18
        <table>
chris's avatar
chris committed
19 20
            <thead>
                <tr>
Christophe Siraut's avatar
Christophe Siraut committed
21 22 23
                    <td>{% trans "Dates" %}</td>
                    <td>{% trans "Details" %}</td>
                    <td>{% trans "Delete" %}</td>
chris's avatar
chris committed
24 25
                </tr>
            </thead>
Christophe Siraut's avatar
Christophe Siraut committed
26 27 28 29 30 31 32
            <tbody>
                {% for form in formset.forms %}
                <tr>
                    <td>{{ form.id }}{{ form.choice }}</td>
                    <td>{{ form.details }}</td>
                    <td class="text-center">{% if form.instance.pk %}{{ form.DELETE }}{% endif %}</td>
                </tr>
chris's avatar
chris committed
33 34 35
                {% endfor %}
            </tbody>
        </table>
Christophe Siraut's avatar
Christophe Siraut committed
36
        {{ formset.management_form }}
chris's avatar
chris committed
37 38

        <p>
39
        <br /><br />
Christophe Siraut's avatar
Christophe Siraut committed
40 41
        <input type="submit" name="_addanother" value="{% trans 'Save and add another'%}" class="btn" />
        <input type="submit" name="_save" value="{% trans 'Save'%}" class="btn"/>
chris's avatar
chris committed
42 43 44 45 46 47
        </p>

        </tbody>
        </table>
    </form>
{% endblock %}