chill-bundles/Resources/views/layout.html.twig

59 lines
1.7 KiB
Twig

{% extends "CLChillMainBundle::layout.html.twig" %}
{% block css %}
{% stylesheets output="css/all.css" filter="cssrewrite"
"bundles/clchillperson/css/person.css"
%}
<link rel="stylesheet" href="{{ asset_url }}"/>
{% endstylesheets %}
{% endblock %}
{% block content %}
<div id="person_wrapper">
<div id="general">
<h1>
<span class="surname">{{ person.surname }}</span>
<span class="personName">{{ person.name }}</span> {% spaceless %}
{% if person.isOpen == false %}
<i class="icon-lock"></i>
{% endif %}
{% endspaceless %}
</h1>
<p class="date detail">{% transchoice person.genreNumeric
with {'%date%' : person.dateOfBirth.format('d-m-Y')} %}views.layout.born{% endtranschoice %}</p>
{% if person.nationality is not null %}
<p class="nationality detail">{{ person.nationality.label }}</p>
{% else %}
<p class="nationality detail without_nationality">{% trans %}views.layout.without_nationality{% endtrans %}</p>
{% endif %}
</div>
<div id="person_details">
<section class="tabs vertical">
{# Note: activeRouteKey should be defined in Controller or child layout #}
{{ render(controller("CLChillMainBundle:Menu:writeMenu", {
'menu' : 'person',
'layout': 'CLChillPersonBundle::menu.html.twig',
'args' : {'id': person.id },
'activeRouteKey': activeRouteKey
})) }}
<div class="tab-content active columns height">
{% block personcontent %}<!-- block personcontent empty -->{%endblock%}
</div>
</section>
</div>
</div>
{% endblock %}