Accounts: Add edit and delete pages; implement forms (no real actions yet)

This commit is contained in:
Lexi / Zoe 2021-07-31 00:34:35 +02:00
parent 4e8d879008
commit 7859ef77ee
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
9 changed files with 258 additions and 23 deletions

View file

@ -1,18 +1,21 @@
{% extends "base.html.twig" %}
{% block title %}Accounts{% endblock %}
{% block title %}View account{% endblock %}
{% block content %}
<h2>Account: {{ accountUsername }}</h2>
<p>
<b>Actions:</b>
<span>View</span> |
<a href="/accounts/{{ id }}/edit">Edit</a> |
<a href="/accounts/{{ id }}/delete">Delete</a> |
<a href="mailto:{{ accountUsername }}">Send mail</a>
</p>
<table class="vertical_table_headers">
<h3>View account details</h3>
<table class="bordered_table vertical_table_headers">
<tr>
<th style="min-width: 10em">User ID</th>
<td style="min-width: 20em">{{ accountData['user_id'] }}</td>
@ -62,7 +65,7 @@
<h3>Aliases</h3>
{% if aliases %}
<table>
<table class="bordered_table">
<tr>
<th>Address</th>
<th>Created at</th>