Sha256: 7216b3b2d0b0b695696cb39f8fb40f0ce26c436206cb0e37bacac6d91cccba56

Contents?: true

Size: 1.13 KB

Versions: 4

Compression:

Stored size: 1.13 KB

Contents

<%= turbo_frame_tag condition.benefit, "new_condition" do %>
<div class="card bg-light mb-3">
  <div class="card-header">
    <%= t(:add_condition, scope: :solidus_friendly_promotions) %>
  </div>
  <div class="card-body">
    <%= render 'solidus_friendly_promotions/admin/conditions/type_select', benefit: condition.benefit %>
    <% flash.each do |severity, message| %>
      <%= content_tag(:div, "", data: { controller: :flash, severity: severity, message: message }) %>
    <% end %>
    <% if condition.valid? %>
      <%= form_with model: condition, scope: "condition", url: solidus_friendly_promotions.admin_promotion_benefit_conditions_path(@promotion, condition.benefit), data: { turbo: false } do |form| %>
        <%= hidden_field_tag "condition[type]", condition.class.name %>
        <%= render condition, condition: condition, param_prefix: "condition", form: form %>

        <div class="row">
          <div class="col-12">
            <%= form.submit(t(:add, scope: [:solidus_friendly_promotions, :crud]), class: "btn btn-secondary float-right") %>
          </div>
        </div>

      <% end %>
    <% end %>
  </div>
</div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_friendly_promotions-1.9.3 app/views/solidus_friendly_promotions/admin/conditions/_new_condition.html.erb
solidus_friendly_promotions-1.9.2 app/views/solidus_friendly_promotions/admin/conditions/_new_condition.html.erb
solidus_friendly_promotions-1.9.1 app/views/solidus_friendly_promotions/admin/conditions/_new_condition.html.erb
solidus_friendly_promotions-1.9.0 app/views/solidus_friendly_promotions/admin/conditions/_new_condition.html.erb