gallery-users.html
HTML document, ASCII text
1{% extends "default.html" %} 2 3{% block title %}Users of {{ gallery.title }} | {{ site_name }}{% endblock %} 4 5{% block content %} 6<x-frame style="--width: 768px" class="vbox"> 7<h1>Users: {{ gallery.title }}</h1> 8<p>{{ gallery.description }}</p> 9{% if have_permission %} 10<form class="buttonbox" method="POST" action="/gallery/{{ gallery.id }}/users/add"> 11<input name="username" type="text" placeholder="Username" required aria-label="Username"> 12<button type="submit">Add user</button> 13</form> 14<form class="buttonbox" method="POST" action="/gallery/{{ gallery.id }}/users/remove"> 15<input name="username" type="text" placeholder="Username" required aria-label="Username"> 16<button type="submit">Remove user</button> 17</form> 18{% endif %} 19<p>Besides the owner, these users can also add and remove resources from this gallery:</p> 20<ul> 21{% for user in gallery.users %} 22<li><a href="/user/{{ user.user.username }}">{{ user.user.formatted_name }}</a></li> 23{% endfor %} 24</ul> 25</x-frame> 26{% endblock %}