parent
5f25ea0d04
commit
0d7afc280a
@ -1,39 +1,26 @@ |
|||||||
{% autoescape false %} |
{% autoescape false %} |
||||||
{% if data is empty %} |
{% if data is not empty %} |
||||||
|
<div class="glossary mt-5"> |
||||||
<div class="alert alert-info" role="alert">{{ 'There is no thematic section' | get_lang }}</div> |
{% for item in data %} |
||||||
{% if is_allowed_to_edit %} |
<div class="item-glossary mb-4 pl-2 pr-2"> |
||||||
<div id="no-data-view" class="tool-view"> |
{% if item.edit %} |
||||||
<h2>{{ "Glossary"|trans }}</h2> |
<div class="float-right"> |
||||||
<img src="{{ "glossary.png"|icon(64) }}" width="64" height="64"> |
<div class="btn-group" role="group"> |
||||||
<div class="controls"> |
<a href="{{ item.edit }}" class="btn btn-light btn-sm"> |
||||||
<a href="{{ _p.web_self }}?{{ _p.web_cid_query ~ "&action=addglossary" }}" class="btn btn-outline-primary"> |
<i class="fas fa-pencil-alt"></i> |
||||||
{{ "Add glossary"|trans }} |
</a> |
||||||
</a> |
<a |
||||||
|
title="{{ 'Confirm if you want to delete'|trans }}" href="{{ item.delete }}" |
||||||
|
class="btn btn-light btn-sm delete-swal"> |
||||||
|
<i class="far fa-trash-alt"></i> |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{% endif %} |
||||||
|
<h5 class="terms-title">{{ item.title }}</h5> |
||||||
|
{{ item.description }} |
||||||
</div> |
</div> |
||||||
|
{% endfor %} |
||||||
</div> |
</div> |
||||||
{% endif %} |
{% endif %} |
||||||
|
|
||||||
{% else %} |
|
||||||
<div class="glossary mt-5"> |
|
||||||
{% for item in data %} |
|
||||||
<div class="item-glossary mb-4 pl-2 pr-2"> |
|
||||||
{% if item.edit %} |
|
||||||
<div class="float-right"> |
|
||||||
<div class="btn-group" role="group"> |
|
||||||
<a href="{{ item.edit }}" class="btn btn-light btn-sm"> |
|
||||||
<i class="fas fa-pencil-alt"></i> |
|
||||||
</a> |
|
||||||
<a title="{{ 'Confirm if you want to delete'|trans }}" href="{{ item.delete }}" class="btn btn-light btn-sm delete-swal"> |
|
||||||
<i class="far fa-trash-alt"></i> |
|
||||||
</a> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
{% endif %} |
|
||||||
<h5 class="terms-title">{{ item.title }}</h5> |
|
||||||
{{ item.description }} |
|
||||||
</div> |
|
||||||
{% endfor %} |
|
||||||
</div> |
|
||||||
{% endif %} |
|
||||||
{% endautoescape %} |
{% endautoescape %} |
Loading…
Reference in new issue