Sha256: 0749a86060b387f6750c6c38c1d85a911ac4a905d2c6fbadbee288591c17f103

Contents?: true

Size: 1.77 KB

Versions: 39

Compression:

Stored size: 1.77 KB

Contents

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

<div class="search_form">
<%= form_for :series_statements, url: series_statements_path, html: {method: 'get'} do -%>
  <p>
    <%= label_tag :search_form_top, 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') -%>
    <%= set_focus_on_search_form -%>
  </p>
<%- end -%>
</div>

<table class="table table-striped index">
  <tr>
    <th id="position"></th>
    <th><%= t('activerecord.attributes.series_statement.original_title') -%></th>
    <th></th>
  </tr>

<% @series_statements.each do |series_statement| %>
  <tr class="line<%= cycle("0", "1") -%>">
    <td>
      <%- if @query.present? and policy(series_statement).update? -%>
        <%= move_position(series_statement) -%>
      <%- end -%>
    </td>
    <td>
      <strong><%= link_to series_statement.original_title, series_statement %></strong>
    </td>
    <td>
      <%= link_to t('page.edit'), edit_series_statement_path(series_statement) if policy(series_statement).update? -%>
      <%= link_to t('page.destroy'), series_statement, data: {confirm: t('page.are_you_sure')}, method: :delete if policy(series_statement).destroy? -%>
    </td>
  </tr>
<% end %>
</table>

<%= paginate(@series_statements) -%>

</div>
</div>

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

Version data entries

39 entries across 38 versions & 2 rubygems

Version Path
enju_biblio-0.3.18 app/views/series_statements/_index.html.erb
enju_biblio-0.3.17 app/views/series_statements/_index.html.erb
enju_biblio-0.3.16 app/views/series_statements/_index.html.erb
enju_biblio-0.3.15 app/views/series_statements/_index.html.erb
enju_biblio-0.3.14 app/views/series_statements/_index.html.erb
enju_biblio-0.3.13 app/views/series_statements/_index.html.erb
enju_biblio-0.3.12 app/views/series_statements/_index.html.erb
enju_biblio-0.3.11 app/views/series_statements/_index.html.erb
enju_biblio-0.3.10 app/views/series_statements/_index.html.erb
enju_biblio-0.3.10.rc.3 app/views/series_statements/_index.html.erb
enju_biblio-0.3.10.rc.2 app/views/series_statements/_index.html.erb
enju_biblio-0.3.10.rc.1 app/views/series_statements/_index.html.erb
enju_biblio-0.3.9 app/views/series_statements/_index.html.erb
enju_biblio-0.4.0.rc.1 app/views/series_statements/_index.html.erb
enju_biblio-0.3.8 app/views/series_statements/_index.html.erb
enju_biblio-0.3.7 app/views/series_statements/_index.html.erb
enju_biblio-0.3.6 app/views/series_statements/_index.html.erb
enju_biblio-0.4.0.beta.2 app/views/series_statements/_index.html.erb
enju_biblio-0.4.0.beta.1 app/views/series_statements/_index.html.erb
enju_biblio-0.3.5 app/views/series_statements/_index.html.erb