Skip to content
Snippets Groups Projects
Commit b761f2fe authored by Arno Wunderlich's avatar Arno Wunderlich
Browse files

fix button add item was not working with base.html

parent f87eefa5
No related branches found
No related tags found
1 merge request!46Bugfixes (e.g. from bughunt)
...@@ -5,27 +5,42 @@ ...@@ -5,27 +5,42 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div class="container"> <body>
<div class="mb-3"> <header>
<label for="email" class="form-label">Email address</label> <meta charset="utf-8">
<input type="email" class="form-control" id="email" name="email" aria-describedby="emailHelp"> <title>Sell Item</title>
</div> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
<div class="mb-3"> </header>
<label for="nItem" class="form-label">Item's name</label> <main>
<input type="text" class="form-control" id="nItem" name="nItem"> <form class="container-fluid" action="{{ url_for('views.add_item') }}" method="POST" enctype="multipart/form-data">
</div> <div class="container">
<div class="mb-3"> <div class="mb-3">
<label for="description" class="form-label">Description</label> <label for="email" class="form-label">Email address</label>
<textarea class="form-control" id="description" name="description" maxlength="700"></textarea> <input type="email" class="form-control" id="email" name="email" aria-describedby="emailHelp">
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label for="sPrice" class="form-label">Starting price</label> <label for="nItem" class="form-label">Item's name</label>
<input type="number" class="form-control" id="sPrice" name="sPrice" min="0" max="100000000"> <input type="text" class="form-control" id="nItem" name="nItem">
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label for="image" class="form-label">Image</label> <label for="description" class="form-label">Description</label>
<input type="file" class="form-control" id="image" name="image"> <textarea class="form-control" id="description" name="description" maxlength="700"></textarea>
</div> </div>
<button type="submit" class="btn btn-primary">Submit</button> <div class="mb-3">
</div> <label for="sPrice" class="form-label">Starting price</label>
{% endblock %} <input type="number" class="form-control" id="sPrice" name="sPrice" min="0" max="100000000">
\ No newline at end of file </div>
<div class="mb-3">
<label for="image" class="form-label">Image</label>
<input type="file" class="form-control" id="image" name="image">
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</form>
</main>
<footer>
</footer>
</body>
</html>
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment