Option for proposal changes

This commit is contained in:
differentreality 2013-07-28 11:48:56 +03:00
parent f905bb8f8f
commit d9d889eb9f
3 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -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"}

View file

@ -0,0 +1,5 @@
class AddScheduleChangesToCallForPapers < ActiveRecord::Migration
def change
add_column :call_for_papers, :schedule_changes, :boolean, :default => 0
end
end