Broke out the table column templates into individual template files
This commit is contained in:
31
templates/tables/columns/users-status.html.twig
Normal file
31
templates/tables/columns/users-status.html.twig
Normal file
@@ -0,0 +1,31 @@
|
||||
<script id="{{table.id}}-column-status" type="text/x-handlebars-template">
|
||||
{% verbatim %}
|
||||
<td
|
||||
{{#ifx row.flag_enabled '==' 0 }}
|
||||
data-text="disabled"
|
||||
{{ else }}
|
||||
{{#ifx row.flag_verified '==' 0 }}
|
||||
data-text="unactivated"
|
||||
{{ else }}
|
||||
data-text="active"
|
||||
{{/ifx }}
|
||||
{{/ifx }}
|
||||
>
|
||||
{{#ifx row.flag_enabled '==' 0 }}
|
||||
<span class="text-muted">
|
||||
{% endverbatim %}{{translate("DISABLED")}}{% verbatim %}
|
||||
</span>
|
||||
{{ else }}
|
||||
{{#ifx row.flag_verified '==' 0 }}
|
||||
<span class="text-yellow">
|
||||
{% endverbatim %}{{translate("UNACTIVATED")}}{% verbatim %}
|
||||
</span>
|
||||
{{ else }}
|
||||
<span>
|
||||
{% endverbatim %}{{translate("ACTIVE")}}{% verbatim %}
|
||||
</span>
|
||||
{{/ifx }}
|
||||
{{/ifx }}
|
||||
</td>
|
||||
{% endverbatim %}
|
||||
</script>
|
||||
Reference in New Issue
Block a user