blob: 7de54ded4f7dd04d3439380e292c0cca5405787e (
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
|
{% 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 %}
<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> {% trans 'Guardar' %}</button>
</div>
</div>
{% csrf_token %}
</form>
{% endblock %}
|