- Add dotenv loading to Django settings - Update CI workflow to use correct environment variables - Set POSTGRES_* variables instead of DATABASE_URL - Add environment variables to all Django management commands - Fixes CI test failures due to database connection issues
75 lines
3.1 KiB
HTML
75 lines
3.1 KiB
HTML
{% extends 'base.html' %}
|
|
{% block title %}{{ title }}{% endblock %}
|
|
{% block content %}
|
|
<nav aria-label="breadcrumb">
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item"><a href="{% url 'stiftung:dashboard' %}">Dashboard</a></li>
|
|
<li class="breadcrumb-item"><a href="{% url 'stiftung:unterstuetzungen_all' %}">Unterstützungen</a></li>
|
|
<li class="breadcrumb-item"><a href="{% url 'stiftung:unterstuetzung_detail' pk=unterstuetzung.pk %}">Unterstützung Details</a></li>
|
|
<li class="breadcrumb-item active" aria-current="page">Als bezahlt markieren</li>
|
|
</ol>
|
|
</nav>
|
|
|
|
<div class="row">
|
|
<div class="col-lg-8">
|
|
<div class="card shadow">
|
|
<div class="card-header bg-success text-white">
|
|
<h5 class="mb-0">{{ title }}</h5>
|
|
</div>
|
|
<div class="card-body">
|
|
<!-- Payment Summary -->
|
|
<div class="alert alert-info mb-4">
|
|
<h6><i class="fas fa-info-circle me-2"></i>Zahlungsdetails</h6>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<strong>Destinatär:</strong> {{ unterstuetzung.destinataer.get_full_name }}<br>
|
|
<strong>Betrag:</strong> €{{ unterstuetzung.betrag }}<br>
|
|
<strong>Fällig am:</strong> {{ unterstuetzung.faellig_am }}
|
|
</div>
|
|
<div class="col-md-6">
|
|
<strong>IBAN:</strong> {{ unterstuetzung.empfaenger_iban|default:"Nicht angegeben" }}<br>
|
|
<strong>Verwendungszweck:</strong> {{ unterstuetzung.verwendungszweck|default:"Nicht angegeben" }}<br>
|
|
<strong>Status:</strong> <span class="badge bg-warning">{{ unterstuetzung.get_status_display }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
|
|
<div class="row">
|
|
<div class="col-md-6 mb-3">
|
|
<label class="form-label" for="{{ form.ausgezahlt_am.id_for_label }}">{{ form.ausgezahlt_am.label }}</label>
|
|
{{ form.ausgezahlt_am }}
|
|
{% if form.ausgezahlt_am.errors %}
|
|
<div class="text-danger">{{ form.ausgezahlt_am.errors }}</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label class="form-label" for="{{ form.bemerkung.id_for_label }}">{{ form.bemerkung.label }}</label>
|
|
{{ form.bemerkung }}
|
|
{% if form.bemerkung.help_text %}
|
|
<div class="form-text">{{ form.bemerkung.help_text }}</div>
|
|
{% endif %}
|
|
{% if form.bemerkung.errors %}
|
|
<div class="text-danger">{{ form.bemerkung.errors }}</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<div class="d-flex justify-content-between">
|
|
<a href="{% url 'stiftung:unterstuetzung_detail' pk=unterstuetzung.pk %}" class="btn btn-secondary">
|
|
<i class="fas fa-arrow-left me-2"></i>Zurück
|
|
</a>
|
|
<button type="submit" class="btn btn-success">
|
|
<i class="fas fa-check me-2"></i>Als bezahlt markieren
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|