fix css admin - refs #2681
parent
c857a85042
commit
d83ed00811
@ -0,0 +1,74 @@ |
||||
|
||||
{% block content %} |
||||
{% autoescape false %} |
||||
<div id="settings"> |
||||
<div class="row"> |
||||
{% for block_item in blocks_admin %} |
||||
<div id="tabs-{{ loop.index }}" class="col-md-4"> |
||||
<div class="card"> |
||||
<div class="card-body"> |
||||
<h5 class="card-title">{{ block_item.icon }} {{ block_item.label }}</h5> |
||||
<div class="card-search"> |
||||
{{ block_item.search_form }} |
||||
</div> |
||||
{% if block_item.items is not empty %} |
||||
<ul class="list-settings"> |
||||
{% for url in block_item.items %} |
||||
{% if url.url is not empty %} |
||||
<li> |
||||
<a href="{{ url.url }}"> |
||||
{{ url.label }} |
||||
</a> |
||||
</li> |
||||
{% endif %} |
||||
{% endfor %} |
||||
</ul> |
||||
{% endif %} |
||||
|
||||
{% if block_item.extra is not null %} |
||||
<div> |
||||
{{ block_item.extra }} |
||||
</div> |
||||
{% endif %} |
||||
</div> |
||||
|
||||
|
||||
</div> |
||||
</div> |
||||
{% endfor %} |
||||
</div> |
||||
|
||||
<div class="row"> |
||||
{% for role in app.user.roles %} |
||||
{% set role = role | lower | replace ({ 'role_' : ''}) %} |
||||
|
||||
{% if role in ['global_admin'] %} |
||||
{% include '@ChamiloTheme/Admin/' ~ role ~ '/role_index.html.twig' %} |
||||
{% endif %} |
||||
{% endfor %} |
||||
</div> |
||||
</div> |
||||
|
||||
{% if is_granted('ROLE_ADMIN') %} |
||||
<script> |
||||
$(function () { |
||||
$.ajax({ |
||||
url: '{{ web_admin_ajax_url }}?a=version', |
||||
success: function (version) { |
||||
$(".admin-block-version").html(version); |
||||
} |
||||
}); |
||||
}); |
||||
</script> |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
<div class="well_border"> |
||||
<h3>{{ 'VersionCheck' | trans }} </h3> |
||||
|
||||
<div class="admin-block-version"></div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{% endif %} |
||||
{% endautoescape %} |
||||
{% endblock %} |
Loading…
Reference in new issue