mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 15:33:45 +00:00
Turn table row into panels
This commit is contained in:
parent
17f09c551b
commit
10de0d0ac8
1 changed files with 37 additions and 29 deletions
|
@ -25,23 +25,15 @@ 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>
|
|
||||||
{% for service in service_list %}
|
|
||||||
<tr>
|
|
||||||
<td>{{ service.name }}</td>
|
|
||||||
<td>{{ service.url }}</td>
|
|
||||||
<td>{{ service.description }}</td>
|
|
||||||
<td>{{ service.image }}</td>
|
|
||||||
<td class="text-right">
|
|
||||||
{% can_edit service %}
|
{% can_edit service %}
|
||||||
{% include 'buttons/edit.html' with href='preferences:edit-service' id=service.id %}
|
{% include 'buttons/edit.html' with href='preferences:edit-service' id=service.id %}
|
||||||
{% acl_end %}
|
{% acl_end %}
|
||||||
|
@ -49,8 +41,24 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
{% include 'buttons/suppr.html' with href='preferences:del-service' id=service.id %}
|
{% include 'buttons/suppr.html' with href='preferences:del-service' id=service.id %}
|
||||||
{% acl_end %}
|
{% acl_end %}
|
||||||
{% history_button service %}
|
{% history_button service %}
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
</div>
|
||||||
{% endfor %}
|
</div>
|
||||||
</table>
|
</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
{{ service.description }}
|
||||||
|
</div>
|
||||||
|
<div class="panel-footer">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<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