diff options
Diffstat (limited to 'templates/gitrefinery/profile.html')
-rw-r--r-- | templates/gitrefinery/profile.html | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/templates/gitrefinery/profile.html b/templates/gitrefinery/profile.html new file mode 100644 index 0000000..1661ae8 --- /dev/null +++ b/templates/gitrefinery/profile.html @@ -0,0 +1,58 @@ +{% extends "base.html" %} +{% load i18n %} + +{% comment %} + + gitrefinery-web - profile page template + + Copyright (C) 2013 Intel Corporation + Licensed under the MIT license, see COPYING.MIT for details + +{% endcomment %} + + +<!-- +{% autoescape on %} +{% block title_append %} - profile{% endblock %} +{% endautoescape %} +--> + +{% block content %} +{% autoescape on %} + +<form method="post" action="."> + {% for hidden in form.hidden_fields %} + {{ hidden }} + {% endfor %} + + {% if form.non_field_errors %} + <div class="form-group alert alert-danger"> + {{ form.non_field_errors }} + </div> + {% endif %} + + {% for field in form.visible_fields %} + {% if field.name in error_fields %} + <div class="form-group alert alert-danger"> + {{ field.errors }} + {% else %} + <div class="form-group"> + {% endif %} + <div class="control-label {% if field.required %}requiredlabel{% endif %}"> + {{ field.label_tag }} + </div> + <div class="controls"> + {{ field }} + </div> + </div> + {% endfor %} + + <input type="submit" class="btn btn-default" value="{% trans 'Save' %}" /> + <a class="btn btn-default" href="{{ return_url }}">{% trans 'Cancel' %}</a> + <a class="btn btn-danger" href="{% url 'delete_account' %}">{% trans 'Delete account' %}</a> + {% csrf_token %} +</form> + +{% endautoescape %} + +{% endblock %} |