OlhenShu / ProjectStage_Team2_May

0 stars 0 forks source link

Add new place #242

Open OlhenShu opened 2 months ago

OlhenShu commented 2 months ago

As a registered user I want to propose a new place to be added to the map/list, so that information about places is up-to-date and full.

Mockups:

Acceptance Criteria:

GIVEN a registered user is successfully logged in to the system, WHEN he clicks on "Add place" button at top right corner of the screen, зображення_viber_2021-10-21_23-17-52-124

THEN system shall open a modal window with the following: a. input field "Type" b. input field "Name" c. input field "Address" d. input field "Working hours" (time format - 00:00 - 23:59) e. Buttons "Add" and "Cancel" 111

Provided user clicks on field "Type", system shall open a drop-down with the following elements: shops restaurants resycling points vegan products bike rentals bike parking hotels сharging station

Provided user selects "Add new" option in the Type field, system shall let him enter a new type of place.

Fields "Name" and "Address" shall be char + digit fields. User can input max number of 30 chars into each field.

Provided user clicks on "Working hours" field, system shall open a pop-up, where user has to choose opening and closure times. There shall be buttons "OK" and "Cancel".

All fields are mandatory to be populated. Provided at least one field is not populated, then "Add" button shall be disabled.

Provided user clicks on "Add" button, system shall close the modal window, add the proposed place to the system and display it in the "Proposed places" tab of the Admin page.

Provided user clicks on "Cancel" button, system shall close the modal window and not save data entered in the fields (if any).

Assumptions and Constraints:

TBD:

related to user story #227 Epic link E.g.: Epic #225

Labels to be added "User story"

Tasks

    • [ ] sample task.