#2176: Require rating in html

This commit is contained in:
Toks
2014-06-02 17:51:04 -04:00
parent e2f72b445d
commit c4fc3b0b2f

View File

@@ -45,13 +45,13 @@
<%= f.label :rating %> <%= f.label :rating %>
<fieldset class="ratings"> <fieldset class="ratings">
<%= f.radio_button :rating, :e %> <%= f.radio_button :rating, :e, :required => true %>
<%= f.label :rating_e, "Explicit", :title => "Hardcore porn, visible genitals" %> <%= f.label :rating_e, "Explicit", :title => "Hardcore porn, visible genitals" %>
<%= f.radio_button :rating, :q %> <%= f.radio_button :rating, :q, :required => true %>
<%= f.label :rating_q, "Questionable", :title => "Nudity, anything erotic" %> <%= f.label :rating_q, "Questionable", :title => "Nudity, anything erotic" %>
<%= f.radio_button :rating, :s %> <%= f.radio_button :rating, :s, :required => true %>
<%= f.label :rating_s, "Safe", :title => "Everything else" %> <%= f.label :rating_s, "Safe", :title => "Everything else" %>
</fieldset> </fieldset>
</div> </div>