change track from events list
This commit is contained in:
parent
3b201f951a
commit
1686c61e7c
3 changed files with 13 additions and 2 deletions
|
|
@ -12,6 +12,7 @@ class Admin::EventsController < ApplicationController
|
|||
@events = @conference.events
|
||||
@tracks = @conference.tracks
|
||||
@event_states = @events.state_machine.states.map
|
||||
@event_types = @conference.event_types
|
||||
respond_to do |format|
|
||||
format.html
|
||||
# Explicity call #to_json to avoid the use of EventSerializer
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
.dropdown
|
||||
= link_to "#", :class => "dropdown-toggle", :id => "type-dropdown" do
|
||||
- if @event.event_type.nil?
|
||||
Track
|
||||
Event Type
|
||||
- else
|
||||
= @event.event_type.title
|
||||
<b class="caret"></b>
|
||||
|
|
|
|||
|
|
@ -134,7 +134,17 @@
|
|||
- l = link_to "Change", edit_admin_conference_event_speaker_path(@conference.short_title, event), :remote => true
|
||||
= "(#{l})".html_safe
|
||||
%td
|
||||
= event.event_type.title
|
||||
.dropdown
|
||||
= link_to "#", :class => "dropdown-toggle", :id => "type-dropdown" do
|
||||
- if event.event_type.nil?
|
||||
Event Type
|
||||
- else
|
||||
= event.event_type.title
|
||||
<b class="caret"></b>
|
||||
%ul.dropdown-menu
|
||||
- @event_types.each do |type|
|
||||
%li= link_to type.title, admin_conference_event_path(@conference.short_title, event, :event_type_id => type.id) ,
|
||||
:method => :put, :event_type_id => type.id
|
||||
%td
|
||||
.dropdown
|
||||
= link_to "#", :class => "dropdown-toggle", :id => "track-dropdown" do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue