mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
adjustments templates
This commit is contained in:
parent
67948f7f3a
commit
f38cfb4b28
@ -13,12 +13,12 @@
|
|||||||
}
|
}
|
||||||
.budget-table {
|
.budget-table {
|
||||||
th.charge {
|
th.charge {
|
||||||
background-color: $budget-charge-color;
|
background-color: #6d9e63;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.budget-table {
|
.budget-table {
|
||||||
th.resource {
|
th.resource {
|
||||||
background-color: $budget-resource-color;
|
background-color: #e03851;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.budget-table {
|
.budget-table {
|
||||||
|
@ -49,18 +49,34 @@
|
|||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<h2 class="subtitle">{{ 'Past budget'|trans }}</h2>
|
||||||
|
|
||||||
{% if pastCharges|length > 0 or pastResources|length > 0 %}
|
{% if pastCharges|length > 0 or pastResources|length > 0 %}
|
||||||
{% include 'ChillBudgetBundle:Budget:_past_budget.html.twig' with {
|
{% include 'ChillBudgetBundle:Budget:_past_budget.html.twig' with {
|
||||||
'pastCharges': pastCharges,
|
'pastCharges': pastCharges,
|
||||||
'pastResources': pastResources,
|
'pastResources': pastResources,
|
||||||
'entity': entity
|
'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 %}
|
{% endif %}
|
||||||
|
|
||||||
|
<h2 class="subtitle">{{ 'Future budget'|trans }}</h2>
|
||||||
|
|
||||||
{% if futureCharges|length > 0 or futureResources|length > 0 %}
|
{% if futureCharges|length > 0 or futureResources|length > 0 %}
|
||||||
{% include 'ChillBudgetBundle:Budget:_future_budget.html.twig' with {
|
{% include 'ChillBudgetBundle:Budget:_future_budget.html.twig' with {
|
||||||
'futureResources': futureResources,
|
'futureResources': futureResources,
|
||||||
'futureCharges': futureCharges,
|
'futureCharges': futureCharges,
|
||||||
'entity': entity
|
'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 %}
|
{% endif %}
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
{% from 'ChillBudgetBundle:Budget:_macros.html.twig' import table_elements, table_results %}
|
{% 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" id="future_{{ entity.id }}">
|
||||||
<div class="accordion-item">
|
<div class="accordion-item">
|
||||||
<h2 class="accordion-header" id="heading_future_{{ entity.id }}">
|
<h2 class="accordion-header" id="heading_future_{{ entity.id }}">
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
{% from 'ChillBudgetBundle:Budget:_macros.html.twig' import table_elements, table_results %}
|
{% 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" id="past_{{ entity.id }}">
|
||||||
<div class="accordion-item">
|
<div class="accordion-item">
|
||||||
<h2 class="accordion-header" id="heading_past_{{ entity.id }}">
|
<h2 class="accordion-header" id="heading_past_{{ entity.id }}">
|
||||||
|
@ -6,6 +6,14 @@
|
|||||||
{% set title = 'Budget for household %household%'|trans({ '%household%' : household.id } ) %}
|
{% set title = 'Budget for household %household%'|trans({ '%household%' : household.id } ) %}
|
||||||
{% block title title %}
|
{% block title title %}
|
||||||
|
|
||||||
|
{% block js %}
|
||||||
|
{{ encore_entry_script_tags('page_budget') }}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block css %}
|
||||||
|
{{ encore_entry_link_tags('page_budget') }}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>{{ title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
|
|
||||||
|
@ -4,6 +4,14 @@
|
|||||||
{% set title = 'Budget for %name%'|trans({ '%name%' : person.firstName ~ " " ~ person.lastName } ) %}
|
{% set title = 'Budget for %name%'|trans({ '%name%' : person.firstName ~ " " ~ person.lastName } ) %}
|
||||||
{% block title title %}
|
{% block title title %}
|
||||||
|
|
||||||
|
{% block js %}
|
||||||
|
{{ encore_entry_script_tags('page_budget') }}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block css %}
|
||||||
|
{{ encore_entry_link_tags('page_budget') }}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>{{ title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
|
|
||||||
|
@ -11,5 +11,7 @@ $chill-household-context: #929d69;
|
|||||||
$social-issue-color: #4bafe8;
|
$social-issue-color: #4bafe8;
|
||||||
$social-action-color: $orange;
|
$social-action-color: $orange;
|
||||||
$activity-color: yellowgreen;
|
$activity-color: yellowgreen;
|
||||||
|
|
||||||
|
// budget colors
|
||||||
$budget-resource-color: #6d9e63;
|
$budget-resource-color: #6d9e63;
|
||||||
$budget-charge-color: #e03851;
|
$budget-charge-color: #e03851;
|
Loading…
x
Reference in New Issue
Block a user