mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-22 18:24:23 +00:00
38 lines
1.0 KiB
Twig
38 lines
1.0 KiB
Twig
{% extends "@ChillPerson/Person/layout.html.twig" %}
|
|
|
|
{% set activeRouteKey = '' %}
|
|
{% set title = 'Budget for %name%'|trans({ '%name%' : person.firstName ~ " " ~ person.lastName } ) %}
|
|
{% block title title %}
|
|
|
|
{% block js %}
|
|
{{ encore_entry_script_tags('page_budget') }}
|
|
{% endblock %}
|
|
|
|
{% block css %}
|
|
{{ encore_entry_link_tags('page_budget') }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1>{{ title }}</h1>
|
|
|
|
{% include 'ChillBudgetBundle:Budget:_budget.html.twig' with {
|
|
'resources': resources,
|
|
'charges': charges,
|
|
'person': person
|
|
} %}
|
|
|
|
{% if is_granted('CHILL_BUDGET_ELEMENT_CREATE', person) %}
|
|
<ul class="record_actions sticky-form-buttons">
|
|
<li>
|
|
<a class="btn btn-create" href="{{ path('chill_budget_resource_new', { 'id': person.id} ) }}">{{ 'Create new resource'|trans }}</a>
|
|
</li>
|
|
<li>
|
|
<a class="btn btn-create" href="{{ path('chill_budget_charge_new', { 'id': person.id} ) }}">{{ 'Create new charge'|trans }}</a>
|
|
</li>
|
|
</ul>
|
|
{% endif %}
|
|
|
|
|
|
{% endblock %}
|
|
|