{% extends 'base.html.twig' %} {% import "customer/actions.html.twig" as actions %} {% block page_title %}{{ 'admin_customer.title'|trans }}{% endblock %} {% block page_actions %}{{ actions.customer(customer, 'delete') }}{% endblock %} {% block main %} {% set params = { '%activity%': '' ~ stats.activityAmount ~ '', '%project%': '' ~ stats.projectAmount ~ '', '%customer%': '' ~ customer.name ~ '', '%records%': '' ~ stats.recordAmount ~ '', '%duration%': '' ~ stats.recordDuration|duration ~ '', '%rate%': '' ~ stats.recordRate|money ~ '' } %} {% embed '@AdminLTE/Widgets/box-widget.html.twig' %} {% import "macros/progressbar.html.twig" as progress %} {% block box_title %}{{ customer.name }}{% endblock %} {% block box_body %}

{{ 'admin_customer.short_stats'|trans(params)|raw }}

{{ progress.progressbar(customer.budget, stats.recordRate, 'label.budget'|trans, stats.recordRate|money(customer.currency) ~ ' / ' ~ customer.budget|money(customer.currency) ) }} {{ progress.progressbar(customer.timeBudget, stats.recordDuration, 'label.timeBudget'|trans, stats.recordDuration|duration ~ ' / ' ~ customer.timeBudget|duration ) }} {% endblock %} {% endembed %} {% endblock %}