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_user.html

60 lines
2.0 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 Uživatele</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 Uživatele
</h1>
<div class="buttons">
<a href="{{ url_for('administrator') }}" class="button">Zpět na Uživatelskou Tabulku</a>
</div>
</div>
</header>
<div class="container">
<div class="content">
<h2>Editovat Uživatele</h2>
<form action="{{ url_for('edit_user', user_id=user['ID_Uzivatele']) }}" method="post" class="form-container">
<label for="jmeno">Jméno:</label>
<input type="text" id="jmeno" name="jmeno" value="{{ user['Jmeno'] }}" required>
<label for="prijmeni">Příjmení:</label>
<input type="text" id="prijmeni" name="prijmeni" value="{{ user['Prijmeni'] }}" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" value="{{ user['Email'] }}" required>
<label for="role">Role:</label>
<input type="text" id="role" name="role" value="{{ user['Role_ID'] }}" required>
<label for="username">Username:</label>
<input type="text" id="username" name="username" value="{{ user['Username'] }}" required>
<label for="heslo">Heslo (ponechte prázdné, pokud nechcete měnit):</label>
<input type="password" id="heslo" name="heslo">
<button type="submit" class="button">Aktualizovat</button>
</form>
</div>
</div>
<footer class="footer" id="kontakt">
<div>Made by Hrachovina and Kirsch</div>
</footer>
</body>
</html>