Blockier templates table structure

This commit is contained in:
2022-03-05 18:19:31 +00:00
parent ab530e71a1
commit 85da5e4f78
17 changed files with 405 additions and 418 deletions

View File

@@ -0,0 +1,25 @@
{% block table_cell_template_status %}
{%- if hasRole('site-admin') or hasRole('organisations-admin') or (current_user.adminForOrganisations.count > 0) %}
<script id="{{table.id}}-column-status" type="text/x-handlebars-template">
{%- verbatim %}
<td
{{#ifx row.flag_approved '==' 1 }}
data-text="approved"
{{ else }}
data-text="pending"
{{/ifx }}
>
{{#ifx row.flag_approved '==' 1 }}
<span>
{% endverbatim %}{{translate("APPROVED")}}{% verbatim %}
</span>
{{ else }}
<span class="text-yellow">
{% endverbatim %}{{translate("PENDING")}}{% verbatim %}
</span>
{{/ifx }}
</td>
{% endverbatim -%}
</script>
{% endif -%}
{% endblock %}