Add more fields to workout

This commit is contained in:
Andrew Tomaka 2013-08-10 22:15:26 -04:00
parent 6b377a577e
commit 1fc9dda21f
9 changed files with 57 additions and 5 deletions

View file

@ -6,7 +6,21 @@
<% end %>
</ul>
<% end %>
<%= f.label :date %>
<%= f.text_field :date %>
<%= f.submit nil %>
<div>
<%= f.label :date %>
<%= f.text_field :date %>
</div>
<div>
<%= f.label :day_type %>
<%= f.select :day_type, [["Heavy", 'heavy'], ["Medium", 'medium'],
["Light", 'light']] %>
</div>
<div>
<%= f.label :comment %>
<%= f.text_area :comment, rows: 7, cols: 60 %>
</div>
<div>
<%= f.submit nil %>
</div>
<% end %>

View file

@ -1 +1,3 @@
<%= @workout.date %>
<%= @workout.date %><br/>
<%= @workout.day_type %><br/>
<%= @workout.comment %><br/>