Sha256: 99d1aa0f0fff04475bfddb6e083b61fd73dc13cf2543e628468fceef1c72fb8d

Contents?: true

Size: 1.74 KB

Versions: 14

Compression:

Stored size: 1.74 KB

Contents

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

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

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

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

<div id="submenu" class="ui-corner-all">
  <ul>
    <%- if @user_group -%>
      <li><%= link_to t('page.new', :model => t('activerecord.models.user_group_has_checkout_type')), new_user_group_user_group_has_checkout_type_path(@user_group) -%></li>
    <%- else -%>
      <li><%= link_to t('page.new', :model => t('activerecord.models.checkout_type')), new_checkout_type_path -%></li>
    <%- end -%>
  </ul>
</div>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
enju_circulation-0.1.0.pre14 app/views/checkout_types/index.html.erb
enju_circulation-0.1.0.pre13 app/views/checkout_types/index.html.erb
enju_circulation-0.1.0.pre12 app/views/checkout_types/index.html.erb
enju_circulation-0.1.0.pre11 app/views/checkout_types/index.html.erb
enju_circulation-0.1.0.pre10 app/views/checkout_types/index.html.erb
enju_circulation-0.1.0.pre9 app/views/checkout_types/index.html.erb
enju_circulation-0.1.0.pre8 app/views/checkout_types/index.html.erb
enju_circulation-0.1.0.pre7 app/views/checkout_types/index.html.erb
enju_circulation-0.1.0.pre6 app/views/checkout_types/index.html.erb
enju_circulation-0.1.0.pre5 app/views/checkout_types/index.html.erb
enju_circulation-0.1.0.pre4 app/views/checkout_types/index.html.erb
enju_circulation-0.1.0.pre3 app/views/checkout_types/index.html.erb
enju_circulation-0.1.0.pre2 app/views/checkout_types/index.html.erb
enju_circulation-0.1.0.pre app/views/checkout_types/index.html.erb