1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-02 07:47:32 +00:00

Don't show form error when not ENABLE_UPDATE_USER_INFO

This commit is contained in:
lian 2018-12-29 11:59:04 +08:00
parent 38fcedbc2d
commit 7063fd03d4

View File

@ -49,9 +49,12 @@
<form action="" method="post">{% csrf_token %}
<label>{% trans "Name:" context "true name" %}</label><input type="text" name="nickname" value="{{ form.data.nickname }}" class="input" {% if not ENABLE_UPDATE_USER_INFO %} disabled {% endif %}/>
{% if ENABLE_UPDATE_USER_INFO %}
{% for error in form.nickname.errors %}
<span class="error">{{ error|escape }}</span>
{% endfor %}
{% endif %}
<br/>
{% if form.data.login_id %}