added link/service

This commit is contained in:
DaanoGames
2025-04-15 12:04:07 +02:00
parent 60734f657a
commit 906da24019
3 changed files with 9 additions and 4 deletions

View File

@@ -6,8 +6,8 @@
<div class="grid-container">
{% for service in services%}
<div class="container-xxl">
name: {{service["name"]}} <br>
url: {{service["url"]}}
Name: {{service["name"]}} <br>
URL: <a href="{{service}}">{{service["url"]}}</a>
</div>
{% endfor %}
<div class="container-xxl">

View File

@@ -1,5 +1,5 @@
from flask import Blueprint, render_template
from application.dash.forms import RegisterForm
from application.dash.forms import RegisterForm, ServiceForm
from flask_login import login_required # type: ignore
from application.dash.models import Service
from application.decorators import admin_required
@@ -27,3 +27,8 @@ def admin():
check_admin = register_form.admin.data
return render_template("admin.html", form=register_form)
@dash_blueprint.route("/service", methods=["GET", "POST"])
@login_required
def service():
return render_template("add_service.html")