mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-16 13:14:03 +00:00
FIXUP: Reorder splashpage & align form
* Per PR comments, place program above registration/tickets * Reorder splashpage admin form based on splashpage order
This commit is contained in:
parent
245a312c1b
commit
5fb09f398a
3 changed files with 90 additions and 110 deletions
|
|
@ -2,21 +2,46 @@
|
|||
.col-md-12
|
||||
.page-header
|
||||
%h1 Splashpage
|
||||
.row
|
||||
.col-md-8
|
||||
= semantic_form_for(@splashpage, url: admin_conference_splashpage_path(@conference.short_title)) do |f|
|
||||
|
||||
= semantic_form_for(@splashpage, url: admin_conference_splashpage_path(@conference.short_title)) do |f|
|
||||
.row
|
||||
.col-md-12
|
||||
= f.inputs name: 'Components' do
|
||||
= f.input :include_tracks, label: 'Display tracks', input_html: { checked: params[:action] == 'new' || @splashpage.try(:include_tracks) }
|
||||
= f.input :include_program, label: 'Display program', input_html: { checked: params[:action] == 'new' || @splashpage.try(:include_program) }
|
||||
= f.input :include_cfp, label: 'Display call for papers and call for tracks information on splashpage, while open', input_html: { checked: params[:action] == 'new' || @splashpage.try(:include_cfp) }
|
||||
= f.input :include_venue, label: 'Display venue', input_html: { checked: params[:action] == 'new' || @splashpage.try(:include_venue) }
|
||||
= f.input :include_registrations, label: 'Display the registration period', input_html: { checked: params[:action] == 'new' || @splashpage.try(:include_registrations) }
|
||||
= f.input :include_tickets, label: 'Display tickets', input_html: { checked: params[:action] == 'new' || @splashpage.try(:include_tickets) }
|
||||
= f.input :include_lodgings, label: 'Display the lodgings', input_html: { checked: params[:action] == 'new' || @splashpage.try(:include_lodgings) }
|
||||
= f.input :include_sponsors, label: 'Display sponsors', input_html: { checked: params[:action] == 'new' || @splashpage.try(:include_sponsors) }
|
||||
= f.input :include_booths, label: 'Display confirmed booths', input_html: { checked: params[:action] == 'new' || @splashpage.try(:include_booths) }
|
||||
= f.input :include_social_media, label: 'Display social media', input_html: { checked: params[:action] == 'new' || @splashpage.try(:include_social_media) }
|
||||
%ul.fa-ul
|
||||
%li
|
||||
= f.input :include_cfp, label: 'Display call for papers and call for tracks, while open', input_html: { checked: params[:action] == 'new' || @splashpage.try(:include_cfp) }
|
||||
%li
|
||||
= f.input :include_program, label: 'Display the program', input_html: { checked: params[:action] == 'new' || @splashpage.try(:include_program) }
|
||||
|
||||
%ul.fa-ul
|
||||
%li
|
||||
= f.input :include_tracks, label: 'Include confirmed tracks', input_html: { checked: params[:action] == 'new' || @splashpage.try(:include_tracks) }
|
||||
%li
|
||||
= f.input :include_booths, label: 'Include confirmed booths', input_html: { checked: params[:action] == 'new' || @splashpage.try(:include_booths) }
|
||||
|
||||
%li
|
||||
= f.input :include_registrations, label: 'Display the registration period', input_html: { checked: params[:action] == 'new' || @splashpage.try(:include_registrations) }
|
||||
|
||||
%li
|
||||
= f.input :include_tickets, label: 'Display tickets', input_html: { checked: params[:action] == 'new' || @splashpage.try(:include_tickets) }
|
||||
|
||||
%li
|
||||
= f.input :include_venue, label: 'Display the venue', input_html: { checked: params[:action] == 'new' || @splashpage.try(:include_venue) }
|
||||
|
||||
%li
|
||||
= f.input :include_lodgings, label: 'Display the lodgings', input_html: { checked: params[:action] == 'new' || @splashpage.try(:include_lodgings) }
|
||||
|
||||
%li
|
||||
= f.input :include_sponsors, label: 'Display sponsors', input_html: { checked: params[:action] == 'new' || @splashpage.try(:include_sponsors) }
|
||||
|
||||
%li
|
||||
= f.input :include_social_media, label: 'Display social media links', input_html: { checked: params[:action] == 'new' || @splashpage.try(:include_social_media) }
|
||||
|
||||
= f.inputs name: 'Access' do
|
||||
= f.input :public, label: 'Make splash page public?'
|
||||
%ul.fa-ul
|
||||
%li
|
||||
= f.input :public, label: 'Make splash page public?'
|
||||
.row
|
||||
.col-md-12
|
||||
%p.text-right
|
||||
= f.submit 'Save Splashpage', class: 'btn btn-primary'
|
||||
= f.submit 'Save Changes', class: 'btn btn-primary'
|
||||
|
|
|
|||
|
|
@ -8,92 +8,47 @@
|
|||
with all the information for your conference
|
||||
- if @splashpage
|
||||
.row
|
||||
.col-md-8
|
||||
%dl.dl-horizontal
|
||||
%dt
|
||||
Include Tracks:
|
||||
%dd
|
||||
- if @splashpage.include_tracks
|
||||
Yes
|
||||
- else
|
||||
No
|
||||
%dt
|
||||
Include Program:
|
||||
%dd
|
||||
- if @splashpage.include_program
|
||||
Yes
|
||||
- else
|
||||
No
|
||||
%dt
|
||||
Include Calls for Content:
|
||||
%dd
|
||||
- if @splashpage.include_cfp
|
||||
Yes
|
||||
- else
|
||||
No
|
||||
%dt
|
||||
Include Venue:
|
||||
%dd
|
||||
-if @splashpage.include_venue
|
||||
Yes
|
||||
-else
|
||||
No
|
||||
%dt
|
||||
Include Registrations:
|
||||
%dd
|
||||
- if @splashpage.include_registrations
|
||||
Yes
|
||||
- else
|
||||
No
|
||||
%dt
|
||||
Include Tickets:
|
||||
%dd
|
||||
- if @splashpage.include_tickets
|
||||
Yes
|
||||
- else
|
||||
No
|
||||
%dt
|
||||
Include Lodgins
|
||||
%dd
|
||||
-if @splashpage.include_lodgings
|
||||
Yes
|
||||
-else
|
||||
No
|
||||
%dt
|
||||
Include Sponsors:
|
||||
%dd
|
||||
- if @splashpage.include_sponsors
|
||||
Yes
|
||||
- else
|
||||
No
|
||||
%dt
|
||||
Include Booths
|
||||
%dd
|
||||
- if @splashpage.include_booths
|
||||
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
|
||||
.col-md-12
|
||||
%ul.fa-ul
|
||||
%li
|
||||
%i{ class: "fa-li #{icon_for_todo @splashpage.include_cfp?}" }
|
||||
Display call for papers and call for tracks, while open
|
||||
%li
|
||||
%i{ class: "fa-li #{icon_for_todo @splashpage.include_program?}" }
|
||||
Display the program
|
||||
%ul.fa-ul
|
||||
%li
|
||||
%i{ class: "fa-li #{icon_for_todo @splashpage.include_program?}" }
|
||||
Include confirmed tracks
|
||||
%li
|
||||
%i{ class: "fa-li #{icon_for_todo @splashpage.include_booths?}" }
|
||||
Include confirmed booths
|
||||
%li
|
||||
%i{ class: "fa-li #{icon_for_todo @splashpage.include_registrations?}" }
|
||||
Display the registration period
|
||||
%li
|
||||
%i{ class: "fa-li #{icon_for_todo @splashpage.include_tickets?}" }
|
||||
Display tickets
|
||||
%li
|
||||
%i{ class: "fa-li #{icon_for_todo @splashpage.include_venue?}" }
|
||||
Display the venue
|
||||
%li
|
||||
%i{ class: "fa-li #{icon_for_todo @splashpage.include_lodgings?}" }
|
||||
Display the lodgings
|
||||
%li
|
||||
%i{ class: "fa-li #{icon_for_todo @splashpage.include_sponsors?}" }
|
||||
Display sponsors
|
||||
%li
|
||||
%i{ class: "fa-li #{icon_for_todo @splashpage.include_social_media?}" }
|
||||
Display social media links
|
||||
|
||||
.row
|
||||
.col-md-12
|
||||
- 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'
|
||||
- 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
|
||||
.row
|
||||
.col-md-12.text-right
|
||||
|
|
|
|||
|
|
@ -11,33 +11,33 @@
|
|||
= @conference.title
|
||||
|
||||
#splash
|
||||
// header/description
|
||||
-# header/description
|
||||
= render 'header', conference: @conference
|
||||
|
||||
// attendance/registration
|
||||
-# calls for content, or program
|
||||
- if @conference.splashpage.include_cfp
|
||||
= render 'call_for_content', conference: @conference
|
||||
- if @conference.splashpage.include_program
|
||||
= render 'program', conference: @conference
|
||||
|
||||
-# attendance/registration
|
||||
- if @conference.splashpage.include_registrations
|
||||
- if @conference.registration_open?
|
||||
= render 'registration', conference: @conference
|
||||
- if @conference.splashpage.include_tickets && @conference.tickets.any?
|
||||
= render 'tickets', conference: @conference
|
||||
|
||||
// calls for content, or program
|
||||
- if @conference.splashpage.include_cfp
|
||||
= render 'call_for_content', conference: @conference
|
||||
- if @conference.splashpage.include_program
|
||||
= render 'program', conference: @conference
|
||||
|
||||
// geo
|
||||
-# geo
|
||||
- if @conference.splashpage.include_venue && @conference.venue
|
||||
= render 'venue', conference: @conference
|
||||
- if @conference.splashpage.include_lodgings && @conference.lodgings.any?
|
||||
= render 'lodging', conference: @conference
|
||||
|
||||
// sponsorship
|
||||
-# sponsorship
|
||||
- if @conference.splashpage.include_sponsors
|
||||
= render 'sponsors', conference: @conference
|
||||
|
||||
// footer
|
||||
-# footer
|
||||
- if @conference.splashpage.include_social_media
|
||||
- if @conference.contact.has_social_media?
|
||||
= render 'social_media', conference: @conference
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue