{% embed '@theme/embeds/card.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 %} {{ widgets.card_tool_button('create', {'class': 'modal-ajax-form open-edit', 'title': 'create', 'url': create_url}) }} {% endblock %} {% block box_body_class %}{% if rates is not empty %}p-0{% endif %}{% endblock %} {% block box_body %} {% if rates is empty %}
{{ 'rates.empty'|trans }}
{% else %} {% for rate in rates %} {% endfor %}
{{ 'user'|trans }} {{ 'hourlyRate'|trans }} {{ 'internalRate'|trans }} {{ 'fixedRate'|trans }}
{% endif %} {% endblock %} {% endembed %}