{% embed '@AdminLTE/Widgets/box-widget.html.twig' with {'id': id, 'entity': entity, 'create_url': create_url, 'delete_route': delete_route, 'currency': currency} %} {% import "macros/widgets.html.twig" as widgets %} {% block box_attributes %}id="{{ id }}"{% endblock %} {% block box_title %} {{ 'rates.title'|trans }} {% endblock %} {% block box_tools %} {% endblock %} {% block box_body_class %}no-padding{% endblock %} {% block box_body %} {% if rates is empty %}
{{ 'rates.empty'|trans }}
{% else %} {% for rate in rates %} {% endfor %}
{{ 'label.user'|trans }} {{ 'label.hourlyRate'|trans }} {{ 'label.rate_internal'|trans }} {{ 'label.fixedRate'|trans }}
{% if rate.user is not null %} {{ widgets.user_avatar(rate.user) }} {% else %} – {% endif %} {{ rate.rate|money(currency) }} {{ rate.internalRate|money(currency) }} {{ widgets.label_boolean(rate.fixed) }}
{% endif %} {% endblock %} {% endembed %}