Sha256: c21f4e17f2c529b86c7ff5fdafd447dd1cde99f74094d53238cef5500878b566

Contents?: true

Size: 922 Bytes

Versions: 5

Compression:

Stored size: 922 Bytes

Contents

<%= javascript_tag "var #{type}_member='#{generate_template(zone_form, :zone_members, {:partial => type + "_member"})}';" %>


<div id="<%= type %>_members" data-hook="member" class="omega six columns">
  <fieldset class="no-border-bottom">
    <legend align="center"><%= Spree.t(type) %></legend>

    <ul id="ul-nested-<%= type %>" class="member-list fields">
      <% members_of_type = zone_form.object.zone_members.select { |member| member.zoneable_type && member.zoneable_type == "Spree::#{type.capitalize}" } %>
      <%= zone_form.fields_for :zone_members, members_of_type do |member_form| %>
        <%= render :partial => "#{type}_member", :locals => { :f => member_form } %>
      <% end %>
    </ul>

    <div data-hook="buttons" class="field align-center">
      <%= button_link_to Spree.t("add_#{type}"), "##{type}_member", { :icon => 'icon-plus', :id => "nested-#{type}" } %>
    </div>
  </fieldset>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_backend-2.0.3 app/views/spree/admin/zones/_member_type.html.erb
spree_backend-2.0.2 app/views/spree/admin/zones/_member_type.html.erb
spree_backend-2.0.1 app/views/spree/admin/zones/_member_type.html.erb
spree_backend-2.0.0 app/views/spree/admin/zones/_member_type.html.erb
spree_backend-2.0.0.rc1 app/views/spree/admin/zones/_member_type.html.erb