Blocks in view: history/view
This commit is contained in:
parent
5b205939ca
commit
aec043a67e
|
@ -1,44 +1,70 @@
|
|||
<input type='text' class='searchbar' placeholder='Recherche'>
|
||||
{% block search_bar %} <input type='text' class='searchbar' placeholder='Recherche'> {% endblock %}
|
||||
|
||||
|
||||
{% block history_list %}
|
||||
|
||||
{% for entry in core.get_history() %}
|
||||
{% for entry in core.get_history() %}
|
||||
|
||||
|
||||
{% if loop.index == 1 %}
|
||||
{% block header %}
|
||||
|
||||
<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>
|
||||
{% if loop.index == 1 %}
|
||||
|
||||
{% endif %}
|
||||
<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>
|
||||
|
||||
<article class='inline-row' id='{{ entry.id_history }}'>
|
||||
{% endif %}
|
||||
|
||||
<span data-machine='{{ entry.id_machine }}' class='title'><span>#{{ entry.machine_name }}</span></span>
|
||||
{% endblock %}
|
||||
|
||||
<span>
|
||||
<span>{{ core.ts_format(entry.timestamp) }}</span>
|
||||
<span style='color:#aaa;'>Il y a {{ core.ts_relative(entry.timestamp) }}</span>
|
||||
</span>
|
||||
{% block entry %}
|
||||
{% block entry_tag %} <article class='inline-row' id='{{ entry.id_history }}'> {% endblock %}
|
||||
|
||||
{% block entry_machine %} <span data-machine='{{ entry.id_machine }}' class='title'><span>#{{ entry.machine_name }}</span></span> {% endblock %}
|
||||
|
||||
<span data-user='{{ entry.id_user }}'>
|
||||
<span>{{ entry.user_name }}</span>
|
||||
<span style='color:#aaa;'>{{ entry.user_firstname }} {{ entry.user_lastname }}</span>
|
||||
</span>
|
||||
{% block entry_time %}
|
||||
|
||||
<span>
|
||||
<span>{{ entry.action_name }}</span>
|
||||
</span>
|
||||
<span>
|
||||
<span>{{ core.ts_format(entry.timestamp) }}</span>
|
||||
<span style='color:#aaa;'>Il y a {{ core.ts_relative(entry.timestamp) }}</span>
|
||||
</span>
|
||||
|
||||
<span>
|
||||
<button class='search' data-details='{{ entry.id_history }}'>Détails</button>
|
||||
</span>
|
||||
{% endblock %}
|
||||
|
||||
</article>
|
||||
{% endfor %}
|
||||
{% block entry_user %}
|
||||
|
||||
<span data-user='{{ entry.id_user }}'>
|
||||
<span>{{ entry.user_name }}</span>
|
||||
<span style='color:#aaa;'>{{ entry.user_firstname }} {{ entry.user_lastname }}</span>
|
||||
</span>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block entry_action %}
|
||||
|
||||
<span>
|
||||
<span>{{ entry.action_name }}</span>
|
||||
</span>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block entry_details %}
|
||||
|
||||
<span>
|
||||
<button class='search' data-details='{{ entry.id_history }}'>Détails</button>
|
||||
</span>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
</article>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% endfor %}
|
||||
|
||||
{% endblock %}
|
Loading…
Reference in New Issue