Created
May 29, 2013 15:57
-
-
Save etdebruin/5671416 to your computer and use it in GitHub Desktop.
employment
This file contains 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
<%= form_for(@employment, :html => {:id => "user-form", :class => "user-form"}) do |f| %> | |
<% if @employment.errors.any? %> | |
<div id="error_explanation"> | |
<h2><%= pluralize(@employment.errors.count, "error") %> prohibited this employment from being saved:</h2> | |
<ul> | |
<% @employment.errors.full_messages.each do |msg| %> | |
<li><%= msg %></li> | |
<% end %> | |
</ul> | |
</div> | |
<% end %> | |
<p> | |
<%= f.select :position, options_for_select(Employment::POSITION), :prompt => "Job Title" %> | |
</p> | |
<p><%= f.date_select :start %></p> | |
<p><%= f.date_select :stop %></p> | |
<p><%= f.check_box :present %> Present</p> | |
<p><%= f.text_area :description, :placeholder => "Describe your roles and responsibilities" %> | |
<div class="actions"> | |
<%= f.hidden_field :company_id, :value => params[:company_id] %> | |
<%= f.submit %> | |
</div> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check box snippet produces: