Sha256: d003c2af76f42add7b81fee3aeabb70b4afd4ee732cb8ef5f8908b1ee4919fce

Contents?: true

Size: 1.44 KB

Versions: 10

Compression:

Stored size: 1.44 KB

Contents

<div id="content_detail" class="ui-corner-all ui-widget-content">
<h1 class="title"><%= t('page.listing', model: t('activerecord.models.subject')) -%></h1>
<div id="content_list">
<p id="notice"><%= notice %></p>
  
<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 ui-widget-content">
  <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

10 entries across 10 versions & 1 rubygems

Version Path
enju_subject-0.1.1 app/views/subjects/index.html.erb
enju_subject-0.1.0 app/views/subjects/index.html.erb
enju_subject-0.1.0.pre34 app/views/subjects/index.html.erb
enju_subject-0.1.0.pre33 app/views/subjects/index.html.erb
enju_subject-0.1.0.pre32 app/views/subjects/index.html.erb
enju_subject-0.1.0.pre31 app/views/subjects/index.html.erb
enju_subject-0.1.0.pre30 app/views/subjects/index.html.erb
enju_subject-0.1.0.pre29 app/views/subjects/index.html.erb
enju_subject-0.1.0.pre28 app/views/subjects/index.html.erb
enju_subject-0.1.0.pre27 app/views/subjects/index.html.erb