Merge 200a701861 into a557f3750e
This commit is contained in:
commit
cc7196cd19
8 changed files with 131 additions and 7 deletions
|
|
@ -134,7 +134,7 @@ class ProposalController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
|
@event = Event.find(params[:id])
|
||||||
end
|
end
|
||||||
|
|
||||||
def confirm
|
def confirm
|
||||||
|
|
|
||||||
|
|
@ -143,6 +143,12 @@ class Event < ActiveRecord::Base
|
||||||
self.abstract.split.size
|
self.abstract.split.size
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def type
|
||||||
|
type = EventType.find(self.event_type_id)
|
||||||
|
type if type
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def abstract_limit
|
def abstract_limit
|
||||||
|
|
@ -171,4 +177,4 @@ class Event < ActiveRecord::Base
|
||||||
self.guid = guid
|
self.guid = guid
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,12 @@
|
||||||
.row-fluid
|
.row-fluid
|
||||||
.span12
|
.span12
|
||||||
%table.table
|
%table.table
|
||||||
|
%tr
|
||||||
|
%td
|
||||||
|
%b Type
|
||||||
|
%td
|
||||||
|
- if @event.type
|
||||||
|
= @event.type.title
|
||||||
%tr
|
%tr
|
||||||
%td
|
%td
|
||||||
%b State
|
%b State
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,11 @@
|
||||||
%table.table.table-striped.table-bordered.table-hover
|
%h2
|
||||||
|
People
|
||||||
|
- if @people
|
||||||
|
= "(#{@people.length})"
|
||||||
|
%table.table.table-striped.table-bordered.table-hover#people
|
||||||
%thead
|
%thead
|
||||||
|
%th
|
||||||
|
%b Email
|
||||||
%th
|
%th
|
||||||
%b Last Name
|
%b Last Name
|
||||||
%th
|
%th
|
||||||
|
|
@ -11,8 +17,16 @@
|
||||||
%th
|
%th
|
||||||
- @people.each do |person|
|
- @people.each do |person|
|
||||||
%tr
|
%tr
|
||||||
|
%td= person.email
|
||||||
%td= person.last_name
|
%td= person.last_name
|
||||||
%td= person.first_name
|
%td= person.first_name
|
||||||
%td= person.public_name
|
%td= person.public_name
|
||||||
%td= person.registrations.count
|
%td= person.registrations.count
|
||||||
%td= link_to "View", admin_person_path(person)
|
%td= link_to "View", admin_person_path(person)
|
||||||
|
|
||||||
|
:javascript
|
||||||
|
$(document).ready(function() {
|
||||||
|
$('#people').dataTable( {
|
||||||
|
sPaginationType: "full_numbers"
|
||||||
|
} );
|
||||||
|
} );
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,10 @@
|
||||||
= link_to "Export PDF", admin_conference_registrations_path(@conference.short_title, :format => :pdf), :class => "btn btn-success"
|
= link_to "Export PDF", admin_conference_registrations_path(@conference.short_title, :format => :pdf), :class => "btn btn-success"
|
||||||
.row-fluid
|
.row-fluid
|
||||||
.span12
|
.span12
|
||||||
|
%h2
|
||||||
|
Registrations
|
||||||
|
- if @registrations
|
||||||
|
= "(#{@registrations.length})"
|
||||||
%table.table.table-striped.table-bordered.table-hover
|
%table.table.table-striped.table-bordered.table-hover
|
||||||
%thead
|
%thead
|
||||||
%th
|
%th
|
||||||
|
|
@ -45,4 +49,4 @@
|
||||||
%td
|
%td
|
||||||
= link_to "Edit", "#", :class => "btn btn-primary"
|
= link_to "Edit", "#", :class => "btn btn-primary"
|
||||||
%td
|
%td
|
||||||
= link_to "Delete", "#", :class => "btn btn-danger", :confirm => "Really delete registration for #{registration.public_name}?"
|
= link_to "Delete", "#", :class => "btn btn-danger", :confirm => "Really delete registration for #{registration.public_name}?"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,11 @@
|
||||||
.container-fluid
|
.container-fluid
|
||||||
.row-fluid
|
.row-fluid
|
||||||
.span12
|
.span12
|
||||||
%table.table.table-striped.table-bordered.table-hover
|
%h2
|
||||||
|
Users
|
||||||
|
- if @users
|
||||||
|
= "(#{@users.length})"
|
||||||
|
%table.table.table-striped.table-bordered.table-hover#users
|
||||||
%thead
|
%thead
|
||||||
%th
|
%th
|
||||||
%b Email
|
%b Email
|
||||||
|
|
@ -55,3 +59,9 @@
|
||||||
"data-content" => user.popup_details,
|
"data-content" => user.popup_details,
|
||||||
"data-original-title" => ""
|
"data-original-title" => ""
|
||||||
|
|
||||||
|
:javascript
|
||||||
|
$(document).ready(function() {
|
||||||
|
$('#users').dataTable( {
|
||||||
|
sPaginationType: "full_numbers"
|
||||||
|
} );
|
||||||
|
} );
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
- @events.each do |event|
|
- @events.each do |event|
|
||||||
%tr
|
%tr
|
||||||
%td
|
%td
|
||||||
= event.title
|
= link_to event.title, conference_proposal_path(@conference.short_title, event.id)
|
||||||
%td
|
%td
|
||||||
= event.public_state
|
= event.public_state
|
||||||
- if event.confirmed? && !@conference.user_registered?(current_user)
|
- if event.confirmed? && !@conference.user_registered?(current_user)
|
||||||
|
|
|
||||||
84
app/views/proposal/show.html.haml
Normal file
84
app/views/proposal/show.html.haml
Normal file
|
|
@ -0,0 +1,84 @@
|
||||||
|
.row-fluid
|
||||||
|
.span10
|
||||||
|
%h3
|
||||||
|
= @event.title
|
||||||
|
%i= @event.subtitle
|
||||||
|
|
||||||
|
.span2
|
||||||
|
- if @event.transition_possible? :confirm
|
||||||
|
= link_to "Confirm", conference_proposal_confirm_path(@conference.short_title, @event), :method => :put, :class => "btn btn-mini btn-success"
|
||||||
|
= link_to "Withdraw", conference_proposal_path(@conference.short_title, @event.id), :method => :delete,
|
||||||
|
:confirm => "Are you sure you want to withdraw this proposal?", :class => "btn btn-mini btn-danger"
|
||||||
|
|
||||||
|
.row-fluid
|
||||||
|
.span12
|
||||||
|
%table.table
|
||||||
|
%tr
|
||||||
|
%td
|
||||||
|
%b Type
|
||||||
|
%td
|
||||||
|
- if @event.type
|
||||||
|
= @event.type.title
|
||||||
|
- if !@event.track.nil?
|
||||||
|
%tr
|
||||||
|
%td
|
||||||
|
%b Track
|
||||||
|
%td
|
||||||
|
= @event.track.name
|
||||||
|
- if !@event.room.nil?
|
||||||
|
%tr
|
||||||
|
%td
|
||||||
|
%b Room
|
||||||
|
%td
|
||||||
|
= @event.room.name
|
||||||
|
- if !@event.start_time.nil?
|
||||||
|
%tr
|
||||||
|
%td
|
||||||
|
%b Scheduled time
|
||||||
|
%td
|
||||||
|
= @event.start_time
|
||||||
|
%tr
|
||||||
|
%td
|
||||||
|
%b Submitted on
|
||||||
|
%td= @event.created_at
|
||||||
|
%tr
|
||||||
|
%td
|
||||||
|
%b Last updated on
|
||||||
|
%td= @event.updated_at
|
||||||
|
%tr
|
||||||
|
%td
|
||||||
|
%b Abstract
|
||||||
|
%td= simple_format(@event.abstract)
|
||||||
|
%tr
|
||||||
|
%td
|
||||||
|
%b Description
|
||||||
|
%td= simple_format(@event.description)
|
||||||
|
- if @event.event_attachments.size > 0
|
||||||
|
%table.table
|
||||||
|
%thead
|
||||||
|
%th
|
||||||
|
%b Filename
|
||||||
|
%th
|
||||||
|
%b Title
|
||||||
|
%th
|
||||||
|
%b Size
|
||||||
|
%th
|
||||||
|
%b Public?
|
||||||
|
%th
|
||||||
|
%tbody
|
||||||
|
- @event.event_attachments.each do |a|
|
||||||
|
%tr
|
||||||
|
%td
|
||||||
|
= link_to a.attachment_file_name, conference_proposal_event_attachment_path(@conference.short_title, @event.id, a.id)
|
||||||
|
%td
|
||||||
|
= a.title
|
||||||
|
%td
|
||||||
|
= number_to_human_size a.attachment_file_size
|
||||||
|
%td
|
||||||
|
- if a.public?
|
||||||
|
Public
|
||||||
|
- else
|
||||||
|
Not Public
|
||||||
|
%td
|
||||||
|
= link_to "Delete", conference_proposal_event_attachment_path(@conference.short_title, @event.id, a.id),
|
||||||
|
:method => :delete, :confirm => "Are you sure you want to delete this attachment? It's permanant!"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue