Task28Start - Inline editing within request list
See TasksExplained? for more infos about tasks. This task is based on the template at TaskTemplateStart
Status : closed
Category : gui
Date opened : 2007-02-11
Description : Inline editing within request list
Referenced in stories/tasks :
Story10Start
Testsuite : test/functional/main_controller_test.rb, test/integration/user_story6_test.rb
Commited revision : 107 (enter when done)
Remarks :
Changelog
2007-02-12 - problem with in_place_editor_field encountered
When you want to use in_place_editor_field inside a partial (which we obviously want), then you have to fix a variable scope
problem by hand:
_request.rhtml:
<% @request = request %>
...
<%= in_place_editor_field :request, :remarks -%>
The in_place_editor_field looks up the field remarks of table :request in the @request object.
2007-02-12 - defining the css element containing the edit field
around these two divs is a div called
request_XX-remarks.
The editor class is .inplaceeditor-form, can be refined as
.inplaceeditor-form input[type="text"]
The ok/save-button and the cancel button can be defined using css. They are called: .editor_ok_button and .editor_cancel.
2007-02-12 - done
last remark: unfortunately i lost the highlighting of the request details. Think it is due to the editor, but maybe it is not. But this code will change anyways with the remake of the request list once the detailarea is gone.