{% trans_default_domain 'mail' %}
{{ include('@ZikulaZAuthModule/Email/header.txt.twig')|nl2br }}
{% set verificationurl = url('zikulazauthmodule_registration_verify', {'uname': user.uname, 'verifycode': verifycode}) %}
<h3>{% trans with {'%sub%': siteName()} %}Welcome to %sub%!{% endtrans %}</h3>

<p>{% trans with {'%email%': user.email, '%site%': siteName(), '%url%': url('home')} %}Hello! This e-mail address ('%email%') has been used to register an account on '%site%' (%url%).{% endtrans %}</p>
<p>{% trans %}If you did not request a new user account at this web site, please either contact our site administrator, or simply disregard this message.{% endtrans %}</p>

<p>{% trans %}If you did request a new user account, then your request is waiting for you to verify your e-mail address with us.{% endtrans %}
{% if not isApproved %}{% trans %}Your request is also waiting for administrator approval.{% endtrans %}
{% trans %}Once both this verification step is complete and an administrator has approved your request, you will be able to log in with your user name.{% endtrans %}{% endif %}</p>

<p>{% trans %}Please click on the following link to complete the e-mail address check: {% endtrans %}<a href="{{ verificationurl }}">{% trans %}Verify my e-mail address{% endtrans %}</a></p>

<p>{% trans %}If you are not able to click on the above link, you can copy the following URL into your browser:{% endtrans %} {{ verificationurl }}</p>

<p>{% trans %}Your verification code is:{% endtrans %} {{ verifycode }}</p>

<p>
    {% if not isApproved %}
        {% trans %}Once verified and your account has been approved, then you will be able to log in.{% endtrans %}
    {% else %}
        {% trans %}Once verified, you will be able to log in.{% endtrans %}
    {% endif %}
    {% trans %}Your account details are as follows:{% endtrans %}
</p>

<p>{% trans with {'%sub%': user.uname} %}User name: %sub%{% endtrans %}{% if createdpassword|default %}<br />
    {% trans with {'%sub%': createdpassword} %}Password: %sub%{% endtrans %}
{% endif %}
</p>

{% if createdpassword|default %}<p>{% trans %}(This is the only time you will receive your password. Please keep it in a safe place.){% endtrans %}</p>{% endif %}

{% if not isApproved %}
    <p>{% trans %}Remember: both this verification step and approval from an administrator must be completed before you can log in.{% endtrans %} {% trans %}You will receive an additional e-mail message once an administrator has reviewed your request.{% endtrans %}</p>
{% endif %}
{{ include('@ZikulaZAuthModule/Email/footer.txt.twig')|nl2br }}
