{% extends 'creme_core/bricks/base/base.html' %} {% load i18n creme_bricks creme_widgets %} {% load has_perm_to url from creme_core_tags %} {% block brick_extra_class %}billing-lines-brick{% endblock %} {% block brick_extra_attributes %} data-type-currency="{{object.currency.local_symbol}}" data-type-global-discount="{{object.discount}}" {% endblock %} {% block brick_header_actions %} {% has_perm_to change object as change_perm %} {% brick_header_action id='billing-line-saveall' url='billing__multi_save_lines'|url:object.id label=_('Save all lines') icon='ok' enabled=change_perm loading=_('Saving…') %} {% brick_header_action id='billing-line-addonfly' __ctype_id=ct_id __prefix=formset.prefix __count=item_count label=_('Add a line on the fly') type='add' enabled=change_perm %} {% block brick_line_header_actions %}{% endblock %} {% endblock %} {% block brick_content %} {% has_perm_to change object as change_perm %} {% widget_icon name='reorder' as reorder_icon %} {% translate 'Reset' context 'billing-lines' as reset_label %}