Blocks in view: history/view
This commit is contained in:
parent
5b205939ca
commit
aec043a67e
|
@ -1,10 +1,13 @@
|
||||||
<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() %}
|
||||||
|
|
||||||
|
|
||||||
|
{% block header %}
|
||||||
|
|
||||||
{% if loop.index == 1 %}
|
{% if loop.index == 1 %}
|
||||||
|
|
||||||
<article class='inline-row' style='border: 0; box-shadow: none;background: transparent;'>
|
<article class='inline-row' style='border: 0; box-shadow: none;background: transparent;'>
|
||||||
|
@ -17,28 +20,51 @@
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<article class='inline-row' id='{{ entry.id_history }}'>
|
{% endblock %}
|
||||||
|
|
||||||
<span data-machine='{{ entry.id_machine }}' class='title'><span>#{{ entry.machine_name }}</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 %}
|
||||||
|
|
||||||
|
{% block entry_time %}
|
||||||
|
|
||||||
<span>
|
<span>
|
||||||
<span>{{ core.ts_format(entry.timestamp) }}</span>
|
<span>{{ core.ts_format(entry.timestamp) }}</span>
|
||||||
<span style='color:#aaa;'>Il y a {{ core.ts_relative(entry.timestamp) }}</span>
|
<span style='color:#aaa;'>Il y a {{ core.ts_relative(entry.timestamp) }}</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block entry_user %}
|
||||||
|
|
||||||
<span data-user='{{ entry.id_user }}'>
|
<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>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block entry_action %}
|
||||||
|
|
||||||
<span>
|
<span>
|
||||||
<span>{{ entry.action_name }}</span>
|
<span>{{ entry.action_name }}</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block entry_details %}
|
||||||
|
|
||||||
<span>
|
<span>
|
||||||
<button class='search' data-details='{{ entry.id_history }}'>Détails</button>
|
<button class='search' data-details='{{ entry.id_history }}'>Détails</button>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
{% endfor %}
|
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
{% endblock %}
|
Loading…
Reference in New Issue