Skip to content

Commit

Permalink
implements food options disabling for organizers
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonEb committed Feb 6, 2017
1 parent 61db611 commit 369d1f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions app/views/rsvps/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,12 @@
<% end %>
</div>

<div class="field">
<p class="question">The food's on us. Let us know if you have any dietary restrictions.</p>
<%= render partial: 'rsvps/dietary_restrictions', locals: {f: f} %>
</div>
<% if @event.food_provided? %>
<div class="field">
<p class="question">The food's on us. Let us know if you have any dietary restrictions.</p>
<%= render partial: 'rsvps/dietary_restrictions', locals: {f: f} %>
</div>
<% end %>
<% if @event.has_childcare? %>
<div class="field question">
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/events_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def make_request(params = {})
"title" => "Party Zone",
"target_audience" => "yaya",
"time_zone" => "Alaska",
"food_provided" => "test",
"food_provided" => false,
"student_rsvp_limit" => 100,
"event_sessions_attributes" => {
"0" => {
Expand Down

0 comments on commit 369d1f2

Please sign in to comment.