r3 - 12 Feb 2007 - 16:18:51 - ChristianFoliniYou are here: TWiki >  Main Web > Task28Start

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

item id (example remarks field) class
label request-item_XX-remarks-label request-fieldlabel
edit request-item_XX-remarks-fieldedit request-fieldedit

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.

TaskStati
TaskStatus? closed
Task-Categories gui
Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
Main.TaskTemplateStart moved from Main.TaskTemplate on 19 Jan 2007 - 12:41 by ChristianFolini
 

No permission to view WebTopBar?

No permission to view WebBottomBar?