Merge branch 'master' into admin-ticketing
* master: (61 commits) Replace more Commercials with Materials Rename more commericals to materials UI -- Repalce "Commerials" with "Materials". Re-order Conference Associations Cleanup CSS add Snap! style block attachments hide venue link if there is no venue link No dropshadow Text with drop shadow for now Tidy up the look of lodging panels Show reg status for tickets. Tweak CSS, fix loding order Move the venue description to below the map. Update lodging styling. Add description for venu when map is shown. CSS tweaks... Make the edit form not so wide. Support markdown in more fields Cleanup CSS ordering, fix coloring for navdropdowns dumb...fix order of link_to args ARRRGHHH, another typo...same line... fix typo ...
This commit is contained in:
commit
4306fbe636
82 changed files with 423 additions and 428 deletions
|
|
@ -1,11 +1,11 @@
|
|||
.row
|
||||
.col-md-12
|
||||
.page-header
|
||||
%h1 Commercials
|
||||
%h1 Session Materials
|
||||
%p.text-muted
|
||||
Conference commercials will be displayed on the events in the
|
||||
Conference materials will be displayed on the events in the
|
||||
= link_to 'schedule,', conference_schedule_path(@conference.short_title)
|
||||
if the event speaker didn't add an event commercial.
|
||||
if the event speaker didn't add any event materials.
|
||||
- if can? :create, @conference.commercials.new
|
||||
.row
|
||||
.col-md-6
|
||||
|
|
|
|||
|
|
@ -7,11 +7,12 @@
|
|||
Event Type
|
||||
= @event_type.title
|
||||
.row
|
||||
.col-md-12
|
||||
= semantic_form_for(@event_type, url: (@event_type.new_record? ? admin_conference_program_event_types_path : admin_conference_program_event_type_path(@conference.short_title, @event_type))) do |f|
|
||||
.col-md-8
|
||||
- form_url = (@event_type.new_record? ? admin_conference_program_event_types_path : admin_conference_program_event_type_path(@conference.short_title, @event_type))
|
||||
= semantic_form_for(@event_type, url: form_url) do |f|
|
||||
= f.input :title, input_html: { autofocus: true }
|
||||
= f.input :length, input_html: {size: 3, type: 'number', step: @event_type.program.schedule_interval, min: @event_type.program.schedule_interval}
|
||||
= f.input :description
|
||||
= f.input :description, as: :text, hint: markdown_hint, input_html: { rows: 5, data: { provide: 'markdown-editable' } }
|
||||
= f.input :minimum_abstract_length, input_html: {size: 3}
|
||||
= f.input :maximum_abstract_length, input_html: {size: 3}
|
||||
= f.input :color, input_html: { size: 6, type: 'color' }
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
%td
|
||||
= event_type.title
|
||||
%td
|
||||
= event_type.description
|
||||
= markdown(event_type.description)
|
||||
%td
|
||||
= event_type.length
|
||||
Minutes
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@
|
|||
= "(#{@events.length})" if @events.any?
|
||||
|
||||
.btn-group.pull-right
|
||||
%button.btn.btn-primary{ title: 'Mass import of commercials for events',
|
||||
%button.btn.btn-primary{ title: 'Mass import of materials for events',
|
||||
data: { toggle: 'modal', target: '#mass-commercials-modal' } }
|
||||
Add Commercials
|
||||
Add Materials
|
||||
|
||||
- if can? :create, Event
|
||||
= link_to 'Add Event',
|
||||
|
|
@ -28,7 +28,7 @@
|
|||
.modal-dialog
|
||||
.modal-content
|
||||
.modal-header
|
||||
%h1 Add commercials to events
|
||||
%h1 Add materials to events
|
||||
.text-muted
|
||||
Upload your file with data in the following format:
|
||||
%b Event_ID:Commercial_Link
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
- progress_status = @event.progress_status
|
||||
= progress_status.reject{ |_key, value| value || value.nil? }.length
|
||||
%li
|
||||
= link_to 'Commercials', '#proposal-commercials', 'data-toggle' => 'tab'
|
||||
= link_to 'Materials', '#proposal-commercials', 'data-toggle' => 'tab'
|
||||
|
||||
.tab-content
|
||||
#proposal-content.tab-pane.active
|
||||
|
|
@ -42,7 +42,7 @@
|
|||
|
||||
- else
|
||||
= general_change_description(version)
|
||||
= link_to 'commercial',
|
||||
= link_to 'materials',
|
||||
edit_admin_conference_program_event_path(conference_id: @conference.short_title,
|
||||
id: @event.id, anchor: 'commercials-content')
|
||||
|
||||
|
|
@ -82,7 +82,7 @@
|
|||
%td{ 'class' => class_for_todo(progress_status['subtitle']) }
|
||||
%span{ 'class' => [icon_for_todo(progress_status['subtitle']), 'fa-lg'] }
|
||||
%tr
|
||||
%td= link_to 'Add a commercial', edit_admin_conference_program_event_path(@event.program.conference.short_title, @event, anchor: 'commercials-content')
|
||||
%td= link_to 'Add materials', edit_admin_conference_program_event_path(@event.program.conference.short_title, @event, anchor: 'commercials-content')
|
||||
%td{ 'class' => class_for_todo(progress_status['commercials']) }
|
||||
%span{ 'class' => [icon_for_todo(progress_status['commercials']), 'fa-lg'] }
|
||||
- unless progress_status['track'].nil?
|
||||
|
|
|
|||
|
|
@ -30,8 +30,6 @@
|
|||
%th{ width: '0' } E-Mail
|
||||
%th{ width: '0' }
|
||||
%abbr{ title: 'Code of Conduct' } CoC
|
||||
%th{ width: '0' } Arrival
|
||||
%th{ width: '0' } Departure
|
||||
%th{ width: '0' } Actions
|
||||
%tbody
|
||||
|
||||
|
|
@ -81,22 +79,6 @@
|
|||
"className": "code-of-conduct text-center",
|
||||
"searchable": false
|
||||
},
|
||||
{
|
||||
"data": "arrival",
|
||||
"searchable": false,
|
||||
"render": function(data, type, row) {
|
||||
if (data) { return moment(data).format('ll LT'); }
|
||||
return '';
|
||||
}
|
||||
},
|
||||
{
|
||||
"data": "departure",
|
||||
"searchable": false,
|
||||
"render": function(data, type, row) {
|
||||
if (data) { return moment(data).format('ll LT'); }
|
||||
return '';
|
||||
}
|
||||
},
|
||||
{
|
||||
"data": null,
|
||||
"className": "actions",
|
||||
|
|
|
|||
|
|
@ -4,9 +4,7 @@ prawn_document(force_download: true, filename: @pdf_filename, page_layout: :land
|
|||
'Name',
|
||||
'Nickname',
|
||||
'Affiliation',
|
||||
'Email',
|
||||
'Arrival Date',
|
||||
'Departure Date']
|
||||
'Email']
|
||||
@conference.questions.each do |question|
|
||||
header_array << question.title
|
||||
end
|
||||
|
|
@ -19,8 +17,6 @@ prawn_document(force_download: true, filename: @pdf_filename, page_layout: :land
|
|||
row << registration.nickname
|
||||
row << registration.affiliation
|
||||
row << registration.email
|
||||
row << registration.arrival.to_s || ''
|
||||
row << registration.departure.to_s || ''
|
||||
|
||||
@conference.questions.each do |question|
|
||||
qa = registration.qanswers.find_by(question: question)
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
wb = xlsx_package.workbook
|
||||
wb.add_worksheet(name: 'registrations') do |sheet|
|
||||
bold_style = wb.styles.add_style(b: true)
|
||||
row = ['Attended', 'Name', 'Nickname', 'Affilιation', 'Email', 'Arrival', 'Departure']
|
||||
row = ['Attended', 'Name', 'Nickname', 'Affilιation', 'Email']
|
||||
|
||||
@conference.questions.each do |question|
|
||||
row << question.title
|
||||
|
|
@ -18,8 +18,6 @@ wb.add_worksheet(name: 'registrations') do |sheet|
|
|||
row << registration.nickname
|
||||
row << registration.affiliation
|
||||
row << registration.email
|
||||
row << registration.arrival.to_s
|
||||
row << registration.departure.to_s
|
||||
@conference.questions.each do |question|
|
||||
qa = registration.qanswers.find_by(question: question)
|
||||
answer = ( qa ? qa.answer.title : '' )
|
||||
|
|
@ -30,4 +28,3 @@ wb.add_worksheet(name: 'registrations') do |sheet|
|
|||
sheet.add_row row
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
%th Title
|
||||
%th Speakers Registered
|
||||
%th Speakers Biographies
|
||||
%th Commercial
|
||||
%th Materials
|
||||
%th Subtitle
|
||||
%th Difficulty Level
|
||||
- if @program.tracks.any?
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
.col-md-12
|
||||
.page-header
|
||||
%h1
|
||||
Events without commercials
|
||||
Events Without Materials
|
||||
= "(#{@events_missing_commercial.length})"
|
||||
%p.text-muted
|
||||
All submissions that have no commercial
|
||||
All submissions that have no materials
|
||||
.col-md-12
|
||||
%table.datatable
|
||||
%thead
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
= link_to 'All Events', '#all', 'data-toggle' => 'tab'
|
||||
%li
|
||||
%a{href: '#missing-commercial', 'data-toggle' => 'tab'}
|
||||
Events without Commercials
|
||||
Events without Materials
|
||||
%span.label.label-danger{style: 'border-radius: 1em;'}
|
||||
= @events_missing_commercial.length
|
||||
%li
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
%li.active
|
||||
= link_to 'Details', '#details-content', 'data-toggle' => 'tab'
|
||||
%li
|
||||
= link_to 'Commercials', '#commercials-content', 'data-toggle' => 'tab'
|
||||
= link_to 'Materials', '#commercials-content', 'data-toggle' => 'tab'
|
||||
|
||||
.tab-content
|
||||
#details-content.tab-pane.active
|
||||
|
|
@ -56,4 +56,4 @@
|
|||
%hr
|
||||
|
||||
- else
|
||||
First Create Venue, then update commercial
|
||||
First Create Venue, then update materials
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
-else
|
||||
- if @venue.commercial.nil?
|
||||
.row
|
||||
%img{ "data-src" => "holder.js/500x300?text=No Commercial Set", class: 'img-responsive img-rounded' }
|
||||
%img{ "data-src" => "holder.js/500x300?text=No Materials Set", class: 'img-responsive img-rounded' }
|
||||
- else
|
||||
- if @venue.commercial.persisted?
|
||||
.thumbnail
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue