From 6f3e7dc79f028364523abdfdd4ce35f2059dbcad Mon Sep 17 00:00:00 2001 From: yann Date: Fri, 5 Sep 2025 16:44:15 +0200 Subject: [PATCH] move templates into app folder --- lettings/templates/lettings/index.html | 45 ++++++++++++++++++++++++ lettings/templates/lettings/letting.html | 41 +++++++++++++++++++++ profiles/templates/profiles/index.html | 43 ++++++++++++++++++++++ profiles/templates/profiles/profile.html | 40 +++++++++++++++++++++ 4 files changed, 169 insertions(+) create mode 100644 lettings/templates/lettings/index.html create mode 100644 lettings/templates/lettings/letting.html create mode 100644 profiles/templates/profiles/index.html create mode 100644 profiles/templates/profiles/profile.html diff --git a/lettings/templates/lettings/index.html b/lettings/templates/lettings/index.html new file mode 100644 index 0000000..92857a7 --- /dev/null +++ b/lettings/templates/lettings/index.html @@ -0,0 +1,45 @@ +{% extends "base.html" %} +{% block title %}Lettings{% endblock title %} + +{% block content %} + + +
+
+
+

Lettings

+
+
+
+ +
+
+
+
+ {% if lettings_list %} + + {% else %} +

No lettings are available.

+ {% endif %} +
+
+
+ +
+ +
+ +{% endblock %} \ No newline at end of file diff --git a/lettings/templates/lettings/letting.html b/lettings/templates/lettings/letting.html new file mode 100644 index 0000000..7e5f3a7 --- /dev/null +++ b/lettings/templates/lettings/letting.html @@ -0,0 +1,41 @@ +{% extends "base.html" %} +{% load static %} +{% block title %}{{ title }}{% endblock title %} + +{% block content %} + +
+
+
+

{{ title }}

+
+
+
+ +
+
+
+
+

{{ address.number }} {{ address.street }}

+

{{ address.city }}, {{ address.state }} {{ address.zip_code }}

+

{{ address.country_iso_code }}

+
+
+
+ +
+ +
+ +{% endblock %} \ No newline at end of file diff --git a/profiles/templates/profiles/index.html b/profiles/templates/profiles/index.html new file mode 100644 index 0000000..4ad1daf --- /dev/null +++ b/profiles/templates/profiles/index.html @@ -0,0 +1,43 @@ +{% extends "base.html" %} +{% block title %}Profiles{% endblock title %} + +{% block content %} +
+
+
+

Profiles

+
+
+
+ +
+
+
+
+ {% if profiles_list %} + + {% else %} +

No profiles are available.

+ {% endif %} +
+
+
+ +
+ +
+ +{% endblock %} \ No newline at end of file diff --git a/profiles/templates/profiles/profile.html b/profiles/templates/profiles/profile.html new file mode 100644 index 0000000..d150d30 --- /dev/null +++ b/profiles/templates/profiles/profile.html @@ -0,0 +1,40 @@ +{% extends "base.html" %} +{% block title %}{{ profile.user.username }}{% endblock title %} + +{% block content %} +
+
+
+

{{ profile.user.username }}

+
+
+
+ +
+
+
+
+

First name : {{ profile.user.first_name }}

+

Last name : {{ profile.user.last_name }}

+

Email : {{ profile.user.email }}

+

Favorite city : {{ profile.favorite_city }}

+
+
+
+ +
+ +
+ +{% endblock %} \ No newline at end of file