Skip to content

Commit fdf72af

Browse files
authored
feat: change password design (#1631)
1 parent 3f9eb8a commit fdf72af

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

src/unfold/static/unfold/css/styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
{% extends "admin/base_site.html" %}
22
{% load admin_urls i18n static %}
33

4-
{% block extrastyle %}{{ block.super }}">{% endblock %}
4+
{% block extrastyle %}{{ block.super }}{% endblock %}
55

66
{% block content %}
77
<div id="content-main">
8-
<p class="bg-primary-100 mb-8 text-primary-600 px-3 py-3 rounded-default text-sm">
9-
{% translate 'Your password was changed.' %}
10-
</p>
8+
{% translate 'Your password was changed.' as message %}
9+
{% include "unfold/helpers/messages/success.html" with message=message %}
1110
</div>
1211
{% endblock %}

src/unfold/templates/registration/password_change_form.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,19 @@
1919

2020
{% include "unfold/helpers/messages/info.html" with message=message %}
2121

22-
{% include "unfold/helpers/field.html" with field=form.old_password %}
22+
<fieldset class="fieldset group border border-base-200 mb-6 rounded-default shadow-xs p-3 dark:border-base-800 *:last:mb-0">
23+
{% include "unfold/helpers/field.html" with field=form.old_password %}
2324

24-
{% include "unfold/helpers/field.html" with field=form.new_password1 %}
25+
{% include "unfold/helpers/field.html" with field=form.new_password1 %}
2526

26-
{% include "unfold/helpers/field.html" with field=form.new_password2 %}
27+
{% include "unfold/helpers/field.html" with field=form.new_password2 %}
28+
</fieldset>
2729

28-
<button type="submit" class="bg-primary-600 border border-transparent font-medium px-3 py-2 rounded-default text-sm text-white">
29-
{% translate 'Change password' %}
30-
</button>
30+
<div class="flex justify-end">
31+
<button type="submit" class="bg-primary-600 border border-transparent font-medium px-3 py-2 rounded-default text-sm text-white">
32+
{% translate 'Change password' %}
33+
</button>
34+
</div>
3135
</div>
3236
</form>
3337
</div>

0 commit comments

Comments
 (0)