2013-01-07 16:45:48 +01:00
.tabbable
%ul.nav.nav-tabs
%li.active
2017-03-11 13:25:39 +05:30
= link_to 'Proposal', '#proposal-content', 'data-toggle' => 'tab'
2013-01-07 16:45:48 +01:00
%li
2017-03-11 13:25:39 +05:30
= link_to 'History', '#history-content', 'data-toggle' => 'tab'
2016-07-29 21:26:10 +05:30
%li
2017-03-11 13:25:39 +05:30
%a{ href: '#proposal-tasks', 'data-toggle' => 'tab' }
2016-07-29 21:26:10 +05:30
Tasks
2017-03-11 13:25:39 +05:30
%span.label.label-danger{ style: 'border-radius: 1em;' }
2016-07-29 21:26:10 +05:30
- progress_status = @event.progress_status
= progress_status.reject{ |_key, value| value || value.nil? }.length
2017-03-03 12:43:59 +02:00
%li
= link_to 'Commercials', '#proposal-commercials', 'data-toggle' => 'tab'
2016-07-29 21:26:10 +05:30
2013-01-07 16:45:48 +01:00
.tab-content
#proposal-content.tab-pane.active
= render 'proposal'
#history-content.tab-pane
2014-03-17 16:36:32 +01:00
.col-md-12
2018-06-15 18:20:18 -07:00
%table.datatable
2013-01-07 16:45:48 +01:00
%thead
2023-03-04 13:12:47 -08:00
%tr
%th ID
%th Description
%th Actions
2013-01-07 16:45:48 +01:00
%tbody
2016-08-13 23:45:46 +05:30
- @versions.each do |version|
2016-08-09 12:22:43 +05:30
%tr
%td
= version.id
%td
%p
2016-07-29 20:09:16 +05:30
= link_to_user(version.whodunnit)
2016-08-13 23:45:46 +05:30
- if version.item_type == 'Event'
= event_change_description(version)
= "event #{@event.title}"
2017-03-02 17:07:19 +05:30
- elsif version.item_type == 'Vote'
= vote_change_description(version)
= "event #{@event.title}"
2016-08-13 23:45:46 +05:30
- else
= general_change_description(version)
= link_to 'commercial',
edit_admin_conference_program_event_path(conference_id: @conference.short_title,
id: @event.id, anchor: 'commercials-content')
2016-08-09 12:22:43 +05:30
%small.text-muted
2017-03-11 13:25:39 +05:30
= distance_of_time_in_words(Time.now, version.created_at) + ' ago'
2016-08-09 12:22:43 +05:30
%br
= "(#{version.created_at.strftime('%B %-d, %Y %H:%M')})"
2013-01-07 16:45:48 +01:00
%br
2016-08-09 13:03:06 +05:30
= render partial: 'shared/object_changes', locals: { version: version }
2016-08-09 12:22:43 +05:30
%td
2016-08-09 13:03:06 +05:30
= render partial: 'shared/changelog_actions', locals: { version: version }
2016-07-29 21:26:10 +05:30
#proposal-tasks.tab-pane
- progress_percentage = @event.calculate_progress
.col-md-12
%h3
= @event.title
%br
%table.table.table-hover
%tr
2017-05-09 00:14:05 +03:00
%td= link_to "#{'Speaker'.pluralize(@event.speakers.count)} must be registered to the conference", admin_conference_registrations_path(@event.program.conference.short_title)
2017-03-11 13:25:39 +05:30
%td{ 'class' => class_for_todo(progress_status['registered']) }
%span{ 'class' => [icon_for_todo(progress_status['registered']), 'fa-lg'] }
2016-07-29 21:26:10 +05:30
%tr
2017-05-09 00:14:05 +03:00
%td
2019-09-04 17:48:18 +05:30
- speakers_count = @event.speakers.count
- if speakers_count == 1
2017-05-09 00:14:05 +03:00
= link_to 'Fill out speaker\'s biography', edit_admin_user_path(@event.speakers.first)
2019-09-04 17:48:18 +05:30
- elsif speakers_count > 1
2017-05-09 00:14:05 +03:00
Fill out speaker's biography:
= speaker_links(@event)
%td{ 'class' => class_for_todo(progress_status['biographies']) }
%span{ 'class' => [icon_for_todo(progress_status['biographies']), 'fa-lg'] }
2016-07-29 21:26:10 +05:30
%tr
2017-03-03 12:43:59 +02:00
%td= link_to 'Add a subtitle', edit_admin_conference_program_event_path(@event.program.conference.short_title, @event)
2017-03-11 13:25:39 +05:30
%td{ 'class' => class_for_todo(progress_status['subtitle']) }
%span{ 'class' => [icon_for_todo(progress_status['subtitle']), 'fa-lg'] }
2016-07-29 21:26:10 +05:30
%tr
2017-03-03 12:43:59 +02:00
%td= link_to 'Add a commercial', edit_admin_conference_program_event_path(@event.program.conference.short_title, @event, anchor: 'commercials-content')
2017-03-11 13:25:39 +05:30
%td{ 'class' => class_for_todo(progress_status['commercials']) }
%span{ 'class' => [icon_for_todo(progress_status['commercials']), 'fa-lg'] }
2016-07-29 21:26:10 +05:30
- unless progress_status['track'].nil?
%tr
2017-03-03 12:43:59 +02:00
%td= link_to 'Add a track', edit_admin_conference_program_event_path(@event.program.conference.short_title, @event)
2017-03-11 13:25:39 +05:30
%td{ 'class' => class_for_todo(progress_status['track']) }
%span{ 'class' => [icon_for_todo(progress_status['track']), 'fa-lg'] }
2016-07-29 21:26:10 +05:30
%tr
2017-03-03 12:43:59 +02:00
%td= link_to 'Add a difficulty level', edit_admin_conference_program_event_path(@event.program.conference.short_title, @event)
2017-03-11 13:25:39 +05:30
%td{ 'class' => class_for_todo(progress_status['difficulty_level']) }
%span{ 'class' => [icon_for_todo(progress_status['difficulty_level']), 'fa-lg'] }
2017-03-03 12:43:59 +02:00
#proposal-commercials.tab-pane
= render partial: 'shared/media_items', locals: { commercials: @event.commercials }