The main aim of “GreenCity” project is to teach people in a playful and challenging way to have an eco-friendly lifestyle. A user can view on the map places that have some eco-initiatives or suggest discounts for being environmentally aware (for instance, coffee shops that give a discount if a customer comes with their own cup). А user can start doing an environment-friendly habit and track their progress with a habit tracker.
MIT License
65
stars
80
forks
source link
[Change request to #2199] Order form - Fill in address details #5200
Acceptance criteria:
The address form shall include the following fields and their attributes:
№
Field title
Field type
Validation
1
Місто
Editable text field
Only alphabetic characters and special characters “-” (hyphen), " " (space) and " ' " (apostrophe) are allowed.From minimum 1 to maximum 30 characters are allowed. After typing 1 characters, the system shall show the street suggestions based on the Places API (Place Autocomplete).
Suggestions are displayed by a drop-down list.
1. When there are no suggestions the user should be able to type the full name of the city.
2
Вулиця
Editable text field
Only alphabetic characters and special characters “-” (hyphen), " " (space) and " ' " (apostrophe) are allowed.From minimum 1 to maximum 120 characters are allowed. After typing 1 characters, the system shall show the street suggestions based on the Places API (Place Autocomplete).
Suggestions are displayed by a drop-down list.
1. When there are no suggestions the user should be able to type the full name of the street.
3
Район
Drop down list
This field can be auto-filled if the admin finds the street name in Kyiv in Google Maps. If not, the list of all 10 Kyiv districts shall be displayed in the dropdown: Голосіївський, Дарницький, Деснянський, Дніпровський, Оболонський, Печерський, Подільський, Святошинський, Солом'янський, Шевченківський.
If the user select location in “Населений пункт” field for Kyivs'ka oblast, 6 districts of Kyiv region should be displayed in the dropdown for selection: Бориспільський, Броварський, Бучанський, Вишгородський, Обухівський, Фастівський.
When the user enters invalid data the input field should be highlighted in red and the error message should be displayed under the field with incorrect data:
a. for ‘Місто’ and ‘Вулиця’ fields:
EN - “Only letters, numbers and hyphen, space, apostrophe, dot, comma are allowed”
UA - “Дозволені лише букви, цифри та дефіс, пробіл, апостроф, крапка, кома”
b. for ‘Будинок’ field:
EN - “Only letters, numbers and hyphen, slash are allowed”
UA - “Дозволені лише букви, цифри та дефіс, коса риска”
c. for ‘Корпус’ field:
EN - “Only letters and numbers are allowed”
UA - ”Дозволені лише букви та цифри”
d. for ‘Під’їзд’ field:
EN - “Only numbers are allowed”
UA - “Дозволені лише цифри”
Related to:
Suggestions are displayed by a drop-down list.
1. When there are no suggestions the user should be able to type the full name of the city.
Suggestions are displayed by a drop-down list.
1. When there are no suggestions the user should be able to type the full name of the street.
If the user select location in “Населений пункт” field for Kyivs'ka oblast, 6 districts of Kyiv region should be displayed in the dropdown for selection: Бориспільський, Броварський, Бучанський, Вишгородський, Обухівський, Фастівський.
a. for ‘Місто’ and ‘Вулиця’ fields: EN - “Only letters, numbers and hyphen, space, apostrophe, dot, comma are allowed” UA - “Дозволені лише букви, цифри та дефіс, пробіл, апостроф, крапка, кома”
b. for ‘Будинок’ field: EN - “Only letters, numbers and hyphen, slash are allowed” UA - “Дозволені лише букви, цифри та дефіс, коса риска”
c. for ‘Корпус’ field:
EN - “Only letters and numbers are allowed”
UA - ”Дозволені лише букви та цифри”
d. for ‘Під’їзд’ field:
EN - “Only numbers are allowed” UA - “Дозволені лише цифри” Related to:
User Story
2199, #3811, #2533
Epic: UBS courier #2195