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