simpledb-webview icon indicating copy to clipboard operation
simpledb-webview copied to clipboard

Dialog editing (as opposed to inline editing)

Open arturadib opened this issue 14 years ago • 2 comments
trafficstars

Here are my thoughts:

Inline might require too much work to bake into Backbone and make it look good. Dialog is simpler and (I think) does the job just well.

The idea is that when a user double-clicks on a row, a modal dialog (using jQuery UI's dialog, see e.g. #about-dialog) pops up with a form containing all item attributes.

At the bottom of the form there'd be two buttons: Cancel, and Update. The user can then fill out and modify the form at will, and simply click on the desired button.

We should try to use Backbone's model.save() method if possible.

arturadib avatar Jun 16 '11 14:06 arturadib

That makes sense and would be easier to implement than in-line editing.

Should the dialog be able to add new attributes? If so, this dialog could be used for 2 purposes. 1) adding new items to the domain, and 2) adding new attributes to an existing item.

crcastle avatar Jun 17 '11 00:06 crcastle

Interesting idea! Yeah, I guess the same view (dialog) can be used for both purposes.

An operational suggestion though: It might be easier to start by getting a view to work with case #2, but keeping in mind that same view might be used with #1, and then later modify it to accommodate #1.

arturadib avatar Jun 17 '11 12:06 arturadib