Broke out the table column templates into individual template files

This commit is contained in:
2023-06-05 16:04:56 +01:00
parent 83bf9a7307
commit f92bb5780a
24 changed files with 453 additions and 171 deletions

View 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>