Sha256: 6fca63c0e8d05cce4a8211c1989f54474d34342d426805e08a2efcab65ec3ba0

Contents?: true

Size: 817 Bytes

Versions: 6

Compression:

Stored size: 817 Bytes

Contents

<a name="<%= field %>"></a>
<div class="box_relationships" id="<%= model_to_relate_as_resource %>">

  <h2>
    <%= link_to model_to_relate.model_name.human.pluralize,
                { :controller => "admin/#{model_to_relate_as_resource}", foreign_key => @item.id },
                :title => _t("%{model} filtered by %{filtered_by}",
                            :model => model_to_relate.model_name.human.pluralize,
                            :filtered_by => @item.to_label) %>
    <%= add_new %>
  </h2>

  <%= form %>

  <% if @items.any? -%>
    <%= table %>
    <%= will_paginate(@items, :renderer => Typus::Pagination, :anchor => model_to_relate.to_resource) %>
  <% else %>
    <p><%= _t("There are no %{records}.", :records => model_to_relate.model_name.human.pluralize.downcase) %></p>
  <% end %>

</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
typus-3.0.2 app/views/admin/templates/_has_many.html.erb
typus-3.0.1 app/views/admin/templates/_has_many.html.erb
typus-3.0.0 app/views/admin/templates/_has_many.html.erb
typus-1.0.0.pre13 app/views/admin/templates/_has_many.html.erb
typus-1.0.0.pre12 app/views/admin/templates/_has_many.html.erb
typus-1.0.0.pre11 app/views/admin/templates/_has_many.html.erb