<form data-request="onApplyDiscount"
      data-request-validate
      data-request-flash
      data-request-success="$.publish('mall.discount.applied')">
    <div class="mall-form-control">
        <label for="code">{{ 'offline.mall::frontend.discount.label' | trans }}</label>
        <input class="form-control" name="code" type="text" id="code" placeholder="{{ 'offline.mall::frontend.discount.placeholder' | trans }}">
        <div data-validate-for="code"></div>
    </div>
    <div class="text-end mb-4">
        <button type="submit" class="mall-btn btn btn-success">{{ 'offline.mall::frontend.discount.apply' | trans }}</button>
    </div>
</form>