Organisation registration process implemented with configurable approval workflow
This commit is contained in:
@@ -50,6 +50,23 @@
|
||||
{{organisation.description}}
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if organisation.flag_approved != 1 %}
|
||||
<hr>
|
||||
<h4 class="text-danger text-center">
|
||||
{{ translate('ORGANISATION.APPROVAL.PENDING') }}
|
||||
</h4>
|
||||
<div class="text-center">
|
||||
{% if checkAccess('approve_organisation') %}
|
||||
<form method="POST">
|
||||
{% include "forms/csrf.html.twig" %}
|
||||
<button type="submit" class="btn btn-success" formaction="{{site.uri.public}}/organisations/o/{{organisation.slug}}/registration/approve">{{translate('APPROVE')}}</button>
|
||||
<button type="submit" class="btn btn-danger" formaction="{{site.uri.public}}/organisations/o/{{organisation.slug}}/registration/reject">{{translate('REJECT')}}</button>
|
||||
</form>
|
||||
{% elseif isOrganisationAdmin(organisation) %}
|
||||
<button type="button" class="btn btn-danger js-organisation-cancelRegistration" data-slug="{{organisation.slug}}">{{translate('CANCEL_REGISTRATION')}}</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if 'members' not in fields.hidden %}
|
||||
<hr>
|
||||
<strong><i class="fas fa-wrench margin-r-5"></i> {{ translate('ADMIN', 2)}}</strong>
|
||||
|
||||
Reference in New Issue
Block a user