% content_for :header, javascript_include_tag('admin/formbuilder') %> <% content_for :header, javascript_include_tag( 'tiny_mce/jquery.tinymce', 'admin/tiny_mce_config', 'admin/nodes', 'admin/assets' ) %>
* Required Fields
<%= form_for(@form, :as => 'form', :url => (@form.new_record? ? noodall_admin_forms_path : noodall_admin_form_path(@form.id)) ) do |f| %> <%= f.error_messages %>
<%= f.label :title, 'Title *' %>
<%= f.text_field :title %>
<%= f.label :description, 'Description' %>
<%= f.text_area :description, :rows => 3 %>
<%= f.label :email, 'Email *' %>
<%= f.text_field :email %>
<%= f.label :thank_you_message %>
<%= f.text_area :thank_you_message, :rows => 3 %>
<%= f.label :thank_you_email %>
<%= f.text_area :thank_you_email, :rows => 3 %>