web-base/Core/Templates/account/accept_invite.twig

50 lines
2.4 KiB
Twig
Raw Permalink Normal View History

{% extends "account/account_base.twig" %}
2021-12-08 16:53:43 +01:00
{% set view_title = 'account.accept_invite_title' %}
2021-12-08 16:53:43 +01:00
{% set view_icon = 'user-check' %}
{% set view_description = 'account.accept_invite_description' %}
2021-12-08 16:53:43 +01:00
{% block view_content %}
{% if not view.success %}
<div class="alert alert-danger" role="alert">{{ view.message }}</div>
<a href='/login' class='btn btn-primary'>{{ L("account.back_to_login") }}</a>
2021-12-08 16:53:43 +01:00
{% else %}
<h4 class="pb-4">{{ L("account.form_title") }}</h4>
2021-12-08 16:53:43 +01:00
<form>
<input name='token' id='token' type='hidden' value='{{ view.token }}'/>
<div class="input-group">
<div class="input-group-append">
<span class="input-group-text"><i class="fas fa-hashtag"></i></span>
</div>
<input id="username" name="username" placeholder="{{ L('account.username') }}"
class="form-control" type="text" maxlength="32" value='{{ view.invited_user.name }}' disabled>
2021-12-08 16:53:43 +01:00
</div>
<div class="input-group mt-3">
<div class="input-group-append">
<span class="input-group-text"><i class="fas fa-at"></i></span>
</div>
<input type="email" name='email' id='email' class="form-control"
placeholder="{{ L('account.email') }}" maxlength="64" value='{{ view.invited_user.email }}' disabled>
2021-12-08 16:53:43 +01:00
</div>
<div class="input-group mt-3">
<div class="input-group-append">
<span class="input-group-text"><i class="fas fa-key"></i></span>
</div>
<input type="password" autocomplete='new-password' name='password'
id='password' class="form-control" placeholder="{{ L('account.password') }}">
2021-12-08 16:53:43 +01:00
</div>
<div class="input-group mt-3">
<div class="input-group-append">
<span class="input-group-text"><i class="fas fa-key"></i></span>
</div>
<input type="password" autocomplete='new-password' name='confirmPassword'
id='confirmPassword' class="form-control" placeholder="{{ L('account.password_confirm') }}">
2021-12-08 16:53:43 +01:00
</div>
<div class="input-group mt-3">
<button type="button" class="btn btn-success" id='btnAcceptInvite'>{{ L("general.submit") }}</button>
2021-12-08 16:53:43 +01:00
</div>
</form>
{% endif %}
{% endblock %}