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>
|
||||
|
||||
@@ -26,13 +26,18 @@
|
||||
}
|
||||
%}
|
||||
</div>
|
||||
{% if checkAccess('create_organisation') %}
|
||||
<div class="box-footer">
|
||||
{% if checkAccess('create_organisation') %}
|
||||
<button type="button" class="btn btn-success js-organisation-create">
|
||||
<i class="fas fa-plus-square"></i> {{translate("ORGANISATION.CREATE")}}
|
||||
</button>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if checkAccess('register_organisation') %}
|
||||
<button type="button" class="btn btn-success js-organisation-register">
|
||||
<i class="fas fa-plus-square"></i> {{translate("ORGANISATION.REGISTER")}}
|
||||
</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user