Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webapp/polls/templates/poll-structure-form.html
blob: 0b6ed50d32addf6fcb98a9ead691ba702e89aecd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{% extends "base-poll.html" %}
{% load i18n poll_tags %}

{% block title %}Estructura de encuesta{% endblock %}

{% block extra_css %}
    <style type="text/css">
        body { padding-top: 40px; }
    </style>

    <link href="{{ STATIC_URL }}css/bootstrap-fileupload.css" rel="stylesheet" />
{% endblock %}

{% block main_container %}
    <script src="{{ STATIC_URL }}js/bootstrap-fileupload.js"></script>

    <center><h2>{{ poll.name|capfirst }}</h2></center>

    {% if errors %}
        <div class="control-group error">
            <label class="control-label">
                <ul>
                    {% for error in errors %}
                        <li>{{ error }}</li>
                    {% endfor %}
                </ul>
            </label>
        </div>
    {% endif %}

    <form class="form-inline" method="post" action="" enctype="multipart/form-data">

        <input type="hidden" name="poll_id" value="{{ poll.id }}" >

        {% if structure.id %}
            <input type="hidden" name="id" value="{{ structure.id }}" />
        {% endif %}

        {% render_structure structure %}

        {% if not structure.is_read_only %}
        <div class="ps-form-toolbar btn-toolbar clearfix">
            <div class="btn-group">
                <button name="save" class="btn btn-primary"><i class="icon-white icon-edit"></i>&nbsp;{% trans 'Guardar' %}</button>
            </div>
        </div>
        {% endif %}

        {% csrf_token %}

    </form>

{% endblock %}