Skip to content

[locations] make editor view #18

@davidmaxwaterman

Description

@davidmaxwaterman

The locations view needs some way for the user to add a new location. At the moment, the information is hard coded, but there needs to be some way to enter that.

The way I see this working is :

The Locations view is a listview where each list item is a location. Each of these locations, when clicked, could expand in some way - perhaps it could be an accordion :

http://jquerymobile.com/test/docs/content/content-collapsible-set.html

and the name and address would be shown below it.

By default, the name and address would be just list items, but the page's header has an 'Edit' button which could change the view into edit mode allowing the user to change the values.

When the list is all compacted (ie no items are expanded) the header's edit button could be labelled 'new' and clicking on it will add a new list item at the top of the list, expanded with empty name and address in edit mode. Typing in the 'name' field would change the text on the button itself, and compacting the item will cause it to save (or could be save on focusout?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions