mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
allow stars from 1 to 10, 1 star being the default
This commit is contained in:
parent
e3828c0a74
commit
aaa77bb893
2 changed files with 2 additions and 2 deletions
|
|
@ -3,6 +3,6 @@ class CallForPapers < ActiveRecord::Base
|
||||||
belongs_to :conference
|
belongs_to :conference
|
||||||
|
|
||||||
validates_presence_of :start_date, :end_date, :hard_deadline
|
validates_presence_of :start_date, :end_date, :hard_deadline
|
||||||
validates :rating, :numericality => { :greater_than_or_equal_to => 2, :less_than_or_equal_to => 10 }
|
validates :rating, :numericality => { :greater_than_or_equal_to => 1, :less_than_or_equal_to => 10 }
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,6 @@
|
||||||
= f.input :hard_deadline, :as => :string, :input_html => { :id => "cfp-hard-datepicker", :readonly => "readonly" }
|
= f.input :hard_deadline, :as => :string, :input_html => { :id => "cfp-hard-datepicker", :readonly => "readonly" }
|
||||||
= f.input :description, :hint => "Welcome text for the Call for Papers"
|
= f.input :description, :hint => "Welcome text for the Call for Papers"
|
||||||
= f.input :schedule_changes
|
= f.input :schedule_changes
|
||||||
= f.input :rating, :hint => "Enter the number of different rating levels you want to have for voting on proposals."
|
= f.input :rating, :input_html => {:value => 1}, :hint => "Enter the number of different rating levels you want to have for voting on proposals."
|
||||||
= f.input :rating_desc, :label => "Rating Description", :hint => "Enter comments about voting process.", :input_html => {:value => "1 is for 'I don't like this proposal',\n2 is for 'I am ok with this proposal.',\n3 is for 'I love this proposal!'", :rows => 5, :class => "span6"}
|
= f.input :rating_desc, :label => "Rating Description", :hint => "Enter comments about voting process.", :input_html => {:value => "1 is for 'I don't like this proposal',\n2 is for 'I am ok with this proposal.',\n3 is for 'I love this proposal!'", :rows => 5, :class => "span6"}
|
||||||
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue