Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webapp/polls/templates/poll-structure-form.html
diff options
context:
space:
mode:
authorRogelio Mita <rogeliomita@activitycentral.com>2013-03-09 05:46:01 (GMT)
committer Rogelio Mita <rogeliomita@activitycentral.com>2013-03-09 05:57:27 (GMT)
commit0c90434221ecabb8c6eea207cba7a8a403b0d947 (patch)
treeac04ce61204c16cf14eb70b0599824b7ca885d24 /webapp/polls/templates/poll-structure-form.html
parentd0895bd5ad8521a6f36fb5a06b3c8a1448e77dbb (diff)
Poll list correction, poll structure modification.
Diffstat (limited to 'webapp/polls/templates/poll-structure-form.html')
-rw-r--r--webapp/polls/templates/poll-structure-form.html51
1 files changed, 51 insertions, 0 deletions
diff --git a/webapp/polls/templates/poll-structure-form.html b/webapp/polls/templates/poll-structure-form.html
new file mode 100644
index 0000000..149e58d
--- /dev/null
+++ b/webapp/polls/templates/poll-structure-form.html
@@ -0,0 +1,51 @@
+{% extends "base-poll.html" %}
+{% load i18n poll_tags %}
+
+{% block title %}Estructura de encuesta{% endblock %}
+
+{% block extra_css %}
+ <style type="text/css">
+ body {
+ padding-top: 110px;
+ }
+ </style>
+{% endblock %}
+
+{% block main_container %}
+ <div style="margin-top: 40px;" class="alert alert-info navbar-fixed-top">Para generar dependencias, arrastré el ID de la opción hacia el campo "Depende de la opción". Las dependencias validas se realizan desde una opción de una pregunta de menor orden hacia una pregunta de mayor orden.</div>
+
+ <center><h2>{{ poll.name|capfirst }}</h2></center>
+
+ <h3>Estructura</h3>
+
+ {% 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="">
+
+ {% if structure.id %}
+ <input type="hidden" name="id" value="{{ structure.id }}" />
+ {% endif %}
+
+ {% render_structure structure %}
+
+ <div class="ps-form-toolbar btn-toolbar clearfix">
+ <div class="btn-group">
+ <button class="btn btn-primary"><i class="icon-white icon-circle-arrow-right"></i>&nbsp;{% trans 'Generar encuesta' %}</button>
+ </div>
+ </div>
+
+ {% csrf_token %}
+
+ </form>
+
+{% endblock %} \ No newline at end of file