Customizing parameters

18 views
Skip to first unread message

victo...@gmail.com

unread,
Jun 22, 2015, 9:30:06 PM6/22/15
to democra...@googlegroups.com
Hi there,

If I'm running my own instance of Democracy OS, is it possible to adjust the following (and where can I find these files?):

Adding strongly agree, strongly disagree to the standard Yay or nay (can change logic around this)

Adding postal code/address and other information to sign up for validation purposes.

Thanks,
Victor

Róbert Fono

unread,
Jun 23, 2015, 5:11:05 AM6/23/15
to democra...@googlegroups.com, victo...@gmail.com
Hi,

First of all you'd need to modify the Vote model (lib/models/law.js).
Then you'd need several changes in the proposal-options module (lib/proposal-options).

Namely you'd need new templates for the alert fter the vote, you'd need to modify template.jade to add the new buttons and show the results in the chart after the vote, and make a bunch of modifications in proposal-options.js (lib/proposal-options/proposal-options.js) to push the new vote values to the dband expose them to the template.

There may be some more minor modifications, but these are the main ones.

Cheers,
Robert

Guido Vilariño

unread,
Jun 24, 2015, 8:18:24 AM6/24/15
to Róbert Fono, democra...@googlegroups.com, Victor Gypsy
Exactly a Róbert says :)

Also, custom signup data should be updated in signup forms and user model+db-api as well.

--
You received this message because you are subscribed to the Google Groups "DemocracyOS/app" group.
To unsubscribe from this group and stop receiving emails from it, send an email to democracyos-a...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages