Mercurial > agora
comparison templates/snippet/snippet_form.djhtml @ 190:a4f88ac85837
Changes: Now guest users cannot see revision history and they also cannot see snippets posted by registered users. To see snippets posted by registered users, one has to login.
author | ahsanalishahid <ahsan.ali.shahid@gmail.com> |
---|---|
date | Thu, 20 Jun 2013 17:17:16 +0500 |
parents | ba51d3b7740b |
children |
comparison
equal
deleted
inserted
replaced
189:683d41e124b7 | 190:a4f88ac85837 |
---|---|
1 {% load i18n %} | 1 {% load i18n %} |
2 | |
3 {% if show %} | |
2 <form method="post" action="" class="snippetform" | 4 <form method="post" action="" class="snippetform" |
3 enctype="multipart/form-data"> | 5 enctype="multipart/form-data"> |
4 {% if snippet_form.non_field_errors %} | 6 {% if snippet_form.non_field_errors %} |
5 <div class="errors"> | 7 <div class="errors"> |
6 {{ snippet_form.non_field_errors }} | 8 {{ snippet_form.non_field_errors }} |
38 <br /> | 40 <br /> |
39 <div class="center-align"> | 41 <div class="center-align"> |
40 <button type="submit" class="button large">{% trans "Paste it" %}</button> | 42 <button type="submit" class="button large">{% trans "Paste it" %}</button> |
41 </div> | 43 </div> |
42 </form> | 44 </form> |
45 {% endif %} |