wisski_cloud_account_manager/templates/wisski-cloud-account-manager-validation-page.html.twig
2023-11-15 01:53:03 +01:00

60 lines
2.7 KiB
Twig
Executable file

{# wisski_cloud_account_manager/templates/wisski_cloud_account_manager_validation_page.html.twig #}
<div>
{% if account is not empty %}
<table class="table">
<thead>
<tr>
<th scope="col">Account ID</th>
<th scope="col">Person name</th>
<th scope="col">Organisation</th>
<th scope="col">Email</th>
<th scope="col">Username</th>
<th scope="col">Subdomain</th>
<th scope="col">Valid</th>
<th scope="col">Provisioned</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row"> {{ account.aid }} </th>
<td>{{ account.person_name }}</td>
<td>{{ account.organisation }}</td>
<td>{{ account.mail }}</td>
<td>{{ account.name }}</td>
<td>{{ account.subdomain }}</td>
<td class="valid">
{% if account.status == 1 %}
yes
{% elseif account.status == 0 %}
no
{% else %}
unknown
{% endif %}
</td>
<td class="provisioned">{% if account.provisioned == 1 %}
ongoing
{% elseif account.provisioned == 2 %}
yes
{% elseif account.provisioned == 3 %}
unknown
{% endif %}</td>
</tr>
</tbody>
</table>
<hr>
<div class="d-flex justify-content-center">
{% if account.status == 1 and account.provisioned == 2 %}
<p class="text-success"><strong> Your account is valid and provisioned. You can now log in to your account at <a href="https://{{ account.subdomain }}.wisski.cloud">https://{{ account.subdomain }}.wisski.cloud</a>.</strong></p>
{% elseif account.status == 1 and (account.provisioned == 0 or account.provisioned == 3)%}
<p class="text-warning"><strong>Your account is valid but the provision failed or the state is unknown. Please refresh this site and if the state persists contact <a href="mailto:info@wiss-ki.eu">cloud@wiss-ki.eu</a> to resolve this issue.</strong></p>
{% elseif account.status == 1 and account.provisioned == 1 %}
<p class="text-info"><strong>Your account is valid and the provision of your WissKI Cloud instance has started. Please wait a few minutes and refresh this page.</strong></p>
{% elseif account.status == 0 %}
<p class="text-warning"><strong>Your account is not valid. Please contact <a href="mailto:info@wiss-ki.eu">info@wiss-ki.eu</a> to resolve this issue.</strong></p>
{% else %}
<p class="text-warning"><strong>Something went wrong. Please contact <a href="mailto:info@wiss-ki.eu">info@wiss-ki.eu</a> to resolve this issue.</strong></p>
{% endif %}
</div>
{% endif %}
</div>