adjustments templates

This commit is contained in:
2022-03-01 14:30:12 +01:00
parent 67948f7f3a
commit f38cfb4b28
7 changed files with 37 additions and 7 deletions

View File

@@ -13,12 +13,12 @@
}
.budget-table {
th.charge {
background-color: $budget-charge-color;
background-color: #6d9e63;
}
}
.budget-table {
th.resource {
background-color: $budget-resource-color;
background-color: #e03851;
}
}
.budget-table {

View File

@@ -49,18 +49,34 @@
{% endif %}
<h2 class="subtitle">{{ 'Past budget'|trans }}</h2>
{% if pastCharges|length > 0 or pastResources|length > 0 %}
{% include 'ChillBudgetBundle:Budget:_past_budget.html.twig' with {
'pastCharges': pastCharges,
'pastResources': pastResources,
'entity': entity
} %}
{% else %}
<div class="flex-table">
<div class="item-bloc">
<p><span class="chill-no-data-statement">{{ "There isn't any element recorded"|trans }}</span></p>
</div>
</div>
{% endif %}
<h2 class="subtitle">{{ 'Future budget'|trans }}</h2>
{% if futureCharges|length > 0 or futureResources|length > 0 %}
{% include 'ChillBudgetBundle:Budget:_future_budget.html.twig' with {
'futureResources': futureResources,
'futureCharges': futureCharges,
'entity': entity
} %}
{% else %}
<div class="flex-table">
<div class="item-bloc">
<p><span class="chill-no-data-statement">{{ "There isn't any element recorded"|trans }}</span></p>
</div>
</div>
{% endif %}

View File

@@ -1,7 +1,5 @@
{% from 'ChillBudgetBundle:Budget:_macros.html.twig' import table_elements, table_results %}
<h2 class="subtitle">{{ 'Future budget'|trans }}</h2>
<div class="accordion" id="future_{{ entity.id }}">
<div class="accordion-item">
<h2 class="accordion-header" id="heading_future_{{ entity.id }}">

View File

@@ -1,7 +1,5 @@
{% from 'ChillBudgetBundle:Budget:_macros.html.twig' import table_elements, table_results %}
<h2 class="subtitle">{{ 'Past budget'|trans }}</h2>
<div class="accordion" id="past_{{ entity.id }}">
<div class="accordion-item">
<h2 class="accordion-header" id="heading_past_{{ entity.id }}">

View File

@@ -6,6 +6,14 @@
{% set title = 'Budget for household %household%'|trans({ '%household%' : household.id } ) %}
{% 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>

View File

@@ -4,6 +4,14 @@
{% 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>