Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRUD employees #2780

Closed
YanaTarasiuk opened this issue May 17, 2021 · 0 comments
Closed

CRUD employees #2780

YanaTarasiuk opened this issue May 17, 2021 · 0 comments

Comments

@YanaTarasiuk
Copy link

YanaTarasiuk commented May 17, 2021

As an admin, I want to be able to add data on the role page, so that I could add the employees.

Business rules:

  1. An employee with a particular role is responsible only for his/her orders and a new employee with the same role is responsible for orders, which he/she manages.

Precondition: the Admin is on the role page

Acceptance criteria

  1. When the “Додати працівника” button is tapped, the new employee form is opened (see mockup) and it has:
    a) the attributes: “Ім’я”, “Прізвище”, “Посада”, “Телефон”, "Email", “Тарифи”, "Фото" should have the following input fields and a dwopdown menu described in the table below:
Field title Field type Prefilled text Condition Validation
Ім’я Input field n/a Mandatory Letters should be whether from Cyrillic or Latin alphabets, Capital or lower-case, one special symbol "-" between letters, space are allowed, size should be from 1 to 30 characters.
Прізвище Input field n/a Mandatory Letters should be whether from Cyrillic or Latin alphabets, Capital or lower-case, one special symbol "-" between letters, space are allowed, size should be from 1 to 30 characters.
Номер телефону Input field Autofill +380. It shall be editable. Mandatory Only numeric characters are allowed. When the user starts typing, the placeholder “+380” stays in the field, so the user needs to type the rest of the telephone number (for example, the user shall type only 96 123 45 67) and only type the numbers starts with "39","50","63","66","67","68","91", "92","93","94","95","96","97","98" as Ukrainian mobile operators have.
Email input field n/a Non-Mandatory Email text field(see #4277 )
Роль / Посада Checkboxes n/a Non-Mandatory One/a few of the checkboxes are selected.
Тарифи Checkboxes n/a Non-Mandatory One/a few of the checkboxes are selected.
Фото Upload image Перетягніть зображення, або завантажте з пристрою Non-Mandatory The limit is 10 MB with .jpg/.png format,only one image should be uploaded.

b) “Скасувати” button. When tapped, the role page is opened and the changes are not saved.

c) “Додати” button. When tapped, the changes are saved when all the mandatory fields are populated. When at least one mandatory field is not populated and “Додати” is tapped, the system shall display the warning message under the field: “Це поле є обов'язковим для заповнення”. Then the button “Додати” in the bottom of the page remains disabled until the user fulfils every mandatory field. When changes are saved, the new employee data is saved and depicted on the role page.

  1. About the function Deactivate, we can follow this link: Deactivate employee #4615
  2. About the function Edit, we can follow this link: Edit employee data #4616

Mockup:

Epic
UBS courier #2195

@NewArtMask NewArtMask self-assigned this Nov 18, 2021
@NewArtMask NewArtMask added this to the UI S16.3 milestone Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants