Skip to content

Commit

Permalink
More bits tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ddemaree committed Nov 8, 2011
1 parent b1b92d8 commit 8c2133f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion db/bits.yml
Expand Up @@ -13,8 +13,13 @@
avec: "Avec"
big_star: "Big Star"
the_publican: "The Publican"
potluck: "Potluck at David's House"
potluck: "Potluck at David's house"
cumin: "Cumin"
any_chinese: "Chinese food"
any_bbq: "BBQ"
any_vegetarian: "Vegetarian"
any_burgers: "Burgers"
any_mexican: "Mexican food"
drinks:
aviary: "The Aviary"
whistler: "The Whistler"
Expand Down
2 changes: 1 addition & 1 deletion views/index.erb
Expand Up @@ -143,7 +143,7 @@ end
</h3>
</div>
<ul class="unstyled places">
<% @bits[namespace].shuffle.each do |key, name| %>
<% @bits[namespace].to_a.shuffle.each do |key, name| %>
<li>
<label data-bind="css: { 'checked': (bits().indexOf('<%= namespace %>.<%= key %>') > -1) }">
<input name="party[bits][]" type="checkbox" value="<%= namespace %>.<%= key %>" data-bind="checked: bits" <%= 'checked' if @party.bits.include?("#{namespace}.#{key}") %>>
Expand Down

0 comments on commit 8c2133f

Please sign in to comment.