Sha256: 28c71ab2a6697739c6ac56b3093b7c1e6fa0d74386e5a1c09113448c2c3b7e8b

Contents?: true

Size: 1.4 KB

Versions: 11

Compression:

Stored size: 1.4 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="table table-striped 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? :delete, subject -%>
          <%= link_to t('page.destroy'), subject, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
        <%- end -%>
      </td>
    </tr>
  <%- end -%>
</table>

<%= paginate(@subjects) -%>
</div>
</div>

<div id="submenu" class="ui-corner-all">
  <ul>
    <%- if can? :create, Subject -%>
      <li><%= link_to t('page.new', :model => t('activerecord.models.subject')), new_subject_path -%></li>
    <%- end -%>
  </ul>
</div>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
enju_subject-0.1.0.pre24 app/views/subjects/index.html.erb
enju_subject-0.1.0.pre23 app/views/subjects/index.html.erb
enju_subject-0.1.0.pre22 app/views/subjects/index.html.erb
enju_subject-0.1.0.pre21 app/views/subjects/index.html.erb
enju_subject-0.1.0.pre20 app/views/subjects/index.html.erb
enju_subject-0.1.0.pre19 app/views/subjects/index.html.erb
enju_subject-0.1.0.pre18 app/views/subjects/index.html.erb
enju_subject-0.1.0.pre17 app/views/subjects/index.html.erb
enju_subject-0.1.0.pre16 app/views/subjects/index.html.erb
enju_subject-0.1.0.pre15 app/views/subjects/index.html.erb
enju_subject-0.1.0.pre14 app/views/subjects/index.html.erb