{% 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 %}
{{ 'user'|trans }} | {{ 'hourlyRate'|trans }} | {{ 'internalRate'|trans }} | {{ 'fixedRate'|trans }} | |
---|---|---|---|---|
{% if rate.user is not null %} {{ widgets.user_avatar(rate.user) }} {% else %} – {% endif %} | {{ rate.rate|money(currency) }} | {% if rate.internalRate is not null %} {{ rate.internalRate|money(currency) }} {% else %} – {% endif %} | {{ widgets.label_boolean(rate.fixed) }} |