Show member join status in the members table

This commit is contained in:
2022-02-28 11:12:27 +00:00
parent 2fe8c7fd16
commit 0aeebffdc7
2 changed files with 8 additions and 14 deletions

View File

@@ -158,6 +158,8 @@ return [
'PENDING' => 'Pending', 'PENDING' => 'Pending',
'APPROVE' => 'Approve', 'APPROVE' => 'Approve',
'DENY' => 'Deny', 'DENY' => 'Deny',
'ACCEPTED' => 'Accepted',
'REJECTED' => 'Rejected',
'VIEW_DELETED' => 'View deleted', 'VIEW_DELETED' => 'View deleted',
'DELETED' => 'Deleted', 'DELETED' => 'Deleted',

View File

@@ -25,24 +25,16 @@
<script id="{{table.id}}-column-status" type="text/x-handlebars-template"> <script id="{{table.id}}-column-status" type="text/x-handlebars-template">
{%- verbatim %} {%- verbatim %}
<td <td
{{#ifx row.flag_enabled '==' 0 }} {{#ifx row.membership_approved '==' 0 }}
data-text="disabled" data-text="pending"
{{ else }} {{ else }}
{{#ifx row.flag_verified '==' 0 }} data-text="accepted"
data-text="unactivated"
{{ else }}
data-text="active"
{{/ifx }}
{{/ifx }} {{/ifx }}
> >
{{#ifx row.flag_enabled '==' 0 }} {{#ifx row.membership_approved '==' 0 }}
<span class="text-muted">{% endverbatim %}{{translate("DISABLED")}}{% verbatim %}</span> <span class="text-yellow">{% endverbatim %}{{translate("PENDING")}}{% verbatim %}</span>
{{ else }} {{ else }}
{{#ifx row.flag_verified '==' 0 }} <span>{% endverbatim %}{{translate("ACCEPTED")}}{% verbatim %}</span>
<span class="text-yellow">{% endverbatim %}{{translate("UNACTIVATED")}}{% verbatim %}</span>
{{ else }}
<span>{% endverbatim %}{{translate("ACTIVE")}}{% verbatim %}</span>
{{/ifx }}
{{/ifx }} {{/ifx }}
</td> </td>
{% endverbatim -%} {% endverbatim -%}