diff --git a/application/dashboard/templates/dashboard.html b/application/dashboard/templates/dashboard.html index df6842e..4d642a1 100644 --- a/application/dashboard/templates/dashboard.html +++ b/application/dashboard/templates/dashboard.html @@ -61,7 +61,10 @@ {{ plate.id }} {{ plate.plate }} - Edit + Edit
@@ -75,6 +78,35 @@ + + {% endblock %} \ No newline at end of file diff --git a/application/dashboard/templates/edit.html b/application/dashboard/templates/edit.html index 0354946..1e0a040 100644 --- a/application/dashboard/templates/edit.html +++ b/application/dashboard/templates/edit.html @@ -20,7 +20,7 @@ {{ form.numberplate.label }} {{ form.numberplate(class="form-input") }}
- {{ form.submit(class="submit-btn") }} +
diff --git a/application/dashboard/views.py b/application/dashboard/views.py index 90aad53..b86d6c2 100644 --- a/application/dashboard/views.py +++ b/application/dashboard/views.py @@ -23,7 +23,8 @@ def dashboard(): .limit(50) .all() ) - return render_template("dashboard.html", plates=Plates, logs=logs) + form = npForm() + return render_template("dashboard.html", plates=Plates, logs=logs, form=form) @dash_blueprint.route("/add", methods=["GET", "POST"])