digidemlab / decidim-module-budgets_paper_ballots Goto Github PK
View Code? Open in Web Editor NEWA module that enables admins to import paper ballots
License: GNU Affero General Public License v3.0
A module that enables admins to import paper ballots
License: GNU Affero General Public License v3.0
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.
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.
This line should be changed.
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!
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
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.