Closed raghavio closed 8 years ago
this should not be part of core cleansweep app. There should be a separate plugin and repo for that.
Do we need a polling booth or a village there? not everyone knows their polling booth. Having village as a text filed might be better.
On Fri, Jan 15, 2016 at 5:29 AM, Raghav Sharma notifications@github.com wrote:
@charanjeetaap https://github.com/charanjeetaap had an urgent requirement for a door2door form.
Created a
- Table
- Form (Head of the family, Phone number, Number of voters in family and Pooling booth)
- Plugin
Screenshots [image: screen shot 2016-01-15 at 05 20 39] https://cloud.githubusercontent.com/assets/4872139/12341517/43bcf704-bb48-11e5-8a71-f6ecc2ca3162.png
[image: screen shot 2016-01-15 at 05 19 25]
https://cloud.githubusercontent.com/assets/4872139/12341518/43c2c4f4-bb48-11e5-9cfb-ede0418c2860.png
You can view, comment on, or merge this pull request online at:
https://github.com/AamAadmiParty/cleansweep/pull/153 Commit Summary
- Added a plugin for door2door. We have a urgent requirement to create a form.
- Added the index template. Defined a view permission. And a subnav entry.
- Added a table to store door 2 door entries.
- Added a form for door2door. Contains name, phone, booth and number of voters in family.
- Added a create entry form template and a view function which handles it.
- Added a method to get door2door entries for a place.
- Showing door2door data in a table.
- Added a find method in Door2DoorEntry.
- Added a delete button and a function in view to handle deletion of an entry.
- Added a method to get count of door 2 door entries in that place
- Showing door2door count in subnav and summary
File Changes
- M cleansweep/default_settings.py https://github.com/AamAadmiParty/cleansweep/pull/153/files#diff-0 (1)
- M cleansweep/forms.py https://github.com/AamAadmiParty/cleansweep/pull/153/files#diff-1 (49)
- M cleansweep/models.py https://github.com/AamAadmiParty/cleansweep/pull/153/files#diff-2 (49)
- A cleansweep/plugins/door2door/init.py https://github.com/AamAadmiParty/cleansweep/pull/153/files#diff-3 (1)
- A cleansweep/plugins/door2door/templates/door2door.html https://github.com/AamAadmiParty/cleansweep/pull/153/files#diff-4 (45)
- A cleansweep/plugins/door2door/templates/entry_door2door.html https://github.com/AamAadmiParty/cleansweep/pull/153/files#diff-5 (51)
- A cleansweep/plugins/door2door/views.py https://github.com/AamAadmiParty/cleansweep/pull/153/files#diff-6 (57)
- M cleansweep/templates/place.html https://github.com/AamAadmiParty/cleansweep/pull/153/files#diff-7 (5)
- M cleansweep/templates/widgets/Summary.html https://github.com/AamAadmiParty/cleansweep/pull/153/files#diff-8 (3)
- A migrations/versions/ca21d44bd9f_.py https://github.com/AamAadmiParty/cleansweep/pull/153/files#diff-9 (38)
Patch Links:
- https://github.com/AamAadmiParty/cleansweep/pull/153.patch
- https://github.com/AamAadmiParty/cleansweep/pull/153.diff
— Reply to this email directly or view it on GitHub https://github.com/AamAadmiParty/cleansweep/pull/153.
Could you please add that to cleansweep-extras repo?
@RaghavPro I'll take care of moving it to separate repo. Please replace the booth filed with a text field "Village Name / Town Name".
Sorry, pushed by mistake. Added town field. Still need to remove booth field.
@charanjeetaap had an urgent requirement for a door2door form.
Created a
Screenshots![screen shot 2016-01-15 at 05 20 39](https://cloud.githubusercontent.com/assets/4872139/12341517/43bcf704-bb48-11e5-8a71-f6ecc2ca3162.png)