Sha256: 25bcfe911460435e663e4d91d0b8120f1ade7bb6d7c20cb4991f2d84672511f8

Contents?: true

Size: 651 Bytes

Versions: 5

Compression:

Stored size: 651 Bytes

Contents

<%= form_for @form.presentable, :url => @form.url, :method => @form.method, :html => @form.html do |f| %>
  <% @form.groups.each do |group| %>
    <fieldset>
      <% unless group.name.blank? %>
        <legend><%= group.name %></legend>
      <% end %>
      <% group.fields.each do |field| %>
        <% if field.type.to_sym == :hidden %>
          <%= f.present(field) %>
        <% else %>
          <div class="field">
            <%= f.label field.name, field.label %>
            <%= f.present(field) %>
          </div>
        <% end %>
      <% end %>
    </fieldset>
  <% end %>
  <%= f.submit @form.button %>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
presenting-3.0.0 app/views/presentations/_form.erb
presenting-2.1.0 app/views/presentations/_form.erb
presenting-2.0.3 app/views/presentations/_form.erb
presenting-2.0.2 app/views/presentations/_form.erb
presenting-2.0.1 app/views/presentations/_form.erb