day of hard work with xkirsch #2

This commit is contained in:
2024-12-10 23:02:58 +01:00
parent 6c55c1701c
commit 72fb73cb5f
18 changed files with 841 additions and 64 deletions

View File

@@ -1,10 +1,10 @@
<!DOCTYPE html>
<html lang="cs">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Editovat Objednávku</title>
<link rel="icon" href="{{url_for('static', filename='img/logo.webp')}}" type="image/x-icon">
<link rel="stylesheet" href="{{url_for('static', filename='css/style.css')}}">
</head>
<body>
@@ -34,12 +34,18 @@
<input type="text" id="stav" name="stav" value="{{ order['Stav'] }}" required>
<label for="id_zamestnance">Přiřazený zaměstnanec:</label>
<input type="text" id="id_zamestnance" name="id_zamestnance" value="{{ order['ID_Zamestnance'] }}" required>
<select id="id_zamestnance" name="id_zamestnance" required>
{% for user in users %}
<option value="{{ user['ID_Uzivatele'] }}" {% if user['ID_Uzivatele'] == order['ID_Zamestnance'] %}selected{% endif %}>
{{ user['Jmeno'] }} {{ user['Prijmeni'] }}
</option>
{% endfor %}
</select>
<label for="popis">Popis:</label>
<input type="text" id="popis" name="popis" value="{{ order['Popis'] }}" required>
<textarea id="popis" name="popis" rows="4" required>{{ order['Popis'] }}</textarea>
<label for="datum_konce">Datum expedice:</label>
<label for="datum_konce">Datum konce:</label>
<input type="date" id="datum_konce" name="datum_konce" value="{{ order['Datum_Konce'] }}">
<button type="submit" class="button">Aktualizovat</button>