code4romania / monitorizare-vot-ong

NGO dashboard for viewing answers submitted by certified observers
https://votemonitor.org
Mozilla Public License 2.0
16 stars 44 forks source link

[Counties] Add or edit counties #216

Open aniri opened 4 years ago

aniri commented 4 years ago

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

Capture

Counties data model:

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.

Botosio commented 3 years ago

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

Botosio commented 3 years ago

@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.

surdu commented 2 years ago

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

Botosio commented 2 years ago

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

surdu commented 2 years ago

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

Botosio commented 2 years ago

Oh ok.