<% cms_cache do select = cms_select(1, Float::INFINITY) -%> <%= cms_form_for do |f| %> <%= f.input :name, input_html: cms_validate_presence %> <%= f.input :email, input_html: cms_validate_email %> <%= f.input :periods, as: :check_boxes, collection: select.options, input_html: cms_validates(check_boxes: true) %> <%= select.edit_links(:value) %> <%# cms_form_instance.fields.each do |field| %> <%#= f.input field.column_key, as: field.input_type, required: field.required?, label: field.label, input_html: cms_validates(field.input_type => field.required?) -%> <%# end %> <%= f.submit cms_form_send, cms_form_sending %> <% end %> <% end %>