Manage layout for no result -> must refactor layout for when it has a few results only
This commit is contained in:
parent
028fec4cee
commit
20b4556bc5
|
@ -1,18 +1,25 @@
|
||||||
<input type='text' class='searchbar' placeholder='Recherche'>
|
<input type='text' class='searchbar' placeholder='Recherche'>
|
||||||
|
|
||||||
<article class='inline-row' style='border: 0; box-shadow: none;background: transparent;'>
|
|
||||||
<span>Machine</span>
|
|
||||||
<span>Dernière utilisation</span>
|
|
||||||
<span>Utilisateur</span>
|
|
||||||
<span>Action</span>
|
|
||||||
<span>Historique détaillé</span>
|
|
||||||
</article>
|
|
||||||
|
|
||||||
|
|
||||||
{% for entry in f_history() %}
|
{% for entry in f_history() %}
|
||||||
|
|
||||||
|
|
||||||
|
{% if loop.index == 1 %}
|
||||||
|
|
||||||
|
<article class='inline-row' style='border: 0; box-shadow: none;background: transparent;'>
|
||||||
|
<span>Machine</span>
|
||||||
|
<span>Dernière utilisation</span>
|
||||||
|
<span>Utilisateur</span>
|
||||||
|
<span>Action</span>
|
||||||
|
<span>Historique détaillé</span>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<article class='inline-row' data-history='{{ entry.id_history }}'>
|
<article class='inline-row' data-history='{{ entry.id_history }}'>
|
||||||
|
|
||||||
<span class='title'><span>#{{ entry.machine_name }}</span></span>
|
<span data-machine='{{ entry.id_machine }}' class='title'><span>#{{ entry.machine_name }}</span></span>
|
||||||
|
|
||||||
<span>
|
<span>
|
||||||
<span>{{ entry.timestamp | f_tsformat }}</span>
|
<span>{{ entry.timestamp | f_tsformat }}</span>
|
||||||
|
@ -20,7 +27,7 @@
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
|
||||||
<span>
|
<span data-user='{{ entry.id_user }}'>
|
||||||
<span>{{ entry.user_name }}</span>
|
<span>{{ entry.user_name }}</span>
|
||||||
<span style='color:#aaa;'>{{ entry.user_firstname }} {{ entry.user_lastname }}</span>
|
<span style='color:#aaa;'>{{ entry.user_firstname }} {{ entry.user_lastname }}</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
Loading…
Reference in New Issue