Sha256: 0762c19b9ca6831cdaa0028a2ec84ea5530dac486401df02054c26473c1dce88

Contents?: true

Size: 1.97 KB

Versions: 2

Compression:

Stored size: 1.97 KB

Contents

<div id="content_detail" class="ui-corner-all">
<h1 class="title"><%= t('page.listing', :model => t('activerecord.models.classification')) -%></h1>
<div id="content_list">

<div class="search_form">
  <%= form_for :classifications, :url => classifications_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.classification.category') -%></th>
    <th><%= t('activerecord.attributes.classification.note') -%></th>
    <th><%= t('activerecord.models.classification_type') -%></th>
    <th></th>
  </tr>

<%- @classifications.each do |classification| -%>
  <tr class="line<%= cycle("0", "1") -%>">
    <td><%= link_to classification.category, classification -%></td>
    <td><%= classification.note -%></td>
    <td><%= link_to classification.classification_type.display_name.localize, classification.classification_type -%></td>
    <td>
      <%- if can? :destroy, classification -%>
        <%= link_to t('page.edit'), edit_classification_path(classification) -%>
        <%= link_to t('page.destroy'), classification, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
      <%- end -%>
    </td>
  </tr>
<%- end -%>
</table>

<%= will_paginate(@classifications) -%>

</div>
</div>

<div id="submenu" class="ui-corner-all">
  <ul>
    <%- if can? :create, Classification -%>
      <%- if @classification_type -%>
        <li><%= link_to t('page.new', :model => t('activerecord.models.classification')), new_classification_type_classification_path(@classification_type) -%></li>
      <%- else -%>
        <li><%= link_to t('page.new', :model => t('activerecord.models.classification')), new_classification_path -%></li>
      <%- end -%>
    <%- end -%>
  </ul>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
enju_subject-0.0.18 app/views/classifications/_index.html.erb
enju_subject-0.0.17 app/views/classifications/_index.html.erb