Sha256: 2b33f495410a6c3235b385ba579070e2014e294477c06ef7bd88971f0ff8c8ed

Contents?: true

Size: 802 Bytes

Versions: 28

Compression:

Stored size: 802 Bytes

Contents

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

<div id="<%= type %>_members" data-hook="member">
  <fieldset id="">
    <legend><%= t(type) %></legend>
    <ul id="ul-nested-<%= type %>" class="member-list">
      <% 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>
    <p data-hook="buttons">
      <%= button_link_to t("add_#{type}"), "##{type}_member", { :icon => 'add', :id => "nested-#{type}" } %>
    </p>
  </fieldset>
</div>

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
spree_core-1.2.5 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.1.6 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.1.5 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.2.4 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.0.7 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.2.3 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.2.2 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.1.4 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.2.0 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.2.0.rc2 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.2.0.rc1 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.1.3 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.0.6 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.1.2 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.1.2.rc1 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.1.1 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.1.0 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.0.4 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.1.0.rc2 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.1.0.rc1 app/views/spree/admin/zones/_member_type.html.erb