44 lines
2.0 KiB
HTML
44 lines
2.0 KiB
HTML
{% extends 'base.html' %}
|
|
{% block title %}Edytuj zbiórkę{% endblock %}
|
|
{% block content %}
|
|
<h1>Edytuj zbiórkę</h1>
|
|
<form method="post">
|
|
<!-- Pozostałe pola formularza -->
|
|
<div class="mb-3">
|
|
<label for="nazwa" class="form-label">Nazwa zbiórki</label>
|
|
<input type="text" class="form-control" id="nazwa" name="nazwa" value="{{ zbiorka.nazwa }}" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="opis" class="form-label">Opis</label>
|
|
<textarea class="form-control" id="opis" name="opis" rows="6" required>{{ zbiorka.opis }}</textarea>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="numer_konta" class="form-label">Numer konta</label>
|
|
<input type="text" class="form-control" id="numer_konta" name="numer_konta" value="{{ zbiorka.numer_konta }}" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="numer_telefonu_blik" class="form-label">Numer telefonu BLIK</label>
|
|
<input type="text" class="form-control" id="numer_telefonu_blik" name="numer_telefonu_blik" value="{{ zbiorka.numer_telefonu_blik }}" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="cel" class="form-label">Cel zbiórki (PLN)</label>
|
|
<input type="number" step="0.01" class="form-control" id="cel" name="cel" value="{{ zbiorka.cel }}" required>
|
|
</div>
|
|
<div class="form-check mb-3">
|
|
<input type="checkbox" class="form-check-input" id="ukryj_kwote" name="ukryj_kwote" {% if zbiorka.ukryj_kwote %}checked{% endif %}>
|
|
<label class="form-check-label" for="ukryj_kwote">Ukryj kwoty (cel i stan)</label>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Zaktualizuj zbiórkę</button>
|
|
</form>
|
|
|
|
<!-- Inicjalizacja edytora Markdown (SimpleMDE) -->
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
|
|
<script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>
|
|
<script>
|
|
var simplemde = new SimpleMDE({
|
|
element: document.getElementById("opis"),
|
|
forceSync: true
|
|
});
|
|
</script>
|
|
{% endblock %}
|