2018-06-28 19:22:00 +00:00
|
|
|
{% extends 'base.html.twig' %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h1>Your invites</h1>
|
|
|
|
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>#</th>
|
2018-07-01 00:19:26 +00:00
|
|
|
<th><i class="fas fa-external-link-alt"></i></th>
|
2018-06-28 19:22:00 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{# @var invite \App\Entity\Invite #}
|
|
|
|
{% for invite in invites %}
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{{ loop.index }}</th>
|
|
|
|
<td>
|
|
|
|
{% if invite.usedBy %}
|
|
|
|
Used by <strong>{{ invite.usedBy.username }}</strong>.
|
|
|
|
{% else %}
|
2020-01-20 17:01:51 +00:00
|
|
|
{% set invite_url = url('user_register', { code: invite.code }) %}
|
2018-06-28 19:22:00 +00:00
|
|
|
<input class="form-control" type="url" value="{{ invite_url }}" readonly="readonly" onclick="this.select()">
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{% endblock %}
|