Skip to content

Commit

Permalink
add flower web interface
Browse files Browse the repository at this point in the history
  • Loading branch information
sob05001 committed Feb 5, 2025
1 parent b7218e0 commit 01a89bc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Empty file added dms/flowers.db
Empty file.
16 changes: 11 additions & 5 deletions dms/templates/flowers.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Flower Shop</title>
</head>

<body>
<h2>Flower Management</h2>

Expand All @@ -18,12 +20,16 @@ <h2>Flower Management</h2>

<h3>Available Flowers</h3>
<ul>
{% if flowers %}
{% for flower in flowers %}
<li>
{{ flower.name }} ({{ flower.color }}) - ${{ flower.price }} | Stock: {{ flower.stock }}
<a href="/delete_flower/{{ flower.flower_id }}">Delete</a>
</li>
<li>
{{ flower }}
</li>
{% endfor %}
{% else %}
<li>No flowers available.</li>
{% endif %}
</ul>
</body>
</html>

</html>

0 comments on commit 01a89bc

Please sign in to comment.