Gallery-Archivist/archivist/apps/templates/accounts/profile.html

69 lines
2.4 KiB
HTML
Raw Permalink Normal View History

2024-07-02 22:10:32 +02:00
{% extends "layouts/base-electric.html" %}
{% load static %}
{% block title %} Sites {% endblock title %}
2024-08-21 20:20:37 +02:00
{% block stylesheets %}{% endblock stylesheets %}
2024-07-02 22:10:32 +02:00
{% block content %}
{% include "includes/navigation-transparent.html" %}
<div class="container-fluid">
<div class="e-container-border e-container-radius row mb-3" tabindex="1">
<div class="e-container e-container-radius p-3">
<h1 class="text-center pb-3">Profile Info</h1>
<div class="table-responsive rounded-2">
<table class="table table-sm table-bordered border-primary-subtle table-striped table-hover">
<tbody>
<tr>
<th scope="row" class="text-center">Last Login</th>
<td class="text-center">{{ user.last_login }}</td>
</tr>
<tr>
<th scope="row" class="text-center">Registration Date</th>
<td class="text-center">{{ user.date_joined }}</td>
</tr>
<tr>
<th scope="row" class="text-center">Admin Status</th>
<td class="text-center">
{% if user.is_staff %}
<span class="badge bg-success">Yes</span>
{% else %}
<span class="badge bg-danger">No</span>
{% endif %}
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="e-container-border e-container-radius row my-3" tabindex="1">
<div class="e-container e-container-radius">
<h1 class="text-center">Profile Settings</h1>
<h3>Edit your profile</h3>
<form method="post">
{% csrf_token %}
{{ user_form.as_p }}
{{ profile_form.as_p }}
<button type="submit">Save</button>
</form>
</div>
</div>
</div>
{% endblock content %}