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

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

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

Christophe Siraut's avatar
Christophe Siraut committed
11
{% block main %}
chris's avatar
chris committed
12
    <h3>{% trans "Step 2 : Manage choices" %}</h3>
13
    <p class="filet">{% trans "Provide possible dates for your meeting. You may adjust the time and add other details in the text field." %}</p>
chris's avatar
chris committed
14
    <br />
15
    <form method="post" action=""> {% csrf_token %}
Christophe Siraut's avatar
Christophe Siraut committed
16
        <table>
chris's avatar
chris committed
17 18
            <thead>
                <tr>
Christophe Siraut's avatar
Christophe Siraut committed
19 20 21
                    <td>{% trans "Dates" %}</td>
                    <td>{% trans "Details" %}</td>
                    <td>{% trans "Delete" %}</td>
chris's avatar
chris committed
22 23
                </tr>
            </thead>
Christophe Siraut's avatar
Christophe Siraut committed
24 25 26 27 28 29 30
            <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
31 32 33
                {% endfor %}
            </tbody>
        </table>
Christophe Siraut's avatar
Christophe Siraut committed
34
        {{ formset.management_form }}
chris's avatar
chris committed
35 36

        <p>
37
        <br /><br />
Christophe Siraut's avatar
Christophe Siraut committed
38 39
        <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
40 41 42 43 44 45 46
        </p>

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