Rework Summary form approval patterns to support the Location form as well.
Screenshots
Testing Instructions
Update your user roles to include Site Admin via the database console.
Go to the /sites table and select a site.
In the Location form, make and edit and press save.
The site will refresh and your edits will be saved.
Update your user roles so that they do not includeSite Admin or Administrator via the database console. Something like Site Viewer would probably be best.
Go to the /sites table and select a site.
In the Location form, make and edit (or two) and press save.
The page will refresh and all Location fields will become readonly. The save button on the Location form will be disabled with an appropriate tooltip.
Make yourself an Site Admin again and go to the /sites-change-requests table.
The new change request will be at the top of the list. Click on it to review.
Note the various features:
"accept/reject" toggle buttons
accept/reject all
save button is locked until all changes are approved/rejected
Reject and accept some changes and press Save.
Go back to the /sites table and check that you can now edit the site and that the changes have been applied or rejected correctly.
Fixes https://github.com/icefoganalytics/yhsi/issues/21
User Story
See https://github.com/icefoganalytics/yhsi/issues/3 As an edit level user I can edit the /sites Location form and it will create a site change request for admin approval.
Implementation
Rework Summary form approval patterns to support the Location form as well.
Screenshots
Testing Instructions
Site Admin
via the database console.Site Admin
orAdministrator
via the database console. Something likeSite Viewer
would probably be best.Site Admin
again and go to the /sites-change-requests table.