parent
7793497862
commit
fedb0753bf
42 changed files with 578 additions and 236 deletions
|
|
@ -1,27 +1,15 @@
|
|||
.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"
|
||||
= f.input :color, :hint => "The color will be used eg for the dashboard.", :input_html => {:size => 6, :type => "color"}
|
||||
- if !@conference.logo.blank?
|
||||
= image_tag @conference.logo(:thumb)
|
||||
= f.input :logo, :label => "Conference Logo", :hint => "This will be displayed on the front page."
|
||||
= f.inputs name: 'Banner for Splash' do
|
||||
= f.input :include_banner_in_splash, hint: 'This enable the Banner Photo with description to be displayed on the splash'
|
||||
= f.input :banner_photo, hint: 'This will be the top most component of the splash.This background cover will contain start_date and end_date of the conference and the description'
|
||||
= f.input :description, hint: markdown_hint("This description will be shown at the bottom of the banner photo of the Splash."), input_html: { rows: 5, data: { provide: "markdown-editable" } }
|
||||
|
||||
= f.inputs :name => "Scheduling" do
|
||||
= 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 :ticket_description, hint: markdown_hint("This will appear in the Tickets segment of the splash."), input_html: { rows: 5, data: { provide: "markdown-editable" } }
|
||||
= f.input :sponsor_description, hint: markdown_hint("This will appear in the sponsor segment of the splash."), input_html: { rows: 5, data: { provide: "markdown-editable" } }
|
||||
= 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: markdown_hint("This will appear in the lodging segment of the splash."), input_html: { rows: 5, data: { provide: "markdown-editable" } }
|
||||
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
||||
|
|
|
|||
|
|
@ -9,13 +9,6 @@
|
|||
Short Title
|
||||
%dd
|
||||
= @conference.short_title
|
||||
%dt
|
||||
Description
|
||||
%dd
|
||||
- unless @conference.description.blank?
|
||||
= markdown(@conference.description)
|
||||
- else
|
||||
Not set!
|
||||
%dt
|
||||
Date
|
||||
%dd
|
||||
|
|
@ -42,20 +35,3 @@
|
|||
-else
|
||||
%h4.text-center
|
||||
Not set!
|
||||
.col-md-4
|
||||
.thumbnail.flex-col
|
||||
%h3.text-center
|
||||
Conference Banner
|
||||
- if @conference.banner_photo?
|
||||
= image_tag(@conference.banner_photo(:large), class: 'img-responsive')
|
||||
.caption.flex-grow
|
||||
.caption
|
||||
%p
|
||||
%dl.dl-horizontal
|
||||
%dt
|
||||
Filename
|
||||
%dd
|
||||
= @conference.banner_photo_file_name
|
||||
- else
|
||||
%h4.text-center
|
||||
Not set!
|
||||
|
|
|
|||
|
|
@ -48,9 +48,9 @@
|
|||
= link_to 'Add difficulty levels', admin_conference_difficulty_levels_path(conference_progress['short_title'])
|
||||
- else
|
||||
Add difficulty levels
|
||||
%li{class: class_for_todo(conference_progress['make_conference_public'])}
|
||||
%span{'class'=>icon_for_todo(conference_progress['make_conference_public'])}
|
||||
%li{class: class_for_todo(conference_progress['splashpage'])}
|
||||
%span{'class'=>icon_for_todo(conference_progress['splashpage'])}
|
||||
- if can? :update, @conference
|
||||
= link_to 'Make Splash Page Public for Visitors', edit_admin_conference_path(conference_progress['short_title'])
|
||||
= link_to 'Set up a Splashpage', admin_conference_splashpage_path(conference_progress['short_title'])
|
||||
- else
|
||||
Make Splash Page Public for Visitors
|
||||
Set up a Splashpage
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
%li
|
||||
%a{'href'=> '#edit', 'role'=>'tab', 'data-toggle'=>'tab'}
|
||||
Edit
|
||||
%br
|
||||
.row
|
||||
.col-md-12
|
||||
.tab-content
|
||||
|
|
|
|||
|
|
@ -9,5 +9,4 @@
|
|||
= f.input :googleplus, label: 'Google+ Url', hint: 'This will appear in the social media section as the link to the Google+ Page of your Conference'
|
||||
= f.input :twitter, hint: 'This will appear in the social media section as the link to the Twitter Page of your Conference'
|
||||
= f.input :instagram, hint: 'This will appear in the social media section as the link to the Instagram Page of your Conference'
|
||||
= f.input :public, hint: 'On setting this true you will enable the social media links to be displayed on the splash page'
|
||||
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary' }
|
||||
|
|
|
|||
|
|
@ -1,26 +0,0 @@
|
|||
%p#notice= notice
|
||||
|
||||
%p
|
||||
%b Social tag:
|
||||
= @contact.social_tag
|
||||
%p
|
||||
%b Email:
|
||||
= @contact.email
|
||||
%p
|
||||
%b Facebook:
|
||||
= @contact.facebook
|
||||
%p
|
||||
%b Googleplus:
|
||||
= @contact.googleplus
|
||||
%p
|
||||
%b Twitter:
|
||||
= @contact.twitter
|
||||
%p
|
||||
%b Instagram:
|
||||
= @contact.instagram
|
||||
%p
|
||||
%b Public:
|
||||
= @contact.public
|
||||
|
||||
= link_to 'Edit', edit_admin_conference_contact_path
|
||||
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
-if @conference.call_for_papers.schedule_public
|
||||
%td {schedule_link}
|
||||
%td The link to complete schedule of the conference
|
||||
- if @conference.make_conference_public
|
||||
- if @conference.splashpage && @conference.splashpage.public
|
||||
%tr
|
||||
%td {conference_splash_link}
|
||||
%td The link to conference splash page
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
.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"}
|
||||
|
|
|
|||
|
|
@ -4,5 +4,4 @@
|
|||
= semantic_form_for(@registration_period, url: admin_conference_registration_period_path(@conference.short_title)) do |f|
|
||||
= f.input :start_date, as: :string, input_html: { id: 'registration-period-start-datepicker', readonly: 'readonly' }
|
||||
= f.input :end_date, as: :string, input_html: { id: 'registration-period-end-datepicker', readonly: 'readonly' }
|
||||
= f.input :description, hint: markdown_hint('This will appear in the Tickets segment of the splash.'), input_html: { rows: 5, data: { provide: 'markdown-editable' } }
|
||||
= f.submit 'Save Registration Period', class: 'btn btn-primary'
|
||||
|
|
|
|||
|
|
@ -11,11 +11,6 @@
|
|||
End Date
|
||||
%dd
|
||||
= @registration_period.end_date
|
||||
%dt
|
||||
Description
|
||||
%dd
|
||||
- if !@conference.registration_period.description.blank?
|
||||
= markdown(@conference.registration_period.description)
|
||||
|
||||
- if can? :update, @registration_period
|
||||
= link_to 'Edit', edit_admin_conference_registration_period_path, class: 'btn btn-primary'
|
||||
|
|
|
|||
27
app/views/admin/splashpages/_form.html.haml
Normal file
27
app/views/admin/splashpages/_form.html.haml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
%h1 Splashpage
|
||||
.row
|
||||
.col-md-8
|
||||
= semantic_form_for(@splashpage, url: admin_conference_splashpage_path(@conference.short_title)) do |f|
|
||||
= f.inputs name: 'Banner' do
|
||||
= f.input :banner_photo, hint: 'This will be the top most component of the splash. This background cover will contain start_date and end_date of the conference and the description.'
|
||||
= f.input :banner_description, hint: markdown_hint('This description will be shown at the bottom of the banner photo of the Splashpage.'), input_html: { rows: 5, data: { provide: 'markdown-editable' } }
|
||||
= f.input :include_banner, label: 'Display banner on the splashpage?'
|
||||
= f.inputs name: 'Components' do
|
||||
= f.input :ticket_description, hint: markdown_hint('This will appear in the Tickets segment of the splash.'), input_html: { rows: 5, data: { provide: 'markdown-editable' } }
|
||||
= f.input :include_tickets, label: 'Display tickets on the splashpage?'
|
||||
%br
|
||||
= f.input :sponsor_description, hint: markdown_hint('This will appear in the Sponsors segment of the splash.'), input_html: { rows: 5, data: { provide: 'markdown-editable' } }
|
||||
= f.input :include_sponsors, label: 'Display sponsors on the splashpage?'
|
||||
%br
|
||||
= f.input :registration_description, hint: markdown_hint(''), input_html: { rows: 5, data: { provide: 'markdown-editable' } }
|
||||
= f.input :include_registrations, label: 'Display the registration period on the splashpage?'
|
||||
%br
|
||||
= f.input :lodging_description, hint: markdown_hint('This will appear in the Lodgings segment of the splash.'), input_html: { rows: 5, data: { provide: 'markdown-editable' } }
|
||||
= f.input :include_lodgings, label: 'Display the lodgings on the splashpage?'
|
||||
%br
|
||||
= f.input :include_tracks, label: 'Display tracks on the splashpage?'
|
||||
= f.input :include_program, label: 'Display program on the splashpage?'
|
||||
= f.input :include_social_media, label: 'Display social media on the splashpage?'
|
||||
= f.input :include_venue, label: 'Display venue on the splashpage?'
|
||||
= f.input :public, label: 'Make splash page public! (Attention: Please do this only after you have finished the configuration of the conference!)'
|
||||
= f.submit 'Save Splashpage', class: 'btn btn-primary'
|
||||
113
app/views/admin/splashpages/show.html.haml
Normal file
113
app/views/admin/splashpages/show.html.haml
Normal file
|
|
@ -0,0 +1,113 @@
|
|||
%h1 Splashpage
|
||||
%br
|
||||
- if @splashpage
|
||||
.row
|
||||
.col-md-8
|
||||
%dl.dl-horizontal
|
||||
%dt
|
||||
Ticket:
|
||||
%dd
|
||||
- unless @splashpage.ticket_description.blank?
|
||||
= markdown(@splashpage.ticket_description)
|
||||
%dt
|
||||
Include Tickets:
|
||||
%dd
|
||||
- if @splashpage.include_tickets
|
||||
Yes
|
||||
- else
|
||||
No
|
||||
%dt
|
||||
Sponsor:
|
||||
%dd
|
||||
- unless @splashpage.sponsor_description.blank?
|
||||
= markdown(@splashpage.sponsor_description)
|
||||
%dt
|
||||
Include Sponsors:
|
||||
%dd
|
||||
- if @splashpage.include_sponsors
|
||||
Yes
|
||||
- else
|
||||
No
|
||||
%dt
|
||||
Registration:
|
||||
%dd
|
||||
- unless @splashpage.registration_description.blank?
|
||||
= markdown(@splashpage.registration_description)
|
||||
%dt
|
||||
Include Registrations:
|
||||
%dd
|
||||
- if @splashpage.include_registrations
|
||||
Yes
|
||||
- else
|
||||
No
|
||||
%dt
|
||||
Lodging:
|
||||
%dd
|
||||
- unless @splashpage.lodging_description.blank?
|
||||
= markdown(@splashpage.lodging_description)
|
||||
%dt
|
||||
Include Tracks:
|
||||
%dd
|
||||
- if @splashpage.include_tracks
|
||||
Yes
|
||||
- else
|
||||
No
|
||||
%dt
|
||||
Include Program:
|
||||
%dd
|
||||
- if @splashpage.include_program
|
||||
Yes
|
||||
- else
|
||||
No
|
||||
%dt
|
||||
Include Social Media:
|
||||
%dd
|
||||
- if @splashpage.include_social_media
|
||||
Yes
|
||||
- else
|
||||
No
|
||||
%dt
|
||||
Public
|
||||
%dd
|
||||
- if @splashpage.public
|
||||
Yes
|
||||
- else
|
||||
No
|
||||
|
||||
.row.row-flex.row-flex-wrap
|
||||
.col-md-4
|
||||
.thumbnail.flex-col
|
||||
%h3.text-center
|
||||
Conference Banner
|
||||
- if @splashpage.banner_photo?
|
||||
= image_tag(@splashpage.banner_photo(:large), class: 'img-responsive')
|
||||
.caption.flex-grow
|
||||
.caption
|
||||
%p
|
||||
%dl.dl-horizontal
|
||||
%dt
|
||||
Filename
|
||||
%dd
|
||||
= @splashpage.banner_photo_file_name
|
||||
%dt Description
|
||||
%dd
|
||||
- unless @splashpage.banner_description.blank?
|
||||
= markdown(@splashpage.banner_description)
|
||||
%dt Included
|
||||
%dd
|
||||
- if @splashpage.include_banner
|
||||
Yes
|
||||
- else
|
||||
No
|
||||
- else
|
||||
%h4.text-center
|
||||
Not set!
|
||||
%br
|
||||
- if can? :update, @splashpage
|
||||
= link_to 'Edit', edit_admin_conference_splashpage_path, class: 'btn btn-primary'
|
||||
- if can? :destroy, @splashpage
|
||||
= link_to 'Delete', admin_conference_splashpage_path,
|
||||
method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger'
|
||||
- else
|
||||
- if can? :create, @conference
|
||||
= link_to 'Create Splashpage', new_admin_conference_splashpage_path, class: 'btn btn-primary'
|
||||
|
|
@ -1,6 +1,5 @@
|
|||
.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"}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
.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"}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
.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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue