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