2022-01-13 08:06:46 +00:00
|
|
|
{% extends "base.html" %}
|
2022-01-13 08:35:17 +00:00
|
|
|
|
2022-01-13 08:06:46 +00:00
|
|
|
{% block content %}
|
2022-01-13 11:39:37 +00:00
|
|
|
{% include 'nav.html' %}
|
2022-01-13 13:29:48 +00:00
|
|
|
<!-- <div class="logo">
|
2022-01-13 08:25:39 +00:00
|
|
|
<img src="{{ url_for('static', path='svg/lumbung_space_logo.svg') }}" alt="lumbung.space logo">
|
2022-01-13 13:29:48 +00:00
|
|
|
</div> -->
|
|
|
|
<div class="center-table">
|
|
|
|
|
|
|
|
<div class="signup-form-box">
|
|
|
|
<div class="form-header">
|
|
|
|
<div id="formlogo" class="logo">
|
2022-04-07 13:03:52 +00:00
|
|
|
<a href="https://lumbung.space">
|
|
|
|
<img src="{{ url_for('static', path='svg/lumbung_space_logo.svg') }}" alt="lumbung.space logo">
|
|
|
|
</a>
|
2022-01-13 13:29:48 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-body">
|
|
|
|
<p>
|
|
|
|
Hello {{user.preferred_username}}. Here are links you can send to invite others to register.
|
|
|
|
</p>
|
|
|
|
{% if user.preferred_username in invites and invites[user.preferred_username]|length > 0 %}
|
|
|
|
<table>
|
2022-01-13 08:25:39 +00:00
|
|
|
<tr>
|
2022-01-13 13:29:48 +00:00
|
|
|
<th>Link</th>
|
|
|
|
<th>Validity</th>
|
|
|
|
<th>Actions</th>
|
2022-01-13 08:25:39 +00:00
|
|
|
</tr>
|
2022-01-13 13:29:48 +00:00
|
|
|
{% for invite in invites[user.preferred_username] %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a class="invite" href="{{ url_for('register_invite', invite=invite.link) }}">
|
|
|
|
{{ url_for('register_invite', invite=invite.link) }}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td> {{ invite.validity }} </td>
|
|
|
|
<td> <button class="button is-ghost"><a href="{{ url_for('invite_keycloak_delete') }}?invite={{ invite.link }}">delete</a></button></td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
2022-01-13 08:25:39 +00:00
|
|
|
</table>
|
2022-01-13 13:29:48 +00:00
|
|
|
<div class="overflow-x:auto">
|
2022-01-13 08:06:46 +00:00
|
|
|
|
2022-01-13 13:29:48 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
<button class="button is-ghost"><a href="{{ url_for('invite_keycloak_create') }}">Generate</a></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-01-13 08:25:39 +00:00
|
|
|
</div>
|
2022-01-13 08:06:46 +00:00
|
|
|
{% endblock %}
|