Adds make_conference_public field to conference model

This commit is contained in:
Gopesh Tulsyan 2014-06-16 19:04:30 +05:30
parent 0f697f3dbe
commit e1b7067fd9
4 changed files with 10 additions and 1 deletions

View file

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

View file

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

View file

@ -0,0 +1,5 @@
class AddMakeConferencePublicToConference < ActiveRecord::Migration
def change
add_column :conferences, :make_conference_public, :boolean, default: false
end
end

View file

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