Skip to content

Instantly share code, notes, and snippets.

@brandoncordell
Created July 26, 2011 23:26
Show Gist options
  • Save brandoncordell/1108350 to your computer and use it in GitHub Desktop.
Save brandoncordell/1108350 to your computer and use it in GitHub Desktop.
%h2 Post Your Job
%ol
%li Listing Details
%li Company Details
%li Preview Your Listing
%li Finish
- form_for :job, :url => { :action => :create } do |f|
/ = f.error_messages
/ = render "jobs/shared/#{@job.current_step}", :f => f
%h2 Listing Details
%p
= f.label :title
= f.text_field :title
%p
= f.radio_button :type, 'full_time'
= f.label :type, "Full Time"
= f.radio_button :type, 'part_time'
= f.label :type, "Part Time"
= f.radio_button :type, 'contract'
= f.label :type, "Contract"
= f.radio_button :type, 'freelance'
= f.label :type, "Freelance"
%p
= f.label :category
= f.text_field :category
%p
= f.label :description
= f.text_area :description
%p
= f.label :perks
= f.text_area :perks
%p
= f.label :how_to_apply
= f.text_area :how_to_apply
%h2 Company Details
- fields_for @job.employer do |e|
%p
= e.label :name, "Company Name"
= e.text_field :name
%p= f.submit "Continue"
%p= f.submit "Back", :name => "back_button" unless @job.first_step?
%p= link_to "Back to List", jobs_path
= debug session[:listing_params]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment