diff options
Diffstat (limited to 'okupy/templates/settings-email.html')
-rw-r--r-- | okupy/templates/settings-email.html | 56 |
1 files changed, 29 insertions, 27 deletions
diff --git a/okupy/templates/settings-email.html b/okupy/templates/settings-email.html index e6a082c..51a5eba 100644 --- a/okupy/templates/settings-email.html +++ b/okupy/templates/settings-email.html @@ -6,40 +6,42 @@ <div id="page" class="span10"> <div> <h1>Email Settings</h1> - <h3>Manage your emails.</h3> + <h3>Manage your emails.</h3> <div class="form well"> - {{ email_settings.errors }} + {{ email_settings.errors }} {{ email_settings.non_field_errors }} <div class="row-fluid "> - <table class="table"> - <thead> - <tr> - <th>Email</th> - <th> </th> - </tr> - </thead> - <tbody> - {% for mail in user_info.email%} - <form action="." method="POST">{% csrf_token %} - <tr> - <td><input type="hidden" name="email" value="{{ mail }}" />{{mail}}</td> - <td><input class="btn" type="submit" name="delete" value="Delete" /></td> - </tr> - </form> - {% endfor %} - </tbody> - </table> - <form action="." method="POST">{% csrf_token %} - {{ email_settings.email.label_tag }} + <table class="table"> + <thead> + <tr> + <th>Email</th> + <th> </th> + </tr> + </thead> + <tbody> + {% for mail in user_info.email%} + <form action="." method="POST">{% csrf_token %} + <tr> + <td><input type="hidden" name="email" value="{{ mail }}" />{{mail}}</td> + <td><input class="btn" type="submit" name="delete" value="Delete" /></td> + </tr> + </form> + {% endfor %} + </tbody> + </table> + <form action="." method="POST">{% csrf_token %} + {{ email_settings.email.label_tag }} <input name="email" type="text" /> {{ email_settings.email.errors|striptags }} - <div class="row-fluid buttons"> - <input class="btn btn-primary" type="submit" value="Add email" /> - </div> - </form> - </div> + <div class="row-fluid buttons"> + <input class="btn btn-primary" type="submit" value="Add email" /> + </div> + </form> + </div> </div> </div> </div> + </div> +</div> {% endblock %} {# vim:se fileencoding=utf8 et ts=4 sts=4 sw=4 ft=htmldjango : #} |