~homeworkprod/byceps-bungalows

dc3a0c3f2ed8d1dc4963f89e0e503a5f3d03a512 — Jochen Kupperschmidt 3 months ago 87afe5f
Clarify parameter name
M byceps/blueprints/admin/bungalow/templates/admin/bungalow/index_for_party.html => byceps/blueprints/admin/bungalow/templates/admin/bungalow/index_for_party.html +1 -1
@@ 123,7 123,7 @@
              <li><a class="dropdown-item" href="{{ url_for('.occupancy_move_form', occupancy_id=bungalow.occupancy.id) }}">{{ render_icon('arrow-right') }} Belegung verschieben</a></li>
            {%- else %}
              <li class="dropdown-divider"></li>
              <li><a class="dropdown-item" data-action="offer-delete" href="{{ url_for('.offer_delete', offer_id=bungalow.id) }}">{{ render_icon('delete') }} Nicht mehr anbieten</a></li>
              <li><a class="dropdown-item" data-action="offer-delete" href="{{ url_for('.offer_delete', bungalow_id=bungalow.id) }}">{{ render_icon('delete') }} Nicht mehr anbieten</a></li>
            {%- endif %}
            </ol>
          </div>

M byceps/blueprints/admin/bungalow/templates/admin/bungalow/offer_view.html => byceps/blueprints/admin/bungalow/templates/admin/bungalow/offer_view.html +1 -1
@@ 48,7 48,7 @@
            <li><a class="dropdown-item" href="{{ url_for('.occupancy_move_form', occupancy_id=occupancy.id) }}">{{ render_icon('arrow-right') }} Belegung verschieben</a></li>
          {%- else %}
            <li class="dropdown-divider"></li>
            <li><a class="dropdown-item" data-action="offer-delete" href="{{ url_for('.offer_delete', offer_id=bungalow.id) }}">{{ render_icon('delete') }} Nicht mehr anbieten</a></li>
            <li><a class="dropdown-item" data-action="offer-delete" href="{{ url_for('.offer_delete', bungalow_id=bungalow.id) }}">{{ render_icon('delete') }} Nicht mehr anbieten</a></li>
          {%- endif %}
          </ol>
        </div>

M byceps/blueprints/admin/bungalow/views.py => byceps/blueprints/admin/bungalow/views.py +3 -3
@@ 427,13 427,13 @@ def _get_buildings_for_party(party: Party) -> list[BungalowBuilding]:
    ]


@blueprint.post('/offers/<offer_id>')
@blueprint.post('/offers/<bungalow_id>')
@permission_required('bungalow_offer.delete')
@respond_no_content
def offer_delete(offer_id):
def offer_delete(bungalow_id):
    """Remove the bungalow offer."""
    try:
        bungalow_offer_service.delete_offer(offer_id)
        bungalow_offer_service.delete_offer(bungalow_id)
    except ValueError as e:
        abort(400, str(e))