-
-
Save leemcalilly/ce0b4049b23e3d431f55 to your computer and use it in GitHub Desktop.
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(@checkout) do |f| %> | |
<% if @checkout.errors.any? %> | |
<div id="error_explanation"> | |
<h2><%= pluralize(@checkout.errors.count, "error") %> prohibited this checkout from being saved:</h2> | |
<ul> | |
<% @checkout.errors.full_messages.each do |msg| %> | |
<li><%= msg %></li> | |
<% end %> | |
</ul> | |
</div> | |
<% end %> | |
<div class="field"> | |
<%= f.label :job %><br> | |
<%= f.select :job, [["Bartender", "Bartender"], ["Barback", "Barback"], ["Foodrunner", "Foodrunner"], ["Kitchen", "Kitchen"], ["Server", "Server"], ["Server Assistant", "Server Assistant"]] %> | |
</div> | |
<div class="field"> | |
<%= f.collection_select(:employee_ids, Employee.all.collect, :id, :full_name, {:prompt => "Please select"} ) %> | |
</div> | |
<div class="field"> | |
<%= f.label :shift %><br> | |
<%= f.select :shift, [["Brunch", "Brunch"], ["Lunch", "Lunch"], ["Dinner", "Dinner"]] %> | |
</div> | |
<div class="field"> | |
<%= f.label :date %><br> | |
<%= f.date_select :date %> | |
</div> | |
<div class="field"> | |
<%= f.label :hours %><br> | |
<%= f.text_field :hours %> | |
</div> | |
<div class="field"> | |
<%= f.label :sales %><br> | |
<%= f.text_field :sales, :value => "0.00" %> | |
</div> | |
<div class="field"> | |
<%= f.label :tips %><br> | |
<%= f.text_field :tips, :value => "0.00" %> | |
</div> | |
<div class="field"> | |
<%= f.label :owed %><br> | |
<%= f.text_field :owed, :value => "0.00" %> | |
</div> | |
<div class="field"> | |
<%= f.label :collected %><br> | |
<%= f.text_field :collected, :value => "0.00" %> | |
</div> | |
<div class="field"> | |
<%= f.label :notes %><br> | |
<%= f.text_area :notes %> | |
</div> | |
<div class="actions"> | |
<%= f.submit %> | |
</div> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment