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