allpro/app/views/workouts/_form.html.erb

27 lines
556 B
Text
Raw Permalink Normal View History

2013-08-05 01:07:11 -04:00
<%= form_for @workout do |f| %>
<% if @workout.errors.any? %>
<ul>
<% @workout.errors.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
<% end %>
2013-08-10 22:15:26 -04:00
<div>
<%= f.label :date %>
<%= f.text_field :date %>
</div>
<div>
<%= f.label :day_type %>
2013-08-11 13:40:44 -04:00
<%= f.select :day_type, [["Heavy", :heavy], ["Medium", :medium],
["Light", :light]] %>
2013-08-10 22:15:26 -04:00
</div>
<div>
<%= f.label :comment %>
<%= f.text_area :comment, rows: 7, cols: 60 %>
</div>
<div>
<%= f.submit nil %>
</div>
2013-08-05 01:07:11 -04:00
<% end %>