Sha256: deef22bd9671c1709c7d219941c2ea9beb476bfdc159217b2c20d6d016f41935

Contents?: true

Size: 720 Bytes

Versions: 5

Compression:

Stored size: 720 Bytes

Contents

<div class="stepper">
  <%= f.hidden_field current_step_column, :value => resource.next_step %>
  <%= render "#{resource.next_step}_step", :f => f %>

  <ul class="actions">
    <li class="first save"><%= f.submit :value => t('stepper.save').html_safe %></li>
    <% unless resource.first_step?(resource.next_step) %>
      <li class="previous_step"><%= f.submit :value => t('stepper.previous_step').html_safe %></li>
    <% end %>
    <% unless resource.last_step?(resource.next_step) %>
      <li class="last next_step"><%= f.submit :value =>t('stepper.next_step').html_safe %></li>
    <% else %>
      <li class="last finish"><%= f.submit :value =>t('stepper.finish').html_safe %></li>
    <% end %>
  </ul>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
stepper-0.2.0 app/views/stepper/_fields.html.erb
stepper-0.1.0 app/views/stepper/_fields.html.erb
stepper-0.0.4 app/views/stepper/_fields.html.erb
stepper-0.0.3 app/views/stepper/_fields.html.erb
stepper-0.0.1 app/views/stepper/_fields.html.erb