Sha256: dfb7d4f0fdb2999f58da2d195fc18c9325d54c0e3e07ddc62c27e334d62ca31e

Contents?: true

Size: 1.38 KB

Versions: 11

Compression:

Stored size: 1.38 KB

Contents

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

<table class="index">
  <tr>
    <th id="position"></th>
    <th><%= t('activerecord.attributes.subject_type.name') -%></th>
    <th><%= t('activerecord.attributes.subject_type.display_name') -%></th>
    <th><%= t('activerecord.attributes.subject_type.note') -%></th>
    <th></th>
  </tr>

<%- @subject_types.each do |subject_type| -%>
  <tr class="line<%= cycle("0", "1") -%>">
    <td>
      <%- if can? :update, subject_type -%>
        <%= move_position(subject_type) -%>
      <%- end -%>
    </td>
    <td><%= link_to subject_type.name, subject_type -%></td>
    <td><%= link_to subject_type.display_name.localize, subject_type -%></td>
    <td><%= subject_type.note -%></td>
    <td>
      <%- if can? :update, subject_type -%>
        <%= link_to t('page.edit'), edit_subject_type_path(subject_type) -%>
      <% end %>
      <%- if can? :destroy, subject_type -%>
        <%= link_to t('page.destroy'), subject_type, :confirm => t('page.are_you_sure'), :method => :delete -%>
      <%- end -%>
    </td>
  </tr>
<%- end -%>
</table>

</div>
</div>

<div id="submenu" class="ui-corner-all">
  <ul>
    <li><%= link_to t('page.new', :model => t('activerecord.models.subject_type')), new_subject_type_path -%></li>
  </ul>
</div>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
enju_subject-0.0.15 app/views/subject_types/index.html.erb
enju_subject-0.0.14 app/views/subject_types/index.html.erb
enju_subject-0.0.13 app/views/subject_types/index.html.erb
enju_subject-0.0.12 app/views/subject_types/index.html.erb
enju_subject-0.0.10 app/views/subject_types/index.html.erb
enju_subject-0.0.9 app/views/subject_types/index.html.erb
enju_subject-0.0.8 app/views/subject_types/index.html.erb
enju_subject-0.0.7 app/views/subject_types/index.html.erb
enju_subject-0.0.6 app/views/subject_types/index.html.erb
enju_subject-0.0.5 app/views/subject_types/index.html.erb
enju_subject-0.0.4 app/views/subject_types/index.html.erb