Change table template hierarchy structure
This commit is contained in:
25
templates/tables/columns/organisations-status.html.twig
Normal file
25
templates/tables/columns/organisations-status.html.twig
Normal file
@@ -0,0 +1,25 @@
|
||||
<script id="{{table.id}}-column-status" type="text/x-handlebars-template">
|
||||
{% if 'status' in table.columns %}
|
||||
{% verbatim %}
|
||||
<td
|
||||
{{#ifx row.flag_approved '==' 1 }}
|
||||
data-text="approved"
|
||||
{{ else }}
|
||||
data-text="pending"
|
||||
{{/ifx }}
|
||||
>
|
||||
{% endverbatim %}{# {{# ifx row.flag_admin '==' 1 }} #}{% verbatim %}
|
||||
{{#ifx row.flag_approved '==' 1 }}
|
||||
<span>
|
||||
{% endverbatim %}{{translate("APPROVED")}}{% verbatim %}
|
||||
</span>
|
||||
{{ else }}
|
||||
<span class="text-yellow">
|
||||
{% endverbatim %}{{translate("PENDING")}}{% verbatim %}
|
||||
</span>
|
||||
{{/ifx }}
|
||||
{% endverbatim %}{# {{/ifx }} #}{% verbatim %}
|
||||
</td>
|
||||
{% endverbatim %}
|
||||
{% endif %}
|
||||
</script>
|
||||
Reference in New Issue
Block a user