diff options
author | Code 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) |
commit | 9c437f5215b78312bd21f3e740c7a9869acb1a44 (patch) | |
tree | e9a7ab2390ccc747f39086cb28cced413b87d38b /webapp | |
parent | 047865315742a11f3116eef8f313990fe71f3416 (diff) |
do not show "guardar" button when structure is ready only
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/polls/templates/poll-structure-form.html | 4 |
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> {% trans 'Guardar' %}</button> </div> </div> + {% endif %} {% csrf_token %} </form> -{% endblock %}
\ No newline at end of file +{% endblock %} |