Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Counties] Import / export counties #204

Open
2 tasks
aniri opened this issue Jan 12, 2020 · 1 comment
Open
2 tasks

[Counties] Import / export counties #204

aniri opened this issue Jan 12, 2020 · 1 comment

Comments

@aniri
Copy link
Member

aniri commented Jan 12, 2020

Add the possibility of importing & exporting the counties list from admin.

Option only allowed for the master admin account (an ngo admin belonging to an ngo that has the organizer flag set to true)

Backend part was implemented in code4romania/monitorizare-vot#253.

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

  • add the button for exporting the current counties list, the button should be available on top of the counties list; use the endpoint GET api/v1/county/csvFormat - downloads existing county info in csv format
  • add the button for importing the counties list, the button should be available on top of the counties list; use the endpoint POST api/v1/county/import - for importing the csv file

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 aniri added this to To do - NGO Platform in Monitorizare vot - API and Web Admin Jan 12, 2020
@aniri aniri changed the title [Not ready for dev] Counties management Counties management Feb 18, 2020
@aniri
Copy link
Member Author

aniri commented Feb 18, 2020

Here's an example of the new UI for this page :)

counties

@aniri aniri changed the title Counties management [Counties] Import counties Feb 22, 2020
@aniri aniri changed the title [Counties] Import counties [Counties] Import / export counties Feb 22, 2020
@aniri aniri removed the autumn-2020 label Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Monitorizare vot - API and Web Admin
  
To do - NGO Platform
Development

No branches or pull requests

1 participant