Skip to content

Commit

Permalink
Update app/views/submissions/_judging_status.html.erb
Browse files Browse the repository at this point in the history
Co-authored-by: Stephen Chudleigh <[email protected]>
  • Loading branch information
stonefilipczak and stepchud authored Dec 16, 2024
1 parent 81a8020 commit f4231db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/submissions/_judging_status.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
type="checkbox"
name="submission[judging_status]"
value="winner"
<%= unless @submission.judging_status.in?(["selected", "winner"]) then "disabled" end %>
<%= if @submission.judging_status == "winner" then "checked" end %>
<%= "disabled" unless @submission.judging_status.in?(["selected", "winner"]) %>
<%= "checked" if @submission.judging_status == "winner" %>
data-action="change->submission-details#winnerSubmit"
/>
<label class="usa-checkbox__label" for="judging-status-winner"
Expand Down

0 comments on commit f4231db

Please sign in to comment.