mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-14 04:04:03 +00:00
* Get rid of the timezones in the schedule, need to deal with that on output * Skip auth token verfiy on schedule updates * Make it possible to withdraw confirmed submissions * Show if people are not registerd
89 lines
4.4 KiB
Text
89 lines
4.4 KiB
Text
.row-fluid
|
|
.span12
|
|
%h2
|
|
Events
|
|
- if @events
|
|
= "(#{@events.length})"
|
|
.well
|
|
%table.table.table-striped.table-bordered.table-hover#events
|
|
%thead
|
|
%th
|
|
%b ID
|
|
%th
|
|
%b Title
|
|
%th
|
|
%b Submitter
|
|
%th
|
|
%b Type
|
|
%th
|
|
%b Track
|
|
%th
|
|
%b State
|
|
- @events.each do |event|
|
|
%tr
|
|
%td
|
|
= event.id
|
|
%td
|
|
=link_to event.title, admin_conference_event_path(@conference.short_title, event)
|
|
- if event.submitter.registrations.count < 1
|
|
- bgcolor="#F7819F"
|
|
- else
|
|
- bgcolor=""
|
|
%td{:style=>"background-color: #{bgcolor}"}
|
|
- if !event.submitter.nil?
|
|
=link_to event.submitter.public_name, admin_person_path(event.submitter)
|
|
- if event.submitter.registrations.count < 1
|
|
(Unregistered!)
|
|
- else
|
|
Unknown submitter
|
|
%td
|
|
= event.event_type.title
|
|
%td
|
|
.dropdown
|
|
= link_to "#", :class => "dropdown-toggle", :id => "track-dropdown" do
|
|
- if event.track.nil?
|
|
Track
|
|
- else
|
|
= event.track.name
|
|
<b class="caret"></b>
|
|
%ul.dropdown-menu
|
|
- @tracks.each do |track|
|
|
%li= link_to track.name, admin_conference_event_path(@conference.short_title, event, :track_id => track.id) ,
|
|
:method => :put, :track_id => track.id
|
|
%td
|
|
- if event.state == "withdrawn"
|
|
Withdrawn
|
|
- else
|
|
.dropdown
|
|
= link_to "#", :class => "dropdown-toggle" do
|
|
= event.state.humanize
|
|
<b class="caret"></b>
|
|
%ul.dropdown-menu
|
|
- if event.transition_possible? :accept
|
|
%li= link_to "Accept event (no email)", update_state_admin_conference_event_path(@conference.short_title, event, :transition => :accept, :send_mail => false),
|
|
:method => :put, :hint => "Accept this event without sending an automated email."
|
|
%li= link_to "Accept event (WITH email)", update_state_admin_conference_event_path(@conference.short_title, event, :transition => :accept, :send_mail => true),
|
|
:method => :put, :hint => "Accept this event and send an automated email."
|
|
- if event.transition_possible? :reject
|
|
%li= link_to "Reject event (no email)", update_state_admin_conference_event_path(@conference.short_title, event, :transition => :reject, :send_mail => false),
|
|
:method => :put, :confirm => "Are you sure?",
|
|
:hint => "Reject this event without sending an automated email."
|
|
%li= link_to "Reject event (WITH email)", update_state_admin_conference_event_path(@conference.short_title, event, :transition => :reject, :send_mail => true),
|
|
:method => :put, :confirm => "Are you sure?",
|
|
:hint => "Reject this event and send an automated email."
|
|
- if event.transition_possible? :start_review
|
|
%li= link_to "Start review", update_state_admin_conference_event_path(@conference.short_title, event, :transition => :start_review),
|
|
:method => :put
|
|
- if event.transition_possible? :confirm
|
|
%li= link_to "Confirm event", update_state_admin_conference_event_path(@conference.short_title, event, :transition => :confirm),
|
|
:method => :put, :hint => "Confirm that the speaker(s) will be present and that the event will actually take place."
|
|
- if event.transition_possible? :cancel
|
|
%li= link_to "Cancel event", update_state_admin_conference_event_path(@conference.short_title, event, :transition => :cancel),
|
|
:method => :put, :hint => "Mark this event as cancelled. Usually this means that the speakers had to cancel their appearance."
|
|
|
|
:javascript
|
|
$(document).ready(function() {
|
|
$('#events').dataTable( {
|
|
"bPaginate": false
|
|
} );
|
|
} );
|