From d9d889eb9f4e227447b2cf651ae23b12008f7450 Mon Sep 17 00:00:00 2001 From: differentreality Date: Sun, 28 Jul 2013 11:48:56 +0300 Subject: [PATCH] Option for proposal changes --- app/models/call_for_papers.rb | 2 +- app/views/admin/callforpapers/show.html.haml | 1 + ...20130728055450_add_schedule_changes_to_call_for_papers.rb | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20130728055450_add_schedule_changes_to_call_for_papers.rb diff --git a/app/models/call_for_papers.rb b/app/models/call_for_papers.rb index f31a8127..6dcef8d7 100644 --- a/app/models/call_for_papers.rb +++ b/app/models/call_for_papers.rb @@ -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 diff --git a/app/views/admin/callforpapers/show.html.haml b/app/views/admin/callforpapers/show.html.haml index 5b388a82..dac989de 100644 --- a/app/views/admin/callforpapers/show.html.haml +++ b/app/views/admin/callforpapers/show.html.haml @@ -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"} \ No newline at end of file diff --git a/db/migrate/20130728055450_add_schedule_changes_to_call_for_papers.rb b/db/migrate/20130728055450_add_schedule_changes_to_call_for_papers.rb new file mode 100644 index 00000000..277f08fa --- /dev/null +++ b/db/migrate/20130728055450_add_schedule_changes_to_call_for_papers.rb @@ -0,0 +1,5 @@ +class AddScheduleChangesToCallForPapers < ActiveRecord::Migration + def change + add_column :call_for_papers, :schedule_changes, :boolean, :default => 0 + end +end