thebadspace/templates/back/members.twig
Ro c5d1ab0266 Added Front listings and member editing
Added the template for to display locations on the front end. Still need
to add template for individual locations.

Also added member editing. Still need to wire up the avatar uploading
but adding and editing member information is possible. Still need to
fine tune it according to roles
2023-01-16 20:17:22 -08:00

34 lines
920 B
Twig

{% extends "base/frame.twig" %}
{% block stylesheets %}
<link rel="stylesheet" type="text/css" href="/assets/css/back/start.css?=qwert">
{% endblock %}
{% block main %}
<section role="members-index">
{% if options.mode == "index" %}
<h1>Members</h1>
<h2>Manage member accounts</h2>
<a href="/den/members/edit/{{ options.you }}">Edit Profile</a>
|
<a href="/den/members/add">Add Members</a>
<h3>Current Members</h3>
{% for member in options.list.members %}
{% if member.role != 1 %}
<a href="/den/members/edit/{{ member.id }}">{{ member.handle }}</a>
<br>
{% endif %}
{% endfor %}
{% elseif options.mode == "add" %}
<h1>Add Member</h1>
{{ include("forms/add-member-form.twig") }}
{% elseif options.mode == "edit" %}
<h1>Edit Member</h1>
{{ include("forms/edit-member.twig") }}
{% endif %}
</section>
{% endblock %}