diff --git a/app/models/conference.rb b/app/models/conference.rb index 558fa349..133c9a3d 100644 --- a/app/models/conference.rb +++ b/app/models/conference.rb @@ -19,7 +19,8 @@ class Conference < ActiveRecord::Base :lodging_description, :include_registrations_in_splash, :include_sponsors_in_splash, :include_tracks_in_splash, :include_tickets_in_splash, :include_social_media_in_splash, - :include_program_in_splash + :include_program_in_splash, :make_conference_public + has_paper_trail diff --git a/app/views/admin/conference/edit.html.haml b/app/views/admin/conference/edit.html.haml index d3b6f166..330ccbe6 100644 --- a/app/views/admin/conference/edit.html.haml +++ b/app/views/admin/conference/edit.html.haml @@ -1,6 +1,8 @@ .row .col-md-8 = semantic_form_for(@conference, :url => admin_conference_path(@conference.short_title),:html => {:multipart => true}) do |f| + + = f.input :make_conference_public, hint: 'This will enable the visitors to view the splash page(the "View Conference" button will be visible now on the home page), it is recommended to enable this after you have finished setting up all the components for display' = f.input :include_program_in_splash, hint: 'On setting this true you will enable the program component to be displayed on the splash page.This component includes tracks, keynote speakers and the schedule' = f.input :title, :hint => "The full name of the conference, such as 'OpenSUSE Conference 2013'" = f.input :short_title, :hint => "A short title, such as 'osc2013', to be used in URLs" diff --git a/db/migrate/20140616131731_add_make_conference_public_to_conference.rb b/db/migrate/20140616131731_add_make_conference_public_to_conference.rb new file mode 100644 index 00000000..9cf9195b --- /dev/null +++ b/db/migrate/20140616131731_add_make_conference_public_to_conference.rb @@ -0,0 +1,5 @@ +class AddMakeConferencePublicToConference < ActiveRecord::Migration + def change + add_column :conferences, :make_conference_public, :boolean, default: false + end +end diff --git a/db/schema.rb b/db/schema.rb index 557c2177..f2588e85 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -94,6 +94,7 @@ ActiveRecord::Schema.define(version: 20140618062623) do t.boolean "include_tickets_in_splash", default: false t.boolean "include_social_media_in_splash", default: false t.boolean "include_program_in_splash", default: false + t.boolean "make_conference_public", default: false end create_table "conferences_questions", id: false, force: true do |t|