-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move form to create making and list of makings inside #recipe-show div
- Loading branch information
Showing
1 changed file
with
25 additions
and
25 deletions.
There are no files selected for viewing
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
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--> |