Sha256: fdffa5ff7ab5965ad28c8de78e80cba84b2ec3bb3ebfb17ce11e98c200a52b96

Contents?: true

Size: 458 Bytes

Versions: 4

Compression:

Stored size: 458 Bytes

Contents

<%= f.error_messages %>

<ul>
  <% case action
     when 'new' then
       @fields = controller.create_fields || controller.form_fields
     when 'edit' then
       @fields = controller.update_fields || controller.form_fields
     end %>
<% @fields.each do |field| -%>
  <li><%= f.terbium_field field %></li>
<% end -%>
</ul>

<div class="buttons">
  <%= f.submit 'Save' %>
  <%= f.submit 'Save and exit' %>
  <%= link_to 'cancel', request.referer %>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
puffer-0.0.5 app/views/puffer/_form.html.erb
puffer-0.0.4 app/views/puffer/_form.html.erb
puffer-0.0.3 app/views/puffer/_form.html.erb
puffer-0.0.2 app/views/puffer/_form.html.erb