Fix minor issues

This commit is contained in:
Nicolas Le Goff
2014-12-02 14:47:05 +01:00
parent c1b1d0db74
commit 6b7b012b6c
4 changed files with 27 additions and 10 deletions

View File

@@ -114,4 +114,22 @@
<hr/>
{% include 'common/technical_datas.html.twig' %}
{% endif %}
{% endmacro %}
{% macro caption(record, business, technical) %}
{# @todo handle business fields #}
{% for name, value in record.caption %}
<div class="desc {{ loop.index is odd ? 'impair' : 'pair' }}">
<b>{{ name }}</b> :
{% if value is iterable %}
{{ value | join(' ; ') }}
{% else %}
{{ value }}
{% endif %}
</div>
{% endfor %}
{% if technical|default(true) and app['authentication'].user is not none and user_setting('technical_display') == 'group' %}
<hr/>
{% include 'common/technical_datas.html.twig' %}
{% endif %}
{% endmacro %}