<%= 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, work -%> <%= render 'page/add' %> <% end %> <%= submit_tag t('page.search') -%> <%= link_to t('page.back_to_index'), work_patrons_path(work) -%>
<%- end -%><%= t('activerecord.attributes.patron.full_name') -%> | <%= t('activerecord.models.create_type') -%> | <%= t('activerecord.models.patron_type') -%> | |
---|---|---|---|
<%= link_to patron.full_name, patron -%> | <%= work.created(patron).create_type.display_name.localize if params[:mode] != 'add' and work.created(patron).try(:create_type) -%> | <%= patron.patron_type.display_name.localize -%> | <%- if can? :destroy, patron -%> <%- if params[:mode] == 'add' -%> <%= link_to t('page.add'), new_work_create_path(work, :patron_id => patron.id) unless work.creators.include?(patron) -%> <%- else -%> <%= link_to t('page.edit'), edit_create_path(work.created(patron)) -%> <%= link_to t('page.destroy'), work_create_path(work, work.created(patron)), :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%> <%- end -%> <%- end -%> |