mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Option for proposal changes
This commit is contained in:
parent
f905bb8f8f
commit
d9d889eb9f
3 changed files with 7 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
class CallForPapers < ActiveRecord::Base
|
||||
attr_accessible :start_date, :end_date, :hard_deadline, :description
|
||||
attr_accessible :start_date, :end_date, :hard_deadline, :description, :schedule_changes
|
||||
belongs_to :conference
|
||||
|
||||
validates_presence_of :start_date, :end_date, :hard_deadline
|
||||
|
|
|
|||
|
|
@ -8,4 +8,5 @@
|
|||
= f.input :end_date, :as => :string, :input_html => { :id => "conference-end-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 :schedule_changes
|
||||
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class AddScheduleChangesToCallForPapers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :call_for_papers, :schedule_changes, :boolean, :default => 0
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue