Sha256: b595e95f3f50c6a38350f601e6c869ad99f8612c9d2cdb2fe25ce0ab32666391

Contents?: true

Size: 662 Bytes

Versions: 5

Compression:

Stored size: 662 Bytes

Contents

<%= form_with model: benefit, scope: :benefit, url: solidus_promotions.new_admin_promotion_benefit_path(@promotion), method: :get do |form| %>
  <div class="form-group">
    <%= form.label :type %>
    <%= admin_hint SolidusPromotions::Benefit.human_attribute_name(:type), t(:type, scope: [:solidus_promotions, :hints, "solidus_promotions/benefit"]) %>
    <%=
      form.select :type,
        options_for_benefit_types(form.object),
        {
          include_blank: t(:choose_benefit, scope: 'solidus_promotions')
        },
        class: 'custom-select w-100',
        onchange: 'this.form.requestSubmit()',
        required: true
    %>
  </div>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_promotions-4.5.1 lib/views/backend/solidus_promotions/admin/benefits/_type_select.html.erb
solidus_promotions-4.5.0 lib/views/backend/solidus_promotions/admin/benefits/_type_select.html.erb
solidus_promotions-4.4.2 lib/views/backend/solidus_promotions/admin/benefits/_type_select.html.erb
solidus_promotions-4.4.1 lib/views/backend/solidus_promotions/admin/benefits/_type_select.html.erb
solidus_promotions-4.4.0 lib/views/backend/solidus_promotions/admin/benefits/_type_select.html.erb