Permalink
Browse files

fixed plugin so that it works on RM 1.4.1

  • Loading branch information...
1 parent dad678b commit ddb4b305e1f6e5438d77056e697b005cce4bbf0f @smartsystems4u committed May 16, 2012
Showing with 28 additions and 3 deletions.
  1. +1 −1 app/views/users/_preferences.html.erb
  2. +27 −2 config/routes.rb
@@ -1,4 +1,4 @@
-<% fields_for :pref, @user.pref, :builder => TabularFormBuilder, :lang => current_language do |pref_fields| %>
+<% labelled_fields_for :pref, @user.pref, :lang => current_language do |pref_fields| %>
<p><%= pref_fields.check_box :hide_mail %></p>
<p><%= pref_fields.select :time_zone, ActiveSupport::TimeZone.all.collect {|z| [ z.to_s, z.name ]}, :include_blank => true %></p>
<p><%= pref_fields.select :comments_sorting, [[l(:label_chronological_order), 'asc'], [l(:label_reverse_chronological_order), 'desc']] %></p>
View
@@ -31,8 +31,33 @@
# map.connect 'calendars/settings/:tab/:id/:year', :controller => 'calendar', :action => 'settings'
map.connect 'issues/calendar', :controller => 'calendars', :action => 'show'
-
-
+ map.connect 'calendar', :controller => 'calendar', :action => 'index'
+ map.connect 'calendar/new', :controller => 'calendar', :action => 'new'
+ map.connect 'calendar/create', :controller => 'calendar', :action => 'create'
+ map.connect 'calendar/show', :controller => 'calendar', :action => 'show'
+ map.connect 'calendar/assign', :controller => 'assign_calendar', :action => 'add_calendar'
+ map.connect 'calendar/assign/create', :controller => 'assign_calendar', :action => 'create'
+ map.connect 'calendar/assign/autocomplete', :controller => 'assign_calendar', :action => 'autocomplete_for_assign_calendar'
+ map.connect 'calendar/assign/destroy', :controller => 'assign_calendar', :action => 'destroy'
+ map.connect 'calendar/assign/add', :controller => 'assign_calendar', :action => 'add_calendar'
+ map.connect 'calendar/assign/destroy_cal', :controller => 'assign_calendar', :action => 'destroy_calendar'
+ map.connect 'calendar/destroy', :controller => 'calendar', :action => 'destroy'
+ map.connect 'calendar/update', :controller => 'calendar', :action => 'update'
+ map.connect 'calendar/settings', :controller => 'calendar', :action => 'settings'
+ map.connect 'calendar/edit', :controller => 'calendar', :action => 'edit'
+ map.connect 'calendar/duplicate', :controller => 'calendar', :action => 'edit'
+ map.connect 'calendar/vacation', :controller => 'calendar_vacation', :action => 'show'
+ map.connect 'calendar/vacation/list', :controller => 'calendar_vacation', :action => 'list_holidays'
+ map.connect 'calendar/vacation/create', :controller => 'calendar_vacation', :action => 'create'
+ map.connect 'calendar/vacation/update', :controller => 'calendar_vacation', :action => 'update'
+ map.connect 'calendar/vacation/destroy', :controller => 'calendar_vacation', :action => 'destroy'
+ map.connect 'calendar/vacation/duplicate', :controller => 'calendar_vacation', :action => 'duplicate'
+ map.connect 'calendar/weekly', :controller => 'pattern_weeklies', :action => 'index'
+ map.connect 'calendar/weekly/create', :controller => 'pattern_weeklies', :action => 'create'
+ map.connect 'calendar/weekly/edit', :controller => 'pattern_weeklies', :action => 'edit'
+ map.connect 'calendar/weekly/destroy', :controller => 'pattern_weeklies', :action => 'destroy'
+ map.connect 'calendar/week_days/edit', :controller => 'week_days', :action => 'edit'
+ map.connect 'calendar/week_days/update', :controller => 'week_days', :action => 'update'
end

0 comments on commit ddb4b30

Please sign in to comment.