Created
July 26, 2011 23:26
-
-
Save brandoncordell/1108350 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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