mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 03:13:12 +00:00
Turn table row into panels
This commit is contained in:
parent
52e20a4827
commit
d046536b2d
1 changed files with 37 additions and 29 deletions
|
@ -25,32 +25,40 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
{% load logs_extra %}
|
{% load logs_extra %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
<table class="table table-striped">
|
{% for service in service_list %}
|
||||||
<thead>
|
<div class="panel panel-default">
|
||||||
<tr>
|
<div class="panel-heading">
|
||||||
<th>{% trans "Name" %}</th>
|
<div class="container-fluid">
|
||||||
<th>{% trans "URL" %}</th>
|
<div class="row">
|
||||||
<th>{% trans "Description" %}</th>
|
<div class="col-sm-9">
|
||||||
<th>{% trans "Image" %}</th>
|
<h4>{{ service.name }}</h4>
|
||||||
<th></th>
|
</div>
|
||||||
</tr>
|
<div class="col-sm-3 text-right">
|
||||||
</thead>
|
{% can_edit service %}
|
||||||
{% for service in service_list %}
|
{% include 'buttons/edit.html' with href='preferences:edit-service' id=service.id %}
|
||||||
<tr>
|
{% acl_end %}
|
||||||
<td>{{ service.name }}</td>
|
{% can_delete service %}
|
||||||
<td>{{ service.url }}</td>
|
{% include 'buttons/suppr.html' with href='preferences:del-service' id=service.id %}
|
||||||
<td>{{ service.description }}</td>
|
{% acl_end %}
|
||||||
<td>{{ service.image }}</td>
|
{% history_button service %}
|
||||||
<td class="text-right">
|
</div>
|
||||||
{% can_edit service %}
|
</div>
|
||||||
{% include 'buttons/edit.html' with href='preferences:edit-service' id=service.id %}
|
</div>
|
||||||
{% acl_end %}
|
</div>
|
||||||
{% can_delete service %}
|
<div class="panel-body">
|
||||||
{% include 'buttons/suppr.html' with href='preferences:del-service' id=service.id %}
|
{{ service.description }}
|
||||||
{% acl_end %}
|
</div>
|
||||||
{% history_button service %}
|
<div class="panel-footer">
|
||||||
</td>
|
<div class="container-fluid">
|
||||||
</tr>
|
<div class="row">
|
||||||
{% endfor %}
|
<div class="col-sm-6">
|
||||||
</table>
|
<b>{% trans "URL" %}: </b>{{ service.url }}
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<b>{% trans "Image" %}: </b>{{ service.image }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue