<%= form_for([:admin, @routine]) do |f| %>
  <%= render 'shared/form_errors', :object=>@routine %>

  <div class="field">
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </div>
<div id="routine_container">
<%= f.fields_for :routine_exercises do |builder| %>
<%= render 'routine_fields', :f=>builder %>
<% end %>
</div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
<p><%= link_to "Back to List", admin_routines_path %></p>