app/views/agents/_index.html.erb
<div id="content_detail" class="ui-corner-all">
<h1 class="title"><%= t('page.listing', :model => t('activerecord.models.agent')) -%></h1>
<div id="content_list">
<%= form_for :agents, :url => agents_path, :html => {:method => 'get'} do -%>
<p>
<%= t('page.search_term') -%>: <%= search_field_tag 'query', h(@query), {:id => 'search_form_top', :class => 'search_form', :placeholder => t('page.search_term')} -%>
<%= submit_tag t('page.search') -%>
</p>
<%- end -%>
<table class="index">
<tr>
<th><%= t('activerecord.attributes.agent.full_name') -%></th>
<th><%= t('activerecord.models.agent_type') -%></th>
<th><%= t('activerecord.attributes.agent.date_of_birth') -%></th>
<th id="edit_icons"></th>
</tr>
<%= render @agents %>
</table>
<%= paginate(@agents) -%>
</div>
</div>
<div id="submenu" class="ui-corner-all">
<h3>
<%= link_to h("#{t('page.total')}: #{@count[:query_result]}"),
url_for(params.merge(:action => 'index', :library => nil, :role => nil, :agent_type => nil)) %>
</h3>
<% if @count[:query_result] > 0 %>
<%= render 'agent_type_facet' %>
<br />
<% end %>
<ul>
<%- if can? :create, Agent -%>
<li><%= link_to t('agent.add'), new_agent_path -%></li>
<li><%= link_to t('activerecord.models.agent_merge'), agent_merge_lists_path -%></li>
<%- end -%>
</ul>
<%- if can? :create, Agent -%>
<div id="iconmenu" class="ui-corner-all">
<strong><%= t('tooltip.icons_info') -%></strong>
<ul>
<li><%= image_tag('icons/page_white_edit.png', :size => '16x16', :alt => t('page.edit'), :title => t('tooltip.edit')) -%>: <%=t('page.edit')-%></li>
<li><%= image_tag('icons/arrow_divide.png', :size => '16x16', :alt => t('agent.add_derivation'), :title => t('agent.add_derivation')) -%>: <%=t('agent.add_derivation')-%></li>
</ul>
</div>
<%- end -%>
</div>