This repository has been archived on 2025-05-05. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
vwa_project/web/templates/edit_repair.html
2024-12-09 20:30:19 +01:00

55 lines
1.8 KiB
HTML

<!DOCTYPE html>
<html lang="cs">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Editovat Opravu</title>
<link rel="stylesheet" href="{{url_for('static', filename='css/style.css')}}">
</head>
<body>
<header>
<div class="header">
<div class="contact-info">
<span>Kontakt: 123 123 123 | Otevírací doba: 9-18 hod | auto@servis.cz </span>
</div>
<h1 class="nazev">
<a href="{{ url_for('home') }}" style="text-decoration: none;">
<img src="{{url_for('static', filename='img/logo.webp')}}" alt="Logo" class="logo">
</a>
Editovat Opravu
</h1>
<div class="buttons">
<a href="{{ url_for('repairs') }}" class="button">Zpět na Seznam Oprav</a>
</div>
</div>
</header>
<div class="container">
<div class="content">
<h2>Editovat Opravu</h2>
<form action="{{ url_for('edit_repair', repair_id=repair['ID_Opravy']) }}" method="post" class="form-container">
<label for="id_zamestnance">Zaměstnanec:</label>
<select id="id_zamestnance" name="id_zamestnance" required>
{% for employee in employees %}
<option value="{{ employee['ID_Uzivatele'] }}" {% if employee['ID_Uzivatele'] == repair['ID_Zamestnance'] %}selected{% endif %}>{{ employee['Jmeno'] }} {{ employee['Prijmeni'] }}</option>
{% endfor %}
</select>
<label for="nazev">Název:</label>
<input type="text" id="nazev" name="nazev" value="{{ repair['Nazev'] }}" required>
<label for="popis">Popis:</label>
<textarea id="popis" name="popis" required>{{ repair['Popis'] }}</textarea>
<button type="submit" class="button">Aktualizovat</button>
</form>
</div>
</div>
<footer class="footer" id="kontakt">
<div>Made by Hrachovina</div>
</footer>
</body>
</html>