Sha256: ea842c0ab8c2c463ca8d14dbe442118a69d5773883598e2e61afc6f647aba5b9

Contents?: true

Size: 981 Bytes

Versions: 10

Compression:

Stored size: 981 Bytes

Contents

<h2><%= t('iord.titles.iterate', models: collection_name) %></h1>
<%= iordh.link_to_collection %>
<br />
<%= iordh.iterate_form %>
<br />
<br />
<% if @resource -%>
  <% if iterate_edition -%>
    <%= nested_form_for([*(resource_path + [@resource])], as: resource_name_u, url: iterate_url(true), method: :patch) do |f| %>
      <% if @resource.errors.any? -%>
        <div id="error_explanation">
          <h3><%= t('iord.errors.explanation', errors: pluralize(@resource.errors.count, t('iord.errors.error'))) %></h3>
        </div>
      <% end %>
      <%= iordh.fieldset(@form_title, edit_attrs, f) { iordh.submit_to_previous_if_possible(f) + iordh.submit_to_next_if_possible(f) } %>
    <% end -%>
    <%= iordh.link_to_iterate_show %>
  <% else -%>
    <%= iordh.display(@resource, show_attrs) %>
    <%= iordh.link_to_iterate_edit %>
    <br />
    <%= iordh.link_to_iterate_previous_if_possible %>
    <%= iordh.link_to_iterate_next_if_possible %>
  <% end -%>
<% end -%>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
iord-1.2.2 app/views/iord/iterate.html.erb
iord-1.2.1 app/views/iord/iterate.html.erb
iord-1.2.0 app/views/iord/iterate.html.erb
iord-1.1.3 app/views/iord/iterate.html.erb
iord-1.1.2 app/views/iord/iterate.html.erb
iord-1.1.1 app/views/iord/iterate.html.erb
iord-1.1.0 app/views/iord/iterate.html.erb
iord-1.0.3 app/views/iord/iterate.html.erb
iord-1.0.2 app/views/iord/iterate.html.erb
iord-1.0.1 app/views/iord/iterate.html.erb