{% extends '@theme/fullpage.html.twig' %} {% from "macros/widgets.html.twig" import nothing_found %} {% import "macros/progressbar.html.twig" as progress %} {% block title %}{{ 'project' | trans }} {{ project.name }}{% endblock %} {% block stylesheets %} {% if tabler_bundle.isRightToLeft() %} {{ encore_entry_link_tags('app-rtl') }} {% else %} {{ encore_entry_link_tags('app') }} {% endif %} {{ encore_entry_link_tags('chart') }} {% endblock %} {% block head %} {{ encore_entry_script_tags('app') }} {{ encore_entry_script_tags('chart') }} {% endblock %} {% block javascripts %} {% import "macros/webloader.html.twig" as webloader %} {{ webloader.init_frontend_loader() }} {% endblock %} {% block page_classes %}page{% endblock %} {% block page_content %} {% set show_progress = (stats.hasBudget() and portal.isBudgetStatsVisible()) or (stats.hasTimeBudget() and portal.isTimeBudgetStatsVisible()) %} {% set show_month_stats = statsPerMonth is not null %}
| {{ 'budget' | trans }} | {{ progress.progressbar_budget(stats, currency) }} |
| {{ 'timeBudget' | trans }} | {{ progress.progressbar_timebudget(stats) }} |
| {{ 'date' | trans }} | {% if portal.entryUserVisible %}{{ 'user' | trans }} | {% endif %}{{ 'description' | trans }} | {{ 'duration'|trans }} | {% if portal.entryRateVisible %}{{ 'hourlyRate' | trans }} | {{ 'total_rate' | trans }} | {% endif %}|
|---|---|---|---|---|---|---|
| {{ record.date | date_short }} | {% if portal.entryUserVisible %}{{ record.user.displayName }} | {% endif %}{{ record.description | e | nl2br }} | {{ record.duration | duration }} | {% if portal.entryRateVisible %} {% if record.differentHourlyRates %}
{% for info in record.hourlyRates %}
{{ info.duration | duration }} - {{ info.hourlyRate | format_currency(currency) }}
{% endfor %}
|
{% else %}
{% if record.hourlyRates is not empty %} {{ record.hourlyRates[0].hourlyRate | format_currency(currency) }} {% endif %} | {% endif %}{{ record.rate | format_currency(currency) }} | {% endif %}
| {% if portal.entryUserVisible %} | {% endif %} | {{ durationSum | duration }} | {% if portal.entryRateVisible %}{{ rateSum | format_currency(currency) }} | {% endif %}