{{ reductionCredit.value|format_price(false) }} | {{ reductionCredit.value|format_price(false) }} | ||||
</td> | </td> | ||||
<td> | <td> | ||||
{% include '@EasyAdmin/default/field_boolean.html.twig' with {value: reductionCredit.status} %} | |||||
{% include '@LcShop/backend/default/field/status.html.twig' with {value: reductionCredit.status} %} | |||||
</td> | </td> | ||||
<td> | <td> | ||||
{% include '@EasyAdmin/default/field_boolean.html.twig' with {value: isUsed} %} | {% include '@EasyAdmin/default/field_boolean.html.twig' with {value: isUsed} %} | ||||
</td> | </td> | ||||
<td> | <td> | ||||
{% if isUsed == false %} | |||||
{% if isUsed == false and reductionCredit.status >=0 %} | |||||
{{ _self.button('ReductionCredit', 'edit', reductionCredit.id, 'primary') }} | {{ _self.button('ReductionCredit', 'edit', reductionCredit.id, 'primary') }} | ||||
{% endif %} | {% endif %} | ||||
</td> | </td> |
{% trans_default_domain 'EasyAdminBundle' %} | |||||
{% if value == 1 %} | |||||
<span class="badge badge-success">{{ 'label.true'|trans }}</span> | |||||
{% elseif value == 0 %} | |||||
<span class="badge badge-danger">{{ 'label.false'|trans }}</span> | |||||
{% elseif value == -1 %} | |||||
<span class="badge badge-secondary">Supprimé</span> | |||||
{% endif %} |
new TwigFunction('get_merchants', [$this, 'getMerchants']), | new TwigFunction('get_merchants', [$this, 'getMerchants']), | ||||
new TwigFunction('get_file_manager_folder', [$this, 'getFileManagerFolder']), | new TwigFunction('get_file_manager_folder', [$this, 'getFileManagerFolder']), | ||||
new TwigFunction('lc_format_price', [$this, 'formatPrice']), | new TwigFunction('lc_format_price', [$this, 'formatPrice']), | ||||
new TwigFunction('get_form_manage_notifications', [$this, 'getFormManageNotifications']), | |||||
); | ); | ||||
} | } | ||||