diff --git a/backend/templates/_base.html b/backend/templates/_base.html new file mode 100644 index 0000000..c3d8a42 --- /dev/null +++ b/backend/templates/_base.html @@ -0,0 +1,14 @@ + + + + + + {% block title -%}{{ title }}{%- endblock %} - Skjera + {% block head %}{% endblock %} + + +
+ {% block content %}

Placeholder content

{% endblock %} +
+ + diff --git a/backend/templates/employee.html b/backend/templates/employee.html index e895e7b..23d0753 100644 --- a/backend/templates/employee.html +++ b/backend/templates/employee.html @@ -1,12 +1,8 @@ - - - - - - Skjera - {{ employee.name }} - - +{% extends "_base.html" %} + +{% block title %}{{ employee.name }}{% endblock %} + +{% block content %}

Skjera - {{ employee.name }}

Date of birth: {{ Self::dob(self) }} - - +{% endblock %} diff --git a/backend/templates/hello.html b/backend/templates/hello.html index 4224271..b0c69ab 100644 --- a/backend/templates/hello.html +++ b/backend/templates/hello.html @@ -1,10 +1,8 @@ - - - - - - - +{% extends "_base.html" %} + +{% block title %}Skjera?!{% endblock %} + +{% block content %} {% if let Some(user) = user %}

Hello {{ user.name }}! @@ -39,5 +37,4 @@

Employees

{% endfor %} {% endif %} - - +{% endblock %} diff --git a/backend/templates/me.html b/backend/templates/me.html index b90ce96..0dbadd2 100644 --- a/backend/templates/me.html +++ b/backend/templates/me.html @@ -1,15 +1,15 @@ - - - - - - - - +{% extends "_base.html" %} + +{% block title %}Edit Profile{% endblock %} +{% block head %} + +{% endblock %} + +{% block content %}

Edit profile

@@ -125,5 +125,4 @@

Add SoMe Account

- - +{% endblock %}