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

Ks 2022 09 add module types #4449

Merged
merged 3 commits into from
Sep 9, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions meinberlin/apps/bplan/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class BplanProjectCreateView(ExternalProjectCreateView):
],
image='',
settings_model=None,
type='BP'
)


Expand Down
13 changes: 13 additions & 0 deletions meinberlin/apps/dashboard/blueprints.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
],
image='images/brainstorming.svg',
settings_model=None,
type='BS',
)),
('map-brainstorming',
ProjectBlueprint(
Expand All @@ -37,6 +38,7 @@
],
image='images/map-brainstorming.svg',
settings_model=('a4maps', 'AreaSettings'),
type='MBS',
)),
('idea-collection',
ProjectBlueprint(
Expand All @@ -50,6 +52,7 @@
],
image='images/agenda-setting.svg',
settings_model=None,
type='IC',
)),
('map-idea-collection',
ProjectBlueprint(
Expand All @@ -64,6 +67,7 @@
],
image='images/map-idea-collection.svg',
settings_model=('a4maps', 'AreaSettings'),
type='MIC',
)),
('participatory-budgeting',
ProjectBlueprint(
Expand All @@ -78,6 +82,7 @@
],
image='images/participatory-budgeting-1.svg',
settings_model=('a4maps', 'AreaSettings'),
type='PB',
)),
('participatory-budgeting-2-phases',
ProjectBlueprint(
Expand All @@ -93,6 +98,7 @@
],
image='images/participatory-budgeting-2.svg',
settings_model=('a4maps', 'AreaSettings'),
type='PB2',
)),
('participatory-budgeting-3-phases',
ProjectBlueprint(
Expand All @@ -111,6 +117,7 @@
# The icon has to be updated:
image='images/participatory-budgeting-3.svg',
settings_model=('a4maps', 'AreaSettings'),
type='PB3',
)),
('kiezkasse',
ProjectBlueprint(
Expand All @@ -126,6 +133,7 @@
],
image='images/kiezkasse.svg',
settings_model=('a4maps', 'AreaSettings'),
type='KK',
)),
('prioritization',
ProjectBlueprint(
Expand All @@ -139,6 +147,7 @@
],
image='images/priorization.svg',
settings_model=None,
type='TP',
)),
('map-topic-prioritization',
ProjectBlueprint(
Expand All @@ -153,6 +162,7 @@
],
image='images/place-priotization.svg',
settings_model=('a4maps', 'AreaSettings'),
type='MTP',
)),
('text-review',
ProjectBlueprint(
Expand All @@ -166,6 +176,7 @@
],
image='images/text-review.svg',
settings_model=None,
type='TR',
)),
('poll',
ProjectBlueprint(
Expand All @@ -179,6 +190,7 @@
],
image='images/poll.svg',
settings_model=None,
type='PO',
)),
('interactive-event',
ProjectBlueprint(
Expand All @@ -193,5 +205,6 @@
],
image='images/interactive-event.svg',
settings_model=None,
type='IE',
)),
]
1 change: 1 addition & 0 deletions meinberlin/apps/dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def post(self, request, *args, **kwargs):
weight=weight,
project=project,
is_draft=True,
blueprint_type=self.blueprint.type,
)
module.save()
signals.module_created.send(sender=None,
Expand Down
1 change: 1 addition & 0 deletions meinberlin/apps/extprojects/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class ExternalProjectCreateView(ProjectCreateView):
],
image='',
settings_model=None,
type='EP',
)


Expand Down
1 change: 1 addition & 0 deletions meinberlin/apps/projectcontainers/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class ContainerCreateView(ProjectCreateView):
content=[],
image='',
settings_model=None,
type='PC',
)


Expand Down
19 changes: 19 additions & 0 deletions meinberlin/config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,25 @@
('TRA', _('Traffic'))
)

A4_BLUEPRINT_TYPES = [
('BS', 'brainstorming'),
('MBS', 'map brainstorming'),
('IC', 'idea collection'),
('MIC', 'map idea collection'),
('PB', 'participatory budgeting (1 phase)'),
('PB2', 'participatory budgeting (2 phase)'),
('PB3', 'participatory budgeting (3 phase)'),
('KK', 'kiezkasse'),
('TP', 'topic prioritization'),
('MTP', 'map topic prioritization'),
('TR', 'text review'),
('PO', 'poll'),
('IE', 'interactive event'),
('EP', 'external project'),
('BP', 'bebauungsplan'),
('PC', 'project container'),
fuzzylogic2000 marked this conversation as resolved.
Show resolved Hide resolved
]

A4_MAP_ATTRIBUTION = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors'
A4_MAP_BOUNDING_BOX = ([[52.3517, 13.8229], [52.6839, 12.9543]])

Expand Down