From 9172b7f08a7dabde275253b47ad051600decbe7b Mon Sep 17 00:00:00 2001 From: Weitian LI Date: Sun, 27 Apr 2014 02:00:01 +0800 Subject: * updated 'profile_update' template: o account_profile_update.css account_profile_update.js o added fields 'reason', 'transcript', 'supplement' o supported upload files (optional, dynamical formset) * updated urls.py of 'password_reset' view --- account/templates/account/profile_update.html | 32 ++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'account/templates') diff --git a/account/templates/account/profile_update.html b/account/templates/account/profile_update.html index 1802bb0..2023aa9 100644 --- a/account/templates/account/profile_update.html +++ b/account/templates/account/profile_update.html @@ -1,6 +1,7 @@ {% extends 'base.html' %} {% load staticfiles %} {% load url from future %} +{% load i18n %} {% load bootstrap3 %} {# login template #} @@ -9,16 +10,45 @@ 更新个人信息 | 2014 SKA Summer School {% endblock %} +{% block css_extra %} + +{% endblock %} + {% block content %}

更新个人信息


-
+ {% csrf_token %} +
{% bootstrap_form form layout='horizontal' %} +
+
+
+ +
+

上传附件(可选)

+
+ +
+
+ {# bootstrap_formset formset layout='horizontal' #} + {{ formset.management_form }} + {% for form in formset.forms %} +
+ {% bootstrap_form form layout='horizontal' %} +
+
+ {% endfor %} {% buttons submit='提交' reset='重置' layout='horizontal' %}{% endbuttons %}
{% endblock %} +{% block js_extra %} + +{% endblock %} + {# vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} -- cgit v1.2.2