diff --git a/application/auth/templates/admin.html b/application/auth/templates/admin.html index ce3a258..c6776d8 100644 --- a/application/auth/templates/admin.html +++ b/application/auth/templates/admin.html @@ -7,8 +7,30 @@ Register {% block content %}
{{ form.hidden_tag() }} + + + + + + + + {% if feedback %} -

{{feedback}}

+ {% if feedback=="User succesfully added" %} + + {% else %} + + {% endif %} {% endif %}
{{ form.username.label }}
{{ form.username() }} @@ -20,7 +42,7 @@ Register {{ form.confirm_password.label }}
{{ form.confirm_password() }}
- {{ form.is_admin }} {{ form.is_admin.label }} + {{ form.is_admin() }} {{ form.is_admin.label }}
{{ form.submit() }} diff --git a/application/auth/templates/login.html b/application/auth/templates/login.html index ca1ca58..9f72b9e 100644 --- a/application/auth/templates/login.html +++ b/application/auth/templates/login.html @@ -7,8 +7,18 @@ Login {% block content %} {{ form.hidden_tag() }} + + + + + {% if feedback %} - + {% endif %}
{{ form.username.label }}
{{ form.username() }} diff --git a/application/dash/templates/add_service.html b/application/dash/templates/add_service.html index 8535bf7..66c2a25 100644 --- a/application/dash/templates/add_service.html +++ b/application/dash/templates/add_service.html @@ -7,8 +7,30 @@ Add service {% block content %} {{ form.hidden_tag() }} + + + + + + + + {% if feedback %} - + {% if feedback=="Service succesfully added" %} + + {% else %} + + {% endif %} {% endif %}
{{ form.name.label }}
{{ form.name() }} diff --git a/application/dash/templates/dashboard.html b/application/dash/templates/dashboard.html index c08ec70..c6ef7fa 100644 --- a/application/dash/templates/dashboard.html +++ b/application/dash/templates/dashboard.html @@ -5,10 +5,21 @@ {%block content%}
{% for service in services%} -
- - - +
+
Name: {{service["name"]}}
URL: {{service["url"]}} @@ -16,4 +27,5 @@
{% endfor %}
-{%endblock%} \ No newline at end of file +{%endblock%} + \ No newline at end of file diff --git a/application/static/style.css b/application/static/style.css index 5907ac3..4f6759b 100644 --- a/application/static/style.css +++ b/application/static/style.css @@ -14,7 +14,7 @@ body { margin-right: 10%; } -.grid-container > div { +.grid-container > #item { text-align: center; height: fit-content; width: 400px; @@ -47,9 +47,4 @@ form { .feedback { font-size: 16px; color: red; -} - -.succes { - font-size: 16px; - color: green; } \ No newline at end of file