day of hard work with xkirsch #2
This commit is contained in:
56
web/templates/edit_product.html
Normal file
56
web/templates/edit_product.html
Normal file
@@ -0,0 +1,56 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="cs">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Editovat Produkt</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>
|
||||
|
||||
<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 Produkt
|
||||
</h1>
|
||||
<div class="buttons">
|
||||
<a href="{{ url_for('administrator') }}" class="button">Zpět na Tabulku Produktů</a>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
<h2>Editovat Produkt</h2>
|
||||
<form action="{{ url_for('edit_product', product_id=product['ID_Produktu']) }}" method="post" class="form-container">
|
||||
<label for="nazev">Název:</label>
|
||||
<input type="text" id="nazev" name="nazev" value="{{ product['Nazev'] }}" required>
|
||||
|
||||
<label for="popis">Popis:</label>
|
||||
<textarea id="popis" name="popis" rows="4" required>{{ product['Popis'] }}</textarea>
|
||||
|
||||
<label for="momentalni_zasoba">Momentální Zásoba:</label>
|
||||
<input type="number" id="momentalni_zasoba" name="momentalni_zasoba" value="{{ product['Momentalni_Zasoba'] }}" required>
|
||||
|
||||
<label for="minimalni_zasoba">Minimální Zásoba:</label>
|
||||
<input type="number" id="minimalni_zasoba" name="minimalni_zasoba" value="{{ product['Minimalni_Zasoba'] }}" required>
|
||||
|
||||
<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>
|
||||
Reference in New Issue
Block a user