Skip to content

Commit

Permalink
move form to create making and list of makings inside #recipe-show div
Browse files Browse the repository at this point in the history
  • Loading branch information
sgibson47 committed Nov 13, 2018
1 parent 7e76e29 commit 352b12d
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions app/views/recipes/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
<div id="recipe-show" data-id="<%=@recipe.id%>">

</div><!--recipe-show-->

<div class="block instructions">
<h3>Times Users Made <%=@recipe.name%></h3>
<div id="recipe-makings" >
<ul>

</ul>
<div class="block instructions">
<h3>Times Users Made <%=@recipe.name%></h3>
<div id="recipe-makings" >
<ul>

</ul>
</div>
</div>
</div>

<div class="block instructions">
<h3>Did you make <%=@recipe.name%>? How did it go?</h3>
<div id="recipe-making-form">
<%=form_for([@user, @making], :html => { :id => "new_making_of_recipe" })do |f|%>
<%= f.hidden_field :recipe_id, :value => @recipe.id %>
<%= f.label :rating%>
<%= f.number_field :rating, class: "form_fields"%>
<%= f.label :notes%>
<%= f.text_field :notes, class: "form_fields"%>
<br>
<br>
<br>
<br>
<%=f.submit :class => "submit_class"%>
<%end%>
<div class="block instructions">
<h3>Did you make <%=@recipe.name%>? How did it go?</h3>
<div id="recipe-making-form">
<%=form_for([@user, @making], :html => { :id => "new_making_of_recipe" })do |f|%>
<%= f.hidden_field :recipe_id, :value => @recipe.id %>
<%= f.label :rating%>
<%= f.number_field :rating, class: "form_fields"%>
<%= f.label :notes%>
<%= f.text_field :notes, class: "form_fields"%>
<br>
<br>
<br>
<br>
<%=f.submit :class => "submit_class"%>
<%end%>
</div>
</div>
</div>

</div><!--recipe-show-->

0 comments on commit 352b12d

Please sign in to comment.