GithubHelp home page GithubHelp logo

digidemlab / decidim-module-budgets_paper_ballots Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 3.0 1.36 MB

A module that enables admins to import paper ballots

License: GNU Affero General Public License v3.0

Ruby 84.31% HTML 15.69%

decidim-module-budgets_paper_ballots's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

decidim-module-budgets_paper_ballots's Issues

Display the number of paper and digital ballots in the frontend and make it clearer in the backend

Right now, users can only see the aggregate number of votes in the frontend and it's not super clear in the backend. To avoid adding columns, I used X (Y/Z) with X the total, Y digital and Z paper votes.

In the backend, an elegant solution would be to add a tooltip, only visible when hovering. Although that wouldn't work on mobile.

In the frontend, the breakdown could be added on a project's page, under the total amount.
image

Add a view with a historical list of imports

Right now, the history isn't available (except in the database). For transparency purpose, it would be good to display the history of imported ballots, at least in the backend.

Import button doesn't appear

In my original PR, I used the import classes created by @lahdeero to create a standard import form for paper ballot results.

I declare a new type of import in the component's manifest and I try to display a button to access the import view using this, the same code used for proposal answer import. This works perfectly in the PR, but it doesn't when I isolate the logic in this module. The button doesn't appear and the debugger tells me it's because in my component's manifest, import_manifests=[].

The module only contains the modified files from the PR so it's gross monkey-patching, no other changes.

@lahdeero, do you have any idea why my import manifest is empty despite monkey-patching the component.rb file?

Thanks in advance!

Translation setup

I would be great to have the possibility to translate this module in different languages.

As the community standard leads to Crowdin, it'll be great to use it as well

Funding by
Open Source Politics

Add the possibility to import answers of paper ballot

As an admin, I would like to have the possibility not only to indicate how many paper ballots were filled but in fact import the real answers of the respondants.

As instance, let's say for the sake of simplicity, that we have a form containing a single option question, I would have a CSV file containing an id column and a column containing the answer to this question for each respondant.

This issue seems very hard to implement to me, but on the other side it could greetly benefit to the community, since a lot of cities/organisations use hybrid survey system (online and with persons in the street to increase the participation rate)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.