2020-07-01 23:12:49 +00:00
|
|
|
<div class="row mb-3 mt-3">
|
|
|
|
<button type="button" class="btn btn-primary disabled" title="Not implemented">Request more</button>
|
|
|
|
</div>
|
2018-06-28 19:22:00 +00:00
|
|
|
|
2020-07-01 23:12:49 +00:00
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>#</th>
|
|
|
|
<th><i class="fas fa-external-link-alt"></i></th>
|
|
|
|
</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 %}
|
|
|
|
{% set invite_url = url('user_register', { code: invite.code }) %}
|
|
|
|
<input class="form-control" type="url" value="{{ invite_url }}" readonly="readonly" onclick="this.select()">
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|