Sha256: 7214c8ecf1b0c79210c40e9496bd02efd21f2796f8aaa83cce206b29941df832

Contents?: true

Size: 695 Bytes

Versions: 17

Compression:

Stored size: 695 Bytes

Contents

<%%= error_messages_for :<%= singular_name %> -%>
<%% form_for [:admin, @<%= singular_name %>] do |f| -%>
  <% attributes.each_with_index do |attribute, index| %>
  <div class='field'>
    <%%= f.label :<%= attribute.name %> -%>
<% if attribute.field_type.to_s == "text_area" -%>
    <%%= f.text_area :<%= attribute.name %>, :rows => 20, :cols => 140, :class => 'wymeditor' -%>
<% else -%>
    <%%= f.<%= attribute.field_type -%> :<%= attribute.name -%><%= ", :class => 'larger'" if (index == 0 && attribute.field_type == :text_field) -%> -%>
<% end -%>
  </div>
  <% end %>
  <%%= render :partial => "/shared/admin/form_actions", :locals => {:f => f, :continue_editing => false} %>
<%% end -%>

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
jacobat-refinerycms-0.9.6.14 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/_form.html.erb
refinerycms-0.9.6.17 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/_form.html.erb
refinerycms-0.9.6.16 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/_form.html.erb
refinerycms-0.9.6.15 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/_form.html.erb
refinerycms-0.9.6.14 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/_form.html.erb
refinerycms-0.9.6.13 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/_form.html.erb
refinerycms-0.9.6.12 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/_form.html.erb
refinerycms-0.9.6.11 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/_form.html.erb
refinerycms-0.9.6.10 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/_form.html.erb
refinerycms-0.9.6.9 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/_form.html.erb
refinerycms-0.9.6.8 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/_form.html.erb
refinerycms-0.9.6.7 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/_form.html.erb
refinerycms-0.9.6.6 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/_form.html.erb
refinerycms-0.9.6.5 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/_form.html.erb
refinerycms-0.9.6.4 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/_form.html.erb
refinerycms-0.9.6.3 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/_form.html.erb
refinerycms-0.9.6.2 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/_form.html.erb