2024-02-07 17:31:12 +13:00
{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %}
{% extends 'themes/' + theme() + '/base.html' %}
{% else %}
{% extends "base.html" %}
{% endif %} %}
2024-02-02 15:30:03 +13:00
{% from 'bootstrap/form.html' import render_form %}
2024-04-14 20:05:40 +12:00
{% set active_child = 'admin_approve_registrations' %}
2024-02-02 15:30:03 +13:00
{% block app_content %}
< div class = "row" >
< div class = "col" >
2024-04-14 20:05:40 +12:00
< h1 > {{ _('Registrations') }}< / h1 >
2024-02-02 15:30:03 +13:00
{% if registrations %}
< p > {{ _('When registering, people are asked "%(question)s".', question=site.application_question) }} < / p >
< form method = "get" >
< input type = "search" name = "search" value = "{{ search }}" >
< / form >
< table class = "table table-striped" >
< tr >
2024-08-01 16:24:36 +08:00
< th > {{ _('Name') }}< / th >
< th > {{ _('Email') }}< / th >
< th > {{ _('Email verifed') }}< / th >
< th > {{ _('Answer') }}< / th >
< th > {{ _('Applied') }}< / th >
< th > {{ _('IP and country code') }}< / th >
< th > {{ _('Source') }}< / th >
< th > {{ _('Actions') }}< / th >
2024-02-02 15:30:03 +13:00
< / tr >
{% for registration in registrations %}
< tr >
< td > < img src = "{{ registration.user.avatar_thumbnail() }}" class = "community_icon rounded-circle" loading = "lazy" / >
{{ registration.user.display_name() }}< / td >
< td > < a href = "mailto:{{ registration.user.email }}" > {{ registration.user.email }}< / a > < / td >
< td > {{ '< span class = "green" > ✓ < / span > '|safe if registration.user.verified else '< span class = "red" > ✗ < / span > '|safe }}< / td >
< td > {{ registration.answer }}< / td >
2024-08-23 11:14:47 +12:00
< td > {{ arrow.get(registration.created_at).humanize(locale=locale) }}< / td >
2024-08-01 16:24:36 +08:00
< td > {{ registration.user.ip_address if registration.user.ip_address }}< br / > {{ registration.user.ip_address_country if registration.user.ip_address_country }}< / td >
2024-02-23 16:52:17 +13:00
< td > {{ registration.user.referrer if registration.user.referrer }} < / td >
2024-02-02 15:30:03 +13:00
< td > < a href = "{{ url_for('admin.admin_approve_registrations_approve', user_id=registration.user.id) }}" class = "btn btn-sm btn-primary" > {{ _('Approve') }}< / a >
< a href = "/u/{{ registration.user.link() }}" > {{ _('View') }}< / a > |
< a href = "{{ url_for('admin.admin_user_delete', user_id=registration.user.id) }}" class = "confirm_first" > {{ _('Delete') }}< / a >
< / td >
< / tr >
{% endfor %}
< / table >
{% else %}
< p > {{ _('No one is waiting to be approved.') }}< / p >
{% endif %}
< / div >
< / div >
2024-04-14 20:05:40 +12:00
< hr / >
2024-08-01 16:24:36 +08:00
< div class = "row" >
< div class = "col" >
< h1 > {{ _('Recently approved') }}< / h1 >
{% if recently_approved %}
< table class = "table table-striped" >
< tr >
< th > {{ _('Name') }}< / th >
< th > {{ _('Email') }}< / th >
< th > {{ _('Email verifed') }}< / th >
< th > {{ _('Answer') }}< / th >
< th > {{ _('Applied') }}< / th >
< th > {{ _('IP and country code') }}< / th >
< th > {{ _('Source') }}< / th >
< th > {{ _('Actions') }}< / th >
< / tr >
{% for registration in recently_approved %}
< tr >
< td > < img src = "{{ registration.user.avatar_thumbnail() }}" class = "community_icon rounded-circle" loading = "lazy" / >
{{ registration.user.display_name() }}< / td >
< td > < a href = "mailto:{{ registration.user.email }}" > {{ registration.user.email }}< / a > < / td >
< td > {{ '< span class = "green" > ✓ < / span > '|safe if registration.user.verified else '< span class = "red" > ✗ < / span > '|safe }}< / td >
< td > {{ registration.answer }}< / td >
2024-08-23 11:14:47 +12:00
< td > {{ arrow.get(registration.created_at).humanize(locale=locale) }}< / td >
2024-08-01 16:24:36 +08:00
< td > {{ registration.user.ip_address if registration.user.ip_address }}< br / > {{ registration.user.ip_address_country if registration.user.ip_address_country }}< / td >
< td > {{ registration.user.referrer if registration.user.referrer }} < / td >
< td >
< a href = "/u/{{ registration.user.link() }}" > {{ _('View') }}< / a >
< / td >
< / tr >
{% endfor %}
< / table >
{% else %}
< p > {{ _('No one is waiting to be approved.') }}< / p >
{% endif %}
< / div >
< / div >
< hr / >
2024-04-14 20:05:40 +12:00
< div class = "row" >
< div class = "col" >
{% include 'admin/_nav.html' %}
< / div >
< / div >
< hr / >
2024-02-02 15:30:03 +13:00
{% endblock %}