<%= t('page.search_term') -%>: <%= search_field_tag 'query', h(@query), {:id => 'search_form_top', :class => 'search_form', :placeholder => t('page.search_term')} -%> <%- if can? :update, @patron_merge_list -%> <%= render 'page/add' %> <%- end -%> <%= submit_tag t('page.search') -%> <%= link_to t('page.back_to_index'), patron_merge_list_patrons_path(@patron_merge_list) -%>
<%- end -%><%= t('activerecord.attributes.patron.full_name') -%> | <%= t('activerecord.models.patron_type') -%> | <%= t('activerecord.attributes.patron.date_of_birth') -%> | |
---|---|---|---|
<%= link_to patron.full_name, patron_merge_list_patron_path(@patron_merge_list, patron) -%> | <%= patron.patron_type.display_name.localize -%> | <%=l patron.date_of_birth if patron.date_of_birth -%> | <%- if can? :destroy, patron -%> <%- if params[:mode] == 'add' -%> <%= link_to t('page.add'), new_patron_merge_list_patron_merge_path(@patron_merge_list, :patron_id => patron.id) unless @patron_merge_list.patrons.include?(patron) -%> <%- else -%> <%- patron_merge = @patron_merge_list.patron_merges.where(:patron_id => patron.id).first -%> <%= link_to t('page.destroy'), patron_merge_list_patron_merge_path(@patron_merge_list, patron_merge), :confirm => t('page.are_you_sure'), :method => :delete if patron_merge -%> <%- end -%> <%- end -%> |