add highlights and fix cfp in splashpage

This commit is contained in:
Stella Rouzi 2014-12-08 18:08:21 +02:00 committed by Stella
parent 8e25338436
commit ecfc348ea8
17 changed files with 111 additions and 32 deletions

View file

@ -7,7 +7,6 @@
= semantic_form_for(@call_for_paper, :url => admin_conference_call_for_paper_path(@conference.short_title),:html => {:multipart => true}) do |f|
= 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 :include_cfp_in_splash, label: "Show Call for Papers on the splash page"
= f.input :schedule_public, label: "Show Schedule on the home and splash page"
= f.input :schedule_changes, label: "Allow submitters to change their event after it is scheduled"
= f.input :rating, :hint => "Enter the number of different rating levels you want to have for voting on proposals. Enter 0 if you do not want to vote on proposals."

View file

@ -29,13 +29,6 @@
Tracks:
%dd
= tracks(@conference)
%dt
Public
%dd#cfp_in_splash
- if @call_for_paper.include_cfp_in_splash
True
- else
False
%dt
Public Schedule
%dd#schedule_public

View file

@ -22,7 +22,7 @@
= event_type.length
Minutes
%td
= "#{event_type.minimum_abstract_length}:#{event_type.maximum_abstract_length}"
= "#{event_type.minimum_abstract_length} - #{event_type.maximum_abstract_length}"
Words
%td
%span.label{style: "background-color: #{event_type.color};"}

View file

@ -25,6 +25,19 @@
- @event_types.each do |type|
%li= link_to type.title, admin_conference_event_path(@conference.short_title, @event, :event_type_id => type.id) ,
:method => :put, :event_type_id => type.id
%tr
%td
%b Highlight
%td
= link_to "#{@event.is_highlight}".capitalize,
admin_conference_event_path(@conference.short_title,
@event,
is_highlight: !@event.is_highlight),
method: :put, is_highlight: !@event.is_highlight
- if @event.is_highlight
(the event is as a highlight and will appear in the splashpage)
- else
(mark as true to make the event a highlight that appears in the splashpage)
%tr
%td
%b State

View file

@ -8,6 +8,7 @@
= f.inputs name: 'Components' do
= f.input :include_tracks, label: 'Display tracks on the splashpage?'
= f.input :include_program, label: 'Display program on the splashpage?'
= f.input :include_cfp, label: 'Display call for papers information on splashpage, while cfp is open?'
= f.input :include_venue, label: 'Display venue on the splashpage?'
= f.input :include_registrations, label: 'Display the registration period on the splashpage?'
= f.input :include_tickets, label: 'Display tickets on the splashpage?'

View file

@ -3,7 +3,7 @@
.page-header
%h1 Splashpage
%p.text-muted
Build a
Build a
= link_to "splash page", conference_path(@conference.short_title)
with all the information for your conference
- if @splashpage
@ -45,6 +45,13 @@
Yes
- else
No
%dt
Include CFP:
%dd
- if @splashpage.include_cfp
Yes
- else
No
%dt
Include Social Media:
%dd