Done
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee
Nikodem Graczewski
Nikodem GraczewskiReporter
Sam Im
Sam Im(Deactivated)Labels
Story Points
5
Original estimate
2d
Time tracking
Components
Sprint
None
Fix versions
Priority
Time Assistant
Time Assistant
Created March 24, 2017 at 1:10 AM
Updated August 23, 2017 at 6:50 PM
Resolved April 7, 2017 at 12:01 PM
Admin needs to create new role from template
As an admin I need to create a new role from a template so that I can create specific roles for users as needed.
Acceptance Criteria:
When admin clicks Administration > Roles, there is a new button called Create Role.
When admin clicks Create Role button, it brings them to a new page that lists the available role templates they can use to create a role with the required permissions. The roles that should be available are Administration and Requisition. The other roles will be created in future stories. (see mockup)
Admin can only select one role template (role type) to create. For example, if they cannot multi-select Requisition and Administration.
When admin clicks Administration button, it will bring them to the modal for Administration Role. When admin clicks Requisition button, it will bring them to the modal for Requisition Role.
Administration Role template matches mockup (excluding breadcrumbs)
Requisition Role template matches mockup (excluding breadcrumbs)
When admin clicks Save Changes, validation is made that at least one permission is selected for the new role, and at least one character exists for the Role Name and Role Description.
When admin clicks Save Changes, a notification will appear saying "Role was created successfully".
The new role and details are saved to the backend.
When admin clicks Save Changes and the validation fails, there is an error message displayed in the field where data is missing. Admin cannot save changes until fields are updated.
When admin saves changes successfully, they are redirected to the Administration > Roles page. The Roles table is updated to reflect the new role creation.