Sha256: 878eba9c7f9a2b3b567e8d9d12d1382e8c06339a2de437a52450e2abab7d1ad6

Contents?: true

Size: 1.52 KB

Versions: 32

Compression:

Stored size: 1.52 KB

Contents

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

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

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

<%= will_paginate(@event_categories) -%>
</div>
</div>

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

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
enju_event-0.0.24 app/views/event_categories/index.html.erb
enju_event-0.0.23 app/views/event_categories/index.html.erb
enju_event-0.1.10 app/views/event_categories/index.html.erb
enju_event-0.1.9 app/views/event_categories/index.html.erb
enju_event-0.0.22 app/views/event_categories/index.html.erb
enju_event-0.0.21 app/views/event_categories/index.html.erb
enju_event-0.1.8 app/views/event_categories/index.html.erb
enju_event-0.0.20 app/views/event_categories/index.html.erb
enju_event-0.1.7 app/views/event_categories/index.html.erb
enju_event-0.0.19 app/views/event_categories/index.html.erb
enju_event-0.1.6 app/views/event_categories/index.html.erb
enju_event-0.0.18 app/views/event_categories/index.html.erb
enju_event-0.0.17 app/views/event_categories/index.html.erb
enju_event-0.1.5 app/views/event_categories/index.html.erb
enju_event-0.0.16 app/views/event_categories/index.html.erb
enju_event-0.1.4 app/views/event_categories/index.html.erb
enju_event-0.1.3 app/views/event_categories/index.html.erb
enju_event-0.0.15 app/views/event_categories/index.html.erb
enju_event-0.0.14 app/views/event_categories/index.html.erb
enju_event-0.0.13 app/views/event_categories/index.html.erb