Sha256: 02575e01b7ce0207140697fcdb3521ae61781b008dc04e1c649dec796a5871dd

Contents?: true

Size: 1.54 KB

Versions: 15

Compression:

Stored size: 1.54 KB

Contents

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

<table class="table table-striped index">
  <tr>
    <th id="position"></th>
    <th><%= t('activerecord.attributes.bookstore.name') -%></th>
    <th><%= t('activerecord.attributes.bookstore.telephone_number') -%></th>
    <th><%= t('activerecord.attributes.bookstore.fax_number') -%></th>
    <th></th>
  </tr>

<%- @bookstores.each_with_index do |bookstore, i| -%>
  <tr class="line<%= cycle("0", "1") -%>">
    <td>
      <%- if can? :update, bookstore -%>
        <%= move_position(bookstore) -%>
      <%- end -%>
    </td>
    <td>
      <%= link_to bookstore.name, bookstore -%><br />
      <%= link_to bookstore.url, bookstore.url if bookstore.url? -%>
    </td>
    <td><%= bookstore.telephone_number -%></td>
    <td><%= bookstore.fax_number -%></td>
    <td>
      <%- if can? :update, bookstore -%>
        <%= link_to t('page.edit'), edit_bookstore_path(bookstore) -%>
      <% end %>
      <%- if can? :delete, bookstore -%>
        <%= link_to t('page.destroy'), bookstore, data: {confirm: t('page.are_you_sure')}, method: :delete -%>
      <%- end -%>
    </td>
  </tr>
<%- end -%>
</table>

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

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
enju_library-0.1.2 app/views/bookstores/index.html.erb
enju_library-0.1.1 app/views/bookstores/index.html.erb
enju_library-0.1.0 app/views/bookstores/index.html.erb
enju_library-0.1.0.pre45 app/views/bookstores/index.html.erb
enju_library-0.1.0.pre44 app/views/bookstores/index.html.erb
enju_library-0.1.0.pre43 app/views/bookstores/index.html.erb
enju_library-0.1.0.pre42 app/views/bookstores/index.html.erb
enju_library-0.1.0.pre41 app/views/bookstores/index.html.erb
enju_library-0.1.0.pre40 app/views/bookstores/index.html.erb
enju_library-0.1.0.pre39 app/views/bookstores/index.html.erb
enju_library-0.1.0.pre38 app/views/bookstores/index.html.erb
enju_library-0.1.0.pre37 app/views/bookstores/index.html.erb
enju_library-0.1.0.pre36 app/views/bookstores/index.html.erb
enju_library-0.1.0.pre35 app/views/bookstores/index.html.erb
enju_library-0.1.0.pre34 app/views/bookstores/index.html.erb