Description:
fixed in_place_editor for configs, updated form in users/new
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r330:82d41889f7a0 - - 3 files changed: 8 inserted, 8 deleted

@@ -3,9 +3,9
3 3 before_filter :authenticate
4 4 before_filter { |controller| controller.authorization_by_roles(['admin'])}
5 5
6 - in_place_edit_for :configuration, :key
7 - in_place_edit_for :configuration, :type
8 - in_place_edit_for :configuration, :value
6 + in_place_edit_for :grader_configuration, :key
7 + in_place_edit_for :grader_configuration, :type
8 + in_place_edit_for :grader_configuration, :value
9 9
10 10 def index
11 11 @configurations = GraderConfiguration.find(:all,
@@ -7,14 +7,14
7 7 %th Value
8 8 %th Description
9 9 - @configurations.each do |conf|
10 - - @configuration = conf
10 + - @grader_configuration = conf
11 11 %tr{:class => cycle("info-odd", "info-even")}
12 12 %td
13 - = in_place_editor_field :configuration, :key, {}, :rows=>1
13 + = in_place_editor_field :grader_configuration, :key, {}, :rows=>1
14 14 %td
15 - = in_place_editor_field :configuration, :value_type, {}, :rows=>1
15 + = in_place_editor_field :grader_configuration, :value_type, {}, :rows=>1
16 16 %td
17 - = in_place_editor_field :configuration, :value, {}, :rows=>1
17 + = in_place_editor_field :grader_configuration, :value, {}, :rows=>1
18 18 %td= conf.description
19 19
20 20 - if GraderConfiguration.config_cached?
@@ -8,7 +8,7
8 8 = error_messages_for :user, :header_message => (t 'registration.errors.header')
9 9
10 10 %table
11 - = form_for :user, @user, :url => { :action => 'register' } do |f|
11 + = form_for @user, :url => { :action => 'register' } do |f|
12 12 %tr
13 13 %td{:align => "right"}
14 14 = "#{t 'login_label'}:"
You need to be logged in to leave comments. Login now