Skip to content

Commit

Permalink
release commit - apps/budgeting: remove blueprint for 3-phase budgeti…
Browse files Browse the repository at this point in the history
…ng, remove voting token form, remove react proposal list
  • Loading branch information
fuzzylogic2000 committed Mar 31, 2022
1 parent ce8afaa commit 1f1b5e0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 43 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends extends %}
{% load i18n discovery_tags static maps_tags react_proposals widget_tweaks rules %}
{% load i18n discovery_tags static maps_tags widget_tweaks rules %}

{% block extra_js %}
<script type="text/javascript" src="{% static 'a4maps_display_points.js' %}"></script>
Expand All @@ -19,27 +19,6 @@
{% trans 'Submit proposal' %}
</a>
{% endif %}
{% comment %}
FIXME: differentiating 2 and 3 phase buergerhaushalt by just counting the phases
should be changed once we have module types
{% endcomment %}
{% if module.phases.count == 3 %}
{% has_perm 'meinberlin_budgeting.add_vote' request.user module as vote_allowed %}
{% if vote_allowed %}
{% if not valid_token_present %}
<form class="" action="{{ request.path }}" method="post">
<div class="form-group">
{% csrf_token %}
<div class="widget--{{ token_form.token|widget_type }}">
{{ token_form.token }}
<button type="submit" class="btn">{% trans 'Enter code' %}</button>
</div>
{{ token_form.token.errors }}
</div>
</form>
{% endif %}
{% endif %}
{% endif %}
{% endblock %}

{% block phase_content %}
Expand All @@ -61,11 +40,8 @@
{% map_display_points object_list module.settings_instance.polygon %}
</div>
{% else %}
{% react_proposals view.module %}

<div class="l-wrapper u-spacer-bottom u-spacer-top-double">
<div class="l-center-8">
<div>This is the old list to compare the new list above to. And we will only deploy the old list when we do deploy.</div>
{% include "meinberlin_contrib/includes/map_filter_and_sort.html" with filter=view.filter mode=view.mode %}
</div>
</div>
Expand Down
18 changes: 0 additions & 18 deletions meinberlin/apps/dashboard/blueprints.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,24 +94,6 @@
image='images/participatory-budgeting-2.svg',
settings_model=('a4maps', 'AreaSettings'),
)),
('participatory-budgeting-3-phases',
ProjectBlueprint(
title=_('Participatory budgeting (3 phase)'),
description=_(
'In a first phase, participants can submit their own proposals, '
'mark them on a map, and add a budget. The proposals of others '
'can be discussed and in a second phase rated (pro/contra). In '
'the third phase, participants vote on the shortlisted proposals.'
),
content=[
budgeting_phases.CollectPhase(),
budgeting_phases.RatingPhase(),
budgeting_phases.VotingPhase(),
],
# The icon has to be updated:
image='images/participatory-budgeting-3.svg',
settings_model=('a4maps', 'AreaSettings'),
)),
('kiezkasse',
ProjectBlueprint(
title=_('Kiezkasse'),
Expand Down

0 comments on commit 1f1b5e0

Please sign in to comment.