Sha256: bdc01056ca878cae794a1da19f72a5a96143adfb1ad1ea51c4f664c1583a0ce9
Contents?: true
Size: 1.6 KB
Versions: 11
Compression:
Stored size: 1.6 KB
Contents
<div id="content_detail" class="ui-corner-all"> <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.subject')) -%></h1> <div id="content_list"> <div class="search_form"> <%= form_for :subjects, :url => subjects_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 -%> </div> <table class="index"> <tr> <th><%= t('activerecord.attributes.subject.term') -%></th> <th></th> </tr> <%- subjects.each do |subject| -%> <tr class="line<%= cycle("0", "1") -%>"> <td><%= link_to subject.term, subject -%></td> <td> <%- if can? :update, subject -%> <%= link_to t('page.edit'), edit_subject_path(subject) -%> <%- end -%> <%- if can? :destroy, subject -%> <%= link_to t('page.destroy'), subject, :confirm => t('page.are_you_sure'), :method => :delete -%> <%- end -%> </td> </tr> <%- end -%> </table> <%= will_paginate(subjects) -%> </div> </div> <div id="submenu" class="ui-corner-all"> <ul> <%- if can? :create, Subject -%> <%- if @subject_heading_type -%> <li><%= link_to t('page.new', :model => t('activerecord.models.subject')), new_subject_heading_type_subject_path(@subject_heading_type) -%></li> <%- else -%> <li><%= link_to t('page.new', :model => t('activerecord.models.subject')), new_subject_path -%></li> <%- end -%> <%- end -%> </ul> </div>
Version data entries
11 entries across 11 versions & 1 rubygems