Change table template hierarchy structure
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<script id="{{table.id}}-column-status" type="text/x-handlebars-template">
|
||||
{% verbatim %}
|
||||
<td
|
||||
{{#ifx row.membership_approved '==' 0 }}
|
||||
data-text="pending"
|
||||
{{ else }}
|
||||
data-text="accepted"
|
||||
{{/ifx }}
|
||||
>
|
||||
{{#ifx row.membership_approved '==' 0 }}
|
||||
<span class="text-yellow">{% endverbatim %}{{translate("PENDING")}}{% verbatim %}</span>
|
||||
{{ else }}
|
||||
<span>{% endverbatim %}{{translate("ACCEPTED")}}{% verbatim %}</span>
|
||||
{{#ifx row.organisation_admin '==' 1 }}<span class="text-secondary">({% endverbatim %}{{translate("ADMIN")}}{% verbatim %})</span>{{/ifx}}
|
||||
{{/ifx }}
|
||||
</td>
|
||||
{% endverbatim %}
|
||||
</script>
|
||||
Reference in New Issue
Block a user