Sha256: 5492702eeea48888a3ce462e9de69e561a88901808adaefb5960ea9bb0cbe175

Contents?: true

Size: 832 Bytes

Versions: 5

Compression:

Stored size: 832 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 => _("%{model} filtered by %{filtered_by}",
                            :model => model_to_relate.model_name.human.pluralize,
                            :filtered_by => @item.to_label) %>
    <%= add_new %>
  </h2>

  <%= form %>

  <% unless @items.count.zero? -%>
    <%= table %>
    <%= pagination(:anchor => model_to_relate.to_resource) %>
  <% else %>
    <div id="flash" class="notice">
      <p><%= _("There are no %{records}.", :records => model_to_relate.model_name.human.pluralize.downcase) %></p>
    </div>
  <% end %>

</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
typus-1.0.0.pre5 app/views/admin/templates/_has_many.html.erb
typus-1.0.0.pre4 app/views/admin/templates/_has_many.html.erb
typus-1.0.0.pre3 app/views/admin/templates/_has_many.html.erb
typus-1.0.0.pre2 app/views/admin/templates/_has_many.html.erb
typus-1.0.0.pre app/views/admin/templates/_has_many.html.erb