Sha256: 09a60bb41fc1bc44b95839b64493a925b9bb3992b3dddc576921c0993b5cd227

Contents?: true

Size: 913 Bytes

Versions: 9

Compression:

Stored size: 913 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"><%= 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 t("add_#{type}"), "##{type}_member", { :icon => 'icon-plus', :id => "nested-#{type}" } %>
    </div>
  </fieldset>
</div>

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_core-1.3.5 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.3.4 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.3.3 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.3.2 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.3.1 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.3.0 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.3.0.rc2 app/views/spree/admin/zones/_member_type.html.erb
dup_spree_core-1.3.0.rc1 app/views/spree/admin/zones/_member_type.html.erb
spree_core-1.3.0.rc1 app/views/spree/admin/zones/_member_type.html.erb