aboutsummaryrefslogtreecommitdiffstats
path: root/account
diff options
context:
space:
mode:
authorWeitian LI <liweitianux@gmail.com>2014-04-29 00:37:32 +0800
committerWeitian LI <liweitianux@gmail.com>2014-04-29 00:37:32 +0800
commit0f3c82eb7219a5bddf2609087df1472717225d5c (patch)
tree584bf3c4e12df9c7c989a8220fe7b11b3b22a579 /account
parentc3dd549d0001151333d1daf82a358b64a46fad29 (diff)
downloaddjango-skaschool-0f3c82eb7219a5bddf2609087df1472717225d5c.tar.bz2
* updated login.html with 'password-reset' style
* updated profile.html with transcript display * updated about.html with alert warning information * updated introduction with poster download link
Diffstat (limited to 'account')
-rw-r--r--account/templates/account/login.html14
-rw-r--r--account/templates/account/profile.html2
2 files changed, 10 insertions, 6 deletions
diff --git a/account/templates/account/login.html b/account/templates/account/login.html
index fb14550..62b46df 100644
--- a/account/templates/account/login.html
+++ b/account/templates/account/login.html
@@ -10,9 +10,10 @@
{% endblock %}
{% block content %}
- <div class="container">
- <h2>登录</h2>
- <br>
+<div class="container">
+ <h2>登录</h2>
+ <br>
+ <div class="row">
<form role="form" class="form-horizontal" method="post">
{% csrf_token %}
{% bootstrap_form form layout='horizontal' %}
@@ -20,8 +21,11 @@
</form>
<br>
- <p>忘记密码了? <a href="{% url 'password_reset' %}" class="btn btn-default">重置密码</a></p>
- </div>
+ <div class="col-md-4 col-md-push-1">
+ <p>忘记密码了? <a href="{% url 'password_reset' %}" class="btn btn-default">重置密码</a></p>
+ </div> <!-- col-md-2 -->
+ </div> <!-- row -->
+</div>
{% endblock %}
{# vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #}
diff --git a/account/templates/account/profile.html b/account/templates/account/profile.html
index f36c114..a615db5 100644
--- a/account/templates/account/profile.html
+++ b/account/templates/account/profile.html
@@ -67,7 +67,7 @@
<th class="profile-reason">为什么参加</th>
<td class="profile-reason-data">{% if profile.reason %}{{ profile.reason }}{% else %}<span class="label label-warning">请及时填写参加理由</span>{% endif %}</td>
</tr>
- {% if profile.is_transcript_required %}
+ {% if profile.is_transcript_required or profile.transcript %}
<tr>
<th class="profile-transcript">成绩单</th>
<td class="profile-transcript-data">{% if profile.transcript %}<a href="{{ profile.transcript.url }}">{{ profile.get_transcript_filename }}{% else %}<span class="label label-warning">请及时上传成绩单</span>{% endif %}</a></td>