From d666b7654b29645d70f85012d3008928b38a4031 Mon Sep 17 00:00:00 2001 From: Weitian LI Date: Sun, 27 Apr 2014 13:24:55 +0800 Subject: * updated 'profile.html' to show new fields * added account_profile.css * fixes to 'save' method of model UserProfile and UserFile * fixes to 'UpdateProfileView' with formset 'instance' --- account/templates/account/profile.html | 43 ++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'account/templates') diff --git a/account/templates/account/profile.html b/account/templates/account/profile.html index 4f5532d..aa99650 100644 --- a/account/templates/account/profile.html +++ b/account/templates/account/profile.html @@ -10,11 +10,27 @@ 个人主页 | 2014 SKA Summer School {% endblock %} +{% block css_extra %} + +{% endblock %} + {% block content %}

个人主页


+ {# display alert if 'reason' empty, or transcript required but not provided #} + {% if not profile.reason %} +
+ “为什么参加”的信息是我们审核的重要参考,请您请及时填写。 +
+ {% endif %} + {% if profile.is_transcript_required and not profile.transcript %} +
+ “成绩单”是我们审核本科生(大三及以下)和决定资助的重要参考,请您请及时上传。 +
+ {% endif %} + @@ -47,6 +63,20 @@ + + + + + {% if profile.is_transcript_required %} + + + + + {% endif %} + + + + + {# user uploaded files #} + + + +
身份 {% trans profile.get_identify_value %}
为什么参加{% if profile.reason %}{{ profile.reason }}{% else %}请及时填写参加理由{% endif %}
成绩单{% if profile.transcript %}{{ profile.get_transcript_filename }}{% else %}请及时上传成绩单{% endif %}
补充说明{% if profile.supplement %}{{ profile.supplement }}{% else %}无{% endif %}
是否审定 @@ -75,6 +105,19 @@ {% endif %}
附件 + {% if userfiles %} + + {% endif %} +

-- cgit v1.2.2