From ad9c0d1012482a6dfc8d79bf434526be10353ba1 Mon Sep 17 00:00:00 2001 From: Gopesh Tulsyan Date: Tue, 17 Jun 2014 21:20:31 +0530 Subject: [PATCH] Adds splash component checkboxes to admin dashboard --- app/views/admin/callforpapers/show.html.haml | 1 + app/views/admin/conference/edit.html.haml | 8 ++++++-- app/views/admin/lodgings/index.html.haml | 1 + app/views/admin/sponsors/index.html.haml | 1 + app/views/admin/supporter_levels/index.html.haml | 1 + app/views/admin/tracks/index.html.haml | 1 + app/views/admin/venue/venue_info.html.haml | 1 + 7 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app/views/admin/callforpapers/show.html.haml b/app/views/admin/callforpapers/show.html.haml index ea4b61f2..64c42606 100644 --- a/app/views/admin/callforpapers/show.html.haml +++ b/app/views/admin/callforpapers/show.html.haml @@ -1,6 +1,7 @@ .row .col-md-8 = semantic_form_for(@cfp, :url => admin_conference_callforpapers_path(@conference.short_title),:html => {:multipart => true}) do |f| + = f.input :include_cfp_in_splash, label: 'Include Call for Papers in Splash', hint: 'On setting this true you will enable the call for papers to be displayed on the splash page' = f.input :start_date, :as => :string, :input_html => { :id => "conference-start-datepicker", :readonly => "readonly" } = f.input :end_date, :as => :string, :input_html => { :id => "conference-end-datepicker", :readonly => "readonly" } = f.input :description, :hint => "Welcome text for the Call for Papers" diff --git a/app/views/admin/conference/edit.html.haml b/app/views/admin/conference/edit.html.haml index f0efbb86..d3b6f166 100644 --- a/app/views/admin/conference/edit.html.haml +++ b/app/views/admin/conference/edit.html.haml @@ -1,6 +1,7 @@ .row .col-md-8 = semantic_form_for(@conference, :url => admin_conference_path(@conference.short_title),:html => {:multipart => true}) do |f| + = 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" = f.input :social_tag, :hint => "The hashtag you'll use on Twitter and Google+. Don't include the '#' sign!'" @@ -12,17 +13,20 @@ = f.input :timezone, :as => :time_zone, :hint => "The conference time zone" = f.input :start_date, :as => :string, :input_html => { :id => "conference-start-datepicker", :readonly => "readonly" } = f.input :end_date, :as => :string, :input_html => { :id => "conference-end-datepicker", :readonly => "readonly" } + = f.inputs name: 'Registration' do + = f.input :include_registrations_in_splash, hint: 'On setting this true you will enable the registrations to be displayed on the splash page' = f.input :registration_start_date, :as => :string, :input_html => { :id => "conference-reg-start-datepicker", :readonly => "readonly" } = f.input :registration_end_date, :as => :string, :input_html => { :id => "conference-reg-end-datepicker", :readonly => "readonly" } - = f.input :registration_description, hint: 'This description will appear in registration segment of the splash' + = f.input :registration_description, hint: 'This description will appear in registration segment of the splash' = f.input :ticket_description, hint: 'This will appear in the Tickets segment of the splash' = f.input :sponsor_description, hint: 'This will appear in the sponsor segment of the splash' = f.input :sponsor_email, hint: 'This will appear in the sponsor segment of the splash for the sponsors to contact to the organizers' = f.input :lodging_description, hint: 'This will appear in the lodging segment of the splash' - = f.inputs :name => "Media" do + = f.inputs :name => 'Social Media' do - if !@conference.logo.blank? = image_tag @conference.logo(:thumb) + = f.input :include_social_media_in_splash, hint: 'On setting this true you will enable the social media links to be displayed on the splash page' = f.input :logo, :label => "Conference Logo", :hint => "This will be displayed on the front page." = f.input :media_type, :as => :select, :label => "Conference Promo Media Type", :class=>"form-control", :collection => Conference.media_types.values, :include_blank => false, :hint => "This media-item will be used to represent this conference at various places in OSEM." = f.input :media_id, :label => "Conference Promo Media ID", :as => :string diff --git a/app/views/admin/lodgings/index.html.haml b/app/views/admin/lodgings/index.html.haml index 7dc8426a..2141ff2d 100644 --- a/app/views/admin/lodgings/index.html.haml +++ b/app/views/admin/lodgings/index.html.haml @@ -1,5 +1,6 @@ .row .col-md-8 = semantic_form_for(@venue, :url => admin_conference_lodging_path(@conference.short_title, @conference.venue.lodgings), :html => {:multipart => true}) do |f| + = f.input :include_lodgings_in_splash, hint: 'On setting this true you will enable the lodgings to be displayed on the splash page' = dynamic_association :lodgings, "Lodgings", f = f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"} diff --git a/app/views/admin/sponsors/index.html.haml b/app/views/admin/sponsors/index.html.haml index bd36c6a9..84a97c98 100644 --- a/app/views/admin/sponsors/index.html.haml +++ b/app/views/admin/sponsors/index.html.haml @@ -1,5 +1,6 @@ .row .col-md-8 = semantic_form_for(@conference, :url => admin_conference_sponsor_path(@conference.short_title, @conference.sponsors)) do |f| + = f.input :include_sponsors_in_splash, hint: 'On setting this true you will enable the sponsors to be displayed on the splash page' = dynamic_association :sponsors, "Sponsors", f = f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"} diff --git a/app/views/admin/supporter_levels/index.html.haml b/app/views/admin/supporter_levels/index.html.haml index 71a9305a..23ecee60 100644 --- a/app/views/admin/supporter_levels/index.html.haml +++ b/app/views/admin/supporter_levels/index.html.haml @@ -2,5 +2,6 @@ .col-md-8 = semantic_form_for(@conference, :url => admin_conference_supporter_level_path(@conference.short_title, @conference.supporter_levels)) do |f| = f.input :use_supporter_levels, :label => false + = f.input :include_tickets_in_splash, hint: 'On setting this true you will enable the tickets to be displayed on the splash page' = dynamic_association :supporter_levels, "Supporter Levels", f = f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"} diff --git a/app/views/admin/tracks/index.html.haml b/app/views/admin/tracks/index.html.haml index 27bdedde..c570a549 100644 --- a/app/views/admin/tracks/index.html.haml +++ b/app/views/admin/tracks/index.html.haml @@ -1,5 +1,6 @@ .row .col-md-8 = semantic_form_for(@conference, :url => admin_conference_track_path(@conference.short_title, @conference.tracks)) do |f| + = f.input :include_tracks_in_splash, hint: 'On setting this true you will enable the tracks to be displayed on the splash page' = dynamic_association :tracks, "Tracks", f = f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"} diff --git a/app/views/admin/venue/venue_info.html.haml b/app/views/admin/venue/venue_info.html.haml index 84888003..bf437061 100644 --- a/app/views/admin/venue/venue_info.html.haml +++ b/app/views/admin/venue/venue_info.html.haml @@ -1,6 +1,7 @@ .row .col-md-8 = semantic_form_for(@venue, :url => admin_conference_venue_update_path(@conference.short_title),:html => {:multipart => true}) do |f| + = f.input :include_venue_in_splash, hint: 'On setting this true you will enable the venue to be displayed on the splash page' = f.input :name, :input_html => {:rows => 1} = f.input :address, :input_html => {:rows => 1} = f.input :website