{% macro double(i, m, i1, i2) %}
{% endmacro %} {% macro ll(i, m, i1, i2) %}
{{ _self.double(i, m, i1, i2) }}
{% endmacro %} {% macro pp(i, m, i1, i2) %}
{{ _self.double(i, m, i1, i2) }}
{% endmacro %} {% macro lp(i, m, i1, i2) %}
{{ _self.double(i, m, i1, i2) }}
{% endmacro %} {% macro pl(i, m, i1, i2) %}
{{ _self.double(i, m, i1, i2) }}
{% endmacro %} {% macro ppp(i, m, i1, i2, i3) %}
{% endmacro %} {% macro p(i, m, i1) %}
{% endmacro %} {% macro l(i, m, i1) %}
{% endmacro %} {# END MACROS #} {# END MACROS #} {# END MACROS #}
{% for image in ui %}
{% endfor %} {% for video in v %}
{% endfor %}
/ {{ ui|length + v|length}}
Close
{% if cv is not null %} Vita {% endif %} Sedcard

{{ m.firstName }} {{ m.lastName }}   {% if m.BOARD_ID not in [1,2,7] %} {{ m.BOARD_NAME }} {% endif %} {% for b in m.BOARDS %} {% if b.id != m.BOARD_ID and b.id not in [1,2,7] %} {{ b.name }} {% endif %} {% endfor %}   /   

{% for mes in m.measurements %} {% if mes[2] is defined and mes[3] is defined %} {% if mes[2] == 'Hair / color' %} Hair {% else %} {{ mes[2] }} {% endif %} {% if mes[3]|slice(0,1) matches '/^[a-z]/i' %} {# if numeric value take the european notation, if text like color, take the american #} {{ mes[3] }} {% else %} {{ mes[1] }} {% endif %} {% endif %} {% endfor %} Birth {{ m.birthyear }}
More infos
{% for mes in m.measurements %} {% if mes[2] is defined and mes[3] is defined %} {% if mes[2] == 'Hair / color' %} Hair {% else %} {{ mes[2] }} {% endif %} {% if mes[3]|slice(0,1) matches '/^[a-z]/i' %} {# if numeric value take the european notation, if text like color, take the american #} {{ mes[3] }} {% else %} {{ mes[1] }} {% endif %} {% endif %} {% endfor %} Birth {{ m.birthyear }} {% if cv is not null %} {% endif %}
{% set index = 0 %} {% for row in i %} {% if row.type == 'll' %} {{ _self.ll(index, m, row.i1, row.i2) }} {% set index = index + 2 %} {% endif %} {% if row.type == 'pp' %} {{ _self.pp(index, m, row.i1, row.i2) }} {% set index = index + 2 %} {% endif %} {% if row.type == 'lp' %} {{ _self.lp(index, m, row.i1, row.i2) }} {% set index = index + 2 %} {% endif %} {% if row.type == 'pl' %} {{ _self.pl(index, m, row.i1, row.i2) }} {% set index = index + 2 %} {% endif %} {% if row.type == 'ppp' %} {{ _self.ppp(index, m, row.i1, row.i2, row.i3) }} {% set index = index + 3 %} {% endif %} {% if row.type == 'p' %} {{ _self.p(index, m, row.i1) }} {% set index = index + 1 %} {% endif %} {% if row.type == 'l' %} {{ _self.l(index, m, row.i1) }} {% set index = index + 1 %} {% endif %} {% endfor %}
{% if v|length > 0 %}

Videos

{% for video in v %} {% if '.flv' in video.media_name %} {% else %}
Play
{% set index = index + 1 %} {% endif %} {% endfor %}
{% endif %}
{% if associated|length > 0 %}

{{ m.BOARD_NAME }}

{% for model in associated %}
{{ model.firstName }} {{ model.lastName }}
{% endfor %}
{% endif %}