Sha256: 60e839593c93370f7a8f4bbbd8a3a02a5951db8fd48f0528a8869d5e05a05df5
Contents?: true
Size: 1.21 KB
Versions: 1
Compression:
Stored size: 1.21 KB
Contents
<% association_class = f.object.class.reflect_on_association(association).klass %> <%= f.inputs t(association, :scope => 'activerecord.models', :default => association.to_s.humanize), :class => "associated-resources" do %> <table class="table table-bordered table-striped index-table associated-resources-index"> <tr><th><%= labelize_attribute_name(title_column(association_class)) %></th><th style="width:30%;"><%= t('fullstack.admin.actions', :default => "Actions") %></th></tr> <% i = 0 %> <%= f.admin_fields_for association do |f| %> <%= render :partial => "nested_form", :locals => {:index => i, :f => f, :resource_name => resource_name, :association => association} %> <% i += 1 %> <% end %> </table> <script type="text/html" charset="utf-8" class="resource-fields-template"> <%= f.admin_fields_for(association, association_class.new, :child_index => "___index___") do |f| %> <%= render :partial => "nested_form", :locals => {:index => "___index___", :f => f, :resource_name => resource_name, :association => association} %> <% end %> </script> <%= button t('fullstack.admin.add', :default => "Add"), "javascript:void(0);", :class => "btn-add-associated-resource" %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fullstack-admin-0.1.20 | app/views/admin/base/_associated_resources_table.html.erb |