funkcja_niekupione #2

Merged
gru merged 14 commits from funkcja_niekupione into master 2025-07-18 22:07:29 +02:00
Showing only changes of commit 45290a6147 - Show all commits

View File

@@ -1,11 +1,12 @@
{% extends 'base.html' %}
{% block content %}
<h2>Edytuj listę: {{ list.title }}</h2>
<h2>Edytuj listę: <strong>{{ list.title }}</strong></h2>
<form method="post">
<div class="mb-3">
<label for="title" class="form-label">Nazwa listy</label>
<input type="text" name="title" id="title" class="form-control" value="{{ list.title }}" required>
<input type="text" name="title" id="title" class="form-control bg-dark text-white border-secondary rounded"
value="{{ list.title }}" required>
</div>
<div class="form-check mb-3">
@@ -23,13 +24,13 @@
<div class="row mb-3">
<div class="col-md-6">
<label for="expires_date" class="form-label">Data wygaśnięcia</label>
<input type="date" class="form-control rounded" id="expires_date" name="expires_date"
value="{{ list.expires_at.strftime('%Y-%m-%d') if list.expires_at else '' }}">
<input type="date" class="form-control bg-dark text-white border-secondary rounded" id="expires_date"
name="expires_date" value="{{ list.expires_at.strftime('%Y-%m-%d') if list.expires_at else '' }}">
</div>
<div class="col-md-6">
<label for="expires_time" class="form-label">Godzina wygaśnięcia</label>
<input type="time" class="form-control rounded" id="expires_time" name="expires_time"
value="{{ list.expires_at.strftime('%H:%M') if list.expires_at else '' }}">
<input type="time" class="form-control bg-dark text-white border-secondary rounded" id="expires_time"
name="expires_time" value="{{ list.expires_at.strftime('%H:%M') if list.expires_at else '' }}">
</div>
</div>