monitorizare-vot-ong
monitorizare-vot-ong copied to clipboard
[Polling stations] View / Edit polling station details
As an admin user I want to be able to edit a Polling station in the application.
Backend implemented in https://github.com/code4romania/monitorizare-vot/issues/255 Pending backend implementation of https://github.com/code4romania/monitorizare-vot/issues/266
UI available here: https://www.figma.com/file/61NHR7fwmV1Dsv4Pb6F8T7/code4ro_mv_user-management_2018.04.21-(Copy)?node-id=754%3A0
Depends on https://github.com/code4romania/monitorizare-vot-ong/issues/222
When clicking on a polling station or selecting the edit option for a polling station from the list, a separate page should open that displays the polling station info.
Permissions:
- master admin (organiser) can view and also edit polling station details
- ngo admin (ngoadmin) can only view the polling station details
Needed functionalities:
- show the selected polling station info
GET api/v2/polling-station/{id}
- edit polling station info
POST api/v2/polling-station/{id}
Polling stations data model:
- id, address, coordinates, adminTerritoryCode, IdCounty, TerritoryCode, Number
Please use bootstrap classes as much as possible and avoid adding custom css styles to keep the codebase clean & consistent. The new UI should be as similar as possible to the one in figma, not pixel perfect.
Also, make sure all texts are extracted in translation files.