Fix eventtypes form

This commit is contained in:
Chrisbr 2014-04-30 10:47:33 +02:00
parent 8154e6f72c
commit b095064108
5 changed files with 7 additions and 7 deletions

View file

@ -1,17 +1,17 @@
class Admin::EventtypeController < ApplicationController
class Admin::EventtypesController < ApplicationController
before_filter :verify_organizer
def show
render :eventtype_list
render :eventtypes
end
def update
@conference.update_attributes!(params[:conference])
redirect_to(admin_conference_eventtype_path(
redirect_to(admin_conference_eventtypes_path(
conference_id: @conference.short_title),
notice: 'Event types were successfully updated.')
rescue Exception => e
redirect_to(admin_conference_eventtype_path(
redirect_to(admin_conference_eventtypes_path(
conference_id: @conference.short_title),
alert: 'Event types update failed: #{e.message}')
end

View file

@ -10,8 +10,8 @@
= link_to "Rooms", admin_conference_rooms_path(@conference.short_title)
%li{:class=> active_nav_li(admin_conference_tracks_path(@conference.short_title))}
= link_to "Tracks", admin_conference_tracks_path(@conference.short_title)
%li{:class=> active_nav_li(admin_conference_eventtype_index_path(@conference.short_title))}
= link_to "Event Types", admin_conference_eventtype_index_path(@conference.short_title)
%li{:class=> active_nav_li(admin_conference_eventtypes_path(@conference.short_title))}
= link_to "Event Types", admin_conference_eventtypes_path(@conference.short_title)
%li{:class=> active_nav_li(admin_conference_difficulty_levels_path(@conference.short_title))}
= link_to "Difficulty Levels", admin_conference_difficulty_levels_path(@conference.short_title)
%li{:class=> active_nav_li(admin_conference_social_events_path(@conference.short_title))}