Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorCode Raguet <ignacio.code@gmail.com>2013-09-25 20:45:12 (GMT)
committer Code Raguet <ignacio.code@gmail.com>2013-09-25 20:45:12 (GMT)
commit9c437f5215b78312bd21f3e740c7a9869acb1a44 (patch)
treee9a7ab2390ccc747f39086cb28cced413b87d38b /webapp
parent047865315742a11f3116eef8f313990fe71f3416 (diff)
do not show "guardar" button when structure is ready only
Diffstat (limited to 'webapp')
-rw-r--r--webapp/polls/templates/poll-structure-form.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/webapp/polls/templates/poll-structure-form.html b/webapp/polls/templates/poll-structure-form.html
index 7de54de..0b6ed50 100644
--- a/webapp/polls/templates/poll-structure-form.html
+++ b/webapp/polls/templates/poll-structure-form.html
@@ -38,14 +38,16 @@
{% 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 %} \ No newline at end of file
+{% endblock %}