monitorizare-vot-ong icon indicating copy to clipboard operation
monitorizare-vot-ong copied to clipboard

[Counties] Add or edit counties

Open aniri opened this issue 5 years ago • 6 comments

Add the option of adding new counties and editing of existing ones.

The add option should only be available for master admins (organizer flag set to true).

The edit option should only be available for master admins (organizer flag set to true). Other admins will only have a view option that opens the edit county details page in view mode.

Backend part was implemented in https://github.com/code4romania/monitorizare-vot/issues/254 . The endpoint for editing counties is POST api/v1/county/{id}

UI available here: https://www.figma.com/file/61NHR7fwmV1Dsv4Pb6F8T7/code4ro_mv_user-management_2018.04.21-(Copy)?node-id=754%3A0

  • [ ] display the add county button above the counties list
  • [ ] add a new page for adding / editing county details

Capture

  • [ ] add the available actions button&dropdown in the counties list - available actions are edit, delete and set as first

Counties data model:

  • id, code, name, numberOfPollingStations, Diaspora flag, Order

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.

aniri avatar Feb 22 '20 17:02 aniri

Oh since I am doing the list view, you might as well add me to this too.

Botosio avatar Oct 19 '21 19:10 Botosio

@aniri sorry I missed hacktoberfest on this one however, I was trying to finish it up today. I'll let you know if I run into any issues.

Botosio avatar Nov 02 '21 11:11 Botosio

Is this up for grabs, or is @Botosio still working on it ?

surdu avatar Oct 03 '22 19:10 surdu

Oh sorry this was assigned last year and I must not have finished it. Please take it for this year Hacktoberfest!

Botosio avatar Oct 03 '22 20:10 Botosio

Well, crap ... Only now I realised this project is written in Angular :(

Sorry, but I'm going to drop this issue @aniri

If you want it, it's all yours @Botosio

surdu avatar Oct 16 '22 20:10 surdu

Oh ok.

Botosio avatar Oct 16 '22 21:10 Botosio