Re-jigged some of the registration routes and modified the buttons/links to use them
This commit is contained in:
@@ -57,11 +57,8 @@
|
||||
</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>
|
||||
<button type="button" class="btn btn-success js-organisation-approveRegistration" data-slug="{{organisation.slug}}">{{translate('APPROVE')}}</button>
|
||||
<button type="button" class="btn btn-danger js-organisation-rejectRegistration" data-slug="{{organisation.slug}}">{{translate('REJECT')}}</button>
|
||||
{% elseif isOrganisationAdmin(organisation) %}
|
||||
<button type="button" class="btn btn-danger js-organisation-cancelRegistration" data-slug="{{organisation.slug}}">{{translate('CANCEL_REGISTRATION')}}</button>
|
||||
{% endif %}
|
||||
|
||||
@@ -91,6 +91,18 @@
|
||||
<i class="fas fa-edit"></i> {% endverbatim %}{{translate("ORGANISATION.EDIT")}}{% verbatim %}
|
||||
</a>
|
||||
</li>
|
||||
{{#ifx row.flag_approved '==' 0 }}
|
||||
<li>
|
||||
<a href="#" data-slug="{{row.slug}}" class="js-organisation-approveRegistration">
|
||||
<i class="fas fa-thumbs-up"></i> {% endverbatim %}{{translate("ORGANISATION.APPROVAL.APPROVE")}}{% verbatim %}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" data-slug="{{row.slug}}" class="js-organisation-rejectRegistration">
|
||||
<i class="fas fa-thumbs-down"></i> {% endverbatim %}{{translate("ORGANISATION.APPROVAL.REJECT")}}{% verbatim %}
|
||||
</a>
|
||||
</li>
|
||||
{{/ifx }}
|
||||
<li>
|
||||
<a href="#" data-slug="{{row.slug}}" class="js-organisation-merge">
|
||||
<i class="fas fa-object-group"></i> {% endverbatim %}{{translate("ORGANISATION.MERGE")}}{% verbatim %}
|
||||
|
||||
Reference in New Issue
Block a user