Gallery-Archivist/archivist/apps/templates/accounts/profile.html
2024-08-21 20:20:37 +02:00

69 lines
No EOL
2.4 KiB
HTML

{% extends "layouts/base-electric.html" %}
{% load static %}
{% block title %} Sites {% endblock title %}
{% block stylesheets %}{% endblock stylesheets %}
{% 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 %}