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,26 @@
{% block table_cell_template_actions %}
<script id="{{table.id}}-column-actions" type="text/x-handlebars-template">
{%- verbatim %}
<td>
<div class="btn-group">
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
{% endverbatim %}{{translate("ACTIONS")}}{% verbatim %}
<span class="caret"></span>
</button>
<ul class="dropdown-menu dropdown-menu-right" role="menu">
<li>
<a href="#" data-slug="{{row.slug}}" class="js-organisation-restore">
<i class="fas fa-trash-restore"></i> {% endverbatim %}{{translate("ORGANISATION.RESTORE_DELETED")}}{% verbatim %}
</a>
</li>
<li>
<a href="#" data-slug="{{row.slug}}" class="js-organisation-permenentDelete">
<i class="fas fa-trash-alt"></i> {% endverbatim %}{{translate("ORGANISATION.PERMENENT_DELETE")}}{% verbatim %}
</a>
</li>
</ul>
</div>
</td>
{% endverbatim -%}
</script>
{% endblock %}

View File

@@ -0,0 +1,11 @@
{% block table_cell_template_info %}
<script id="{{table.id}}-column-info" type="text/x-handlebars-template">
{%- verbatim %}
<td data-text="{{row.name}}">
<strong>
<a href="{{site.uri.public}}/organisations/o/{{row.slug}}">{{row.name}}</a>
</strong>
</td>
{% endverbatim -%}
</script>
{% endblock %}