mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-15 20:54:03 +00:00
Add track association to schedule Show schedules in admin sidebar to track organizers Allow track organizers to manage the schedules of their tracks Don't allow self-organized track events to be dragged or unscheduled in a conference schedule Make scheduled events of self-organized tracks appear semitransparent in conference schedules Make the rooms of confirmed self_organized tracks appear semitransparent and don't allow events to be scheduled to it in the conference schedules during the dates of its track Create admin/SchedulesController#new action Add a button in admin/Schedules#index to create schedules for tracks Add self_organized scope to Track Modify Schedules#show to handle track schedules and show a unified schedule Allow track organizers to create new schedules for their tracks Correctly identify scheduled and unscheduled events in Schedules#events Fix Event#room and Event#time for when the event is scheduled in a track schedule Modify Program#selected_event_schedules to include the event_schedules of selected track schedules Modify Track#revoke_role_and_cleanup to destroy the track's schedules and revert its events' state to new Add tabs for conference and track schedules in admin/Schedules#index Add button to Create/Show a tracks schedule in Tracks#index and #show Fix concurrent_events in application_helper because of changes in Program#selected_event_schedules Do not take into account cfp_active in Event#valid_track Modify EventsController#get_tracks accordingly Enforce cfp_active of track to be enabled for proposals in ProposalsController#create and #update Add support for multiple schedules per track Add selected_schedule_id to Track Load EventSchedules of selected track schedules for conference schedules in admin/SchedulesController#show Modify SchedulesController#show to take into account only the selected track schedules Create Event#selected_schedule_id and use it in Event#scheduled? and Event#time Validate that an EventSchedule for an event of a self-organized track belongs to one of the track's schedules Add 'Manage' button in Tracks#index, #show that sends you to the admin side of things Add admin/TracksController#update_selected_schedule to update the selected_schedule_id of tracks
81 lines
4 KiB
Text
81 lines
4 KiB
Text
.container
|
|
.row
|
|
.col-md-12.page-header
|
|
%h1
|
|
Track requests for
|
|
%span.notranslate
|
|
= @conference.title
|
|
|
|
.row
|
|
.col-md-12
|
|
%p.text-right
|
|
= link_to '#status-help', class: 'btn btn-default', "data-toggle"=>"collapse" do
|
|
Help?
|
|
.collapse#status-help
|
|
%p
|
|
%strong
|
|
What happens next with my track request?
|
|
%p
|
|
If you submit a track request, the conference organizers will review it and either accept or reject it.
|
|
%br
|
|
If your track request is accepted, the conference organizers expect you to confirm that you will be able to hold it.
|
|
Then you will gain the Track organizer role.
|
|
%br
|
|
If your track request is rejected, you can either live with that or adapt it and resubmit it for review again.
|
|
%br
|
|
If something changes and you can't organize the track any more, you should withdraw it.
|
|
|
|
- if @tracks.any?
|
|
.row
|
|
.col-md-12
|
|
%table.table.table-striped#tracks
|
|
- @tracks.each do |track|
|
|
%tr
|
|
%td{style: "padding:15px 0px 0px 8px;"}
|
|
- if %w(new to_accept to_reject).include? track.state
|
|
%span{ title: 'In review', class: 'fa fa-eye' }
|
|
- elsif track.state == 'accepted'
|
|
%span{ title: 'Accepted', class: 'fa fa-check text-muted' }
|
|
- elsif track.state == 'confirmed'
|
|
%spam{ title: 'Confirmed', class: 'fa fa-check text-success' }
|
|
- elsif %w(rejected withdrawn canceled).include? track.state
|
|
%span{ title: track.state.humanize, class: 'fa fa-ban'}
|
|
%td{style: "padding: 15px 0px 0px 0px;"}
|
|
= link_to conference_program_track_path(@conference.short_title, track), class: 'btn' do
|
|
%span.label{style: "background-color: #{track.color}; color: #{ contrast_color(track.color) }"}
|
|
= track.name
|
|
%td
|
|
= markdown(truncate(track.description))
|
|
%td
|
|
- if track.start_date
|
|
From:
|
|
= track.start_date.strftime('%A, %B %-d. %Y')
|
|
%td
|
|
- if track.end_date
|
|
To:
|
|
= track.end_date.strftime('%A, %B %-d. %Y')
|
|
%td
|
|
- if track.room
|
|
In:
|
|
= track.room.name
|
|
%td
|
|
.pull-right
|
|
- if track.transition_possible? :confirm
|
|
= link_to 'Confirm', confirm_conference_program_track_path(@conference.short_title, track),
|
|
method: :patch, class: 'btn btn-mini btn-success', id: "confirm_track_#{track.id}"
|
|
- if track.transition_possible? :withdraw
|
|
= link_to 'Withdraw', withdraw_conference_program_track_path(@conference.short_title, track),
|
|
method: :patch, data: { confirm: 'Are you sure you want to withdraw this track request?' },
|
|
class: 'btn btn-mini btn-warning', id: "withdraw_track_request_#{track.id}"
|
|
- if track.transition_possible? :restart
|
|
= link_to 'Re-Submit', restart_conference_program_track_path(@conference.short_title, track),
|
|
method: :patch, class: 'btn btn-mini btn-success', id: "resubmit_track_request_#{track.id}"
|
|
- if can? :edit, track
|
|
= link_to 'Edit', edit_conference_program_track_path(@conference.short_title, track), class: 'btn btn-default'
|
|
- if current_user.has_role? :track_organizer, track
|
|
= link_to 'Manage', admin_conference_program_track_path(@conference.short_title, track), class: 'btn btn-default'
|
|
|
|
.row
|
|
.col-md-12
|
|
- if can? :new, @program.tracks.new
|
|
= link_to "New Track request", new_conference_program_track_path(@conference.short_title), class: 'btn btn-success pull-right'
|