From dd32561be577eefdfb17dce7f0b909fc0252789f Mon Sep 17 00:00:00 2001 From: llj Date: Fri, 3 Jun 2016 12:38:57 +0800 Subject: [PATCH] [passwd change] improvement & clean css --- media/css/seahub.css | 15 --------------- .../registration/password_change_form.html | 10 +++++----- 2 files changed, 5 insertions(+), 20 deletions(-) diff --git a/media/css/seahub.css b/media/css/seahub.css index 5dd0eab231..4d39adfa58 100644 --- a/media/css/seahub.css +++ b/media/css/seahub.css @@ -884,17 +884,6 @@ textarea:-moz-placeholder {/* for FF */ font-size:14px; margin:5px 0 20px; } -.new-narrow-panel .notice { - text-align: center; - margin-top:20px; - color:#666; -} -.new-narrow-panel-tip { - margin-top: 20px; - text-align: center; - color:#666; - font-size: 13px; -} /**** wide panel ****/ /* e.g. repo decrypt page */ .wide-panel { width: 928px; @@ -1017,10 +1006,6 @@ textarea:-moz-placeholder {/* for FF */ .op-confirm button { margin-right:8px; } -/**** forms ****/ -.field-feedback { - color:#666; -} /**** simplemodal ****/ #basic-modal-content { display:none; diff --git a/seahub/templates/registration/password_change_form.html b/seahub/templates/registration/password_change_form.html index 3f093592fa..44c744873d 100644 --- a/seahub/templates/registration/password_change_form.html +++ b/seahub/templates/registration/password_change_form.html @@ -9,11 +9,11 @@ {% block main_panel %}
-

{% trans "Password Modification" %}

- {% if force_passwd_change %} -

{% trans "Please update your password before continue." %}

- {% endif %} -
{% csrf_token %} +

{% trans "Password Modification" %}

+ {% csrf_token %} + {% if force_passwd_change %} +

{% trans "Please update your password before continue." %}

+ {% endif %} {{ form.old_password }} {{ form.old_password.errors }}