c5d1ab0266
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
34 lines
920 B
Twig
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 %}
|