Sha256: d809ce92bdc4ffdad3bf6ccdfc2771e3f208d7255d71023cf8059b426f4b2fa4
Contents?: true
Size: 1017 Bytes
Versions: 1
Compression:
Stored size: 1017 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.type.to_s == 'image' -%> <%%= render :partial => "/shared/admin/image_picker", :locals => { :f => f, :field => :<%= "#{attribute.name}_id".gsub("_id_id", "_id") %>, :image => @<%= singular_name %>.<%= attribute.name.gsub("_id", "") %>, :toggle_image_display => false } %> <% elsif 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-0.9.6.18 | vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/_form.html.erb |