Skip to content

Commit

Permalink
fix userprofile template padding (#1244)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkonie committed Aug 8, 2023
1 parent 3981ad6 commit edc12ea
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 30 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Fixed

- **General**
- Search in Sphinx docs build (#1245)
- **Userprofile**
- Template padding (#1244)


v0.13.0 (2023-06-01)
Expand Down
6 changes: 3 additions & 3 deletions userprofile/templates/userprofile/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
{% block title %}User Profile for {{ request.user.get_full_name }}{% endblock %}

{% block projectroles %}
<div class="row sodar-pr-content-title">

<div class="row sodar-pr-content-title pt-2">
<h2 class="sodar-pr-content-title">{{ request.user.get_full_name }}</h2>
<div class="sodar-pr-content-title-secondary text-muted">
User Profile
</div>
</div>

<div class="container-fluid sodar-page-container">

<div class="card" id="sodar-user-details-card">
<div class="card-header">
<h4>
Expand Down Expand Up @@ -86,6 +86,6 @@ <h4>
</dl>
</div>
</div>

</div>

{% endblock projectroles %}
54 changes: 27 additions & 27 deletions userprofile/templates/userprofile/settings_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,32 @@
{% endblock head_extend %}

{% block projectroles %}
<div class="row sodar-pr-content-title">
<h2 class="sodar-pr-content-title">{{ request.user.get_full_name }}</h2>
<div class="sodar-pr-content-title-secondary text-muted">
User Profile
</div>
</div>

<div class="row sodar-subtitle-container">
<h3>Update Settings</h3>
</div>

<div class="container-fluid sodar-page-container">
<form method="post">
{% csrf_token %}
{{ form | crispy }}
<div class="row">
<div class="btn-group ml-auto" role="group">
<a role="button" class="btn btn-secondary"
href="{{ request.session.real_referer }}">
<i class="iconify" data-icon="mdi:arrow-left-circle"></i> Cancel
</a>
<button type="submit" class="btn btn-primary">
<i class="iconify" data-icon="mdi:check-bold"></i> Update
</button>
</div>

<div class="row sodar-pr-content-title pt-2">
<h2 class="sodar-pr-content-title">{{ request.user.get_full_name }}</h2>
<div class="sodar-pr-content-title-secondary text-muted">User Profile</div>
</div>

<div class="row sodar-subtitle-container">
<h3>Update Settings</h3>
</div>

<div class="container-fluid sodar-page-container">
<form method="post">
{% csrf_token %}
{{ form | crispy }}
<div class="row">
<div class="btn-group ml-auto" role="group">
<a role="button" class="btn btn-secondary"
href="{{ request.session.real_referer }}">
<i class="iconify" data-icon="mdi:arrow-left-circle"></i> Cancel
</a>
<button type="submit" class="btn btn-primary">
<i class="iconify" data-icon="mdi:check-bold"></i> Update
</button>
</div>
</form>
</div>
</div>
</form>
</div>

{% endblock projectroles %}

0 comments on commit edc12ea

Please sign in to comment.