{% extends 'base.html.twig' %}
{% block title %}{{app.session.get("appname")}} - {{child.name}}{% endblock %}
{% block useractions %}
{% if is_granted('ROLE_ADMIN') %}
{% endif %}
{% endblock %}
{% block body %}
{{child.name}}
{% if child.subname %}
{{child.subname}}
{% endif %}
{% if child.childtype.id==14 or child.childtype.id==18 %}
{% set url = "/"~appAlias~"/uploads/child/"~child.id~"/"~child.filename %}
{% elseif child.childtype.id==10 %}
{% set url = "/"~appAlias~"/uploads/child/"~child.id~"/"~child.filename %}
{% else %}
{% endif %}
{% for attributorder in child.childtype.childtypeattributs %}
{% if attributorder.childattribut.name in child.attributs|keys and not child.attributs[attributorder.childattribut.name] is empty %}
{{ attributorder.childattribut.label }} = {{ child.attributs[attributorder.childattribut.name]}}
{% endif %}
{% endfor %}
{{child.description|raw}}
{% set separator="g" %}
{%if otherpages %}
{% if separator=="d" %} {% set separator="g" %} {%else%} {% set separator="d" %} {%endif%}
{% for page in otherpages %}
{% set style="" %}
{%if page.image %}
{% set background=page.image|replace({"**appAlias**":appAlias}) %}
{% set style="height:auto;background-position: center ; background-size: cover; background-image: url("~background~")" %}
{%endif%}