Skip to content

Commit

Permalink
layout fixes for profile pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandravaphilips committed Oct 16, 2024
1 parent c578451 commit fd4fd82
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion peachjam/templates/account/email.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{% endblock %}
{% block account-content %}
<div class="card mb-5">
<h5 class="card-header">Email addresses</h5>
<h5 class="card-header">{% trans "Email addresses" %}</h5>
<div class="card-body">
{% with user.emailaddress_set.all as emails %}
{% if emails %}
Expand Down
10 changes: 5 additions & 5 deletions peachjam/templates/account/password_change.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
<div class="row">
<div class="col-lg-6 mx-auto">
<div class="card">
<h5 class="card-header">{% trans 'Change Your Password' %}</h5>
<h5 class="card-header">{% trans 'Change your password' %}</h5>
<div class="card-body">
<div class="mb-3">
<label for="{{ form.oldpassword.id_for_label }}">{{ form.oldpassword.label }}</label>
<label for="{{ form.oldpassword.id_for_label }}">Current password</label>
<input type="password"
class="form-control"
name="{{ form.oldpassword.name }}"
Expand All @@ -30,7 +30,7 @@ <h5 class="card-header">{% trans 'Change Your Password' %}</h5>
{% endif %}
</div>
<div class="mb-3">
<label for="{{ form.password1.id_for_label }}">{{ form.password1.label }}</label>
<label for="{{ form.password1.id_for_label }}">New password</label>
<input type="password"
class="form-control"
name="{{ form.password1.name }}"
Expand All @@ -44,7 +44,7 @@ <h5 class="card-header">{% trans 'Change Your Password' %}</h5>
{% endif %}
</div>
<div class="mb-3">
<label for="{{ form.password2.id_for_label }}">{{ form.password2.label }}</label>
<label for="{{ form.password2.id_for_label }}">New password (again)</label>
<input type="password"
class="form-control"
name="{{ form.password2.name }}"
Expand All @@ -59,7 +59,7 @@ <h5 class="card-header">{% trans 'Change Your Password' %}</h5>
</div>
</div>
<div class="card-footer text-end">
<button type="submit" class="btn btn-success" name="action">{% trans "Change Password" %}</button>
<button type="submit" class="btn btn-success" name="action">{% trans "Change password" %}</button>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion peachjam/templates/peachjam/_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
</a>
<ul class="dropdown-menu">
<li>
<a class="dropdown-item" href="{% url 'edit_account' %}">{% trans 'My Account' %}</a>
<a class="dropdown-item" href="{% url 'edit_account' %}">{% trans 'My account' %}</a>
{% if user.is_staff %}
<a class="dropdown-item" href="{% url 'admin:index' %}">{% trans 'Admin' %}</a>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion peachjam/templates/user_account/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% load i18n %}
{% block page-content %}
<div class="container">
<h1 class="mb-3 mt-3">{% trans "My Account" %}</h1>
<h1 class="mb-3 mt-3">{% trans "My account" %}</h1>
<div>
{% block account-tabs %}{% endblock %}
</div>
Expand Down

0 comments on commit fd4fd82

Please sign in to comment.