From f21c24b59974e6a22af81da54540cac6e56dfb54 Mon Sep 17 00:00:00 2001 From: Senad Uka Date: Sun, 2 Jul 2023 23:00:20 +0200 Subject: [PATCH] Half way there --- CTOAsYouGo/core/templates/core/home.html | 8 ++-- .../core/templates/core/task_detail.html | 47 +++++++++++++++++++ .../core/templates/core/task_details.html | 10 ---- 3 files changed, 51 insertions(+), 14 deletions(-) create mode 100644 CTOAsYouGo/core/templates/core/task_detail.html delete mode 100644 CTOAsYouGo/core/templates/core/task_details.html diff --git a/CTOAsYouGo/core/templates/core/home.html b/CTOAsYouGo/core/templates/core/home.html index 8250bf9..ef2713c 100644 --- a/CTOAsYouGo/core/templates/core/home.html +++ b/CTOAsYouGo/core/templates/core/home.html @@ -1,18 +1,17 @@ {% extends 'core/base.html' %} {% load currency_filters %} - {% block content %}
{% for task in tasks %} + + {% endfor %}
{% endblock %} diff --git a/CTOAsYouGo/core/templates/core/task_detail.html b/CTOAsYouGo/core/templates/core/task_detail.html new file mode 100644 index 0000000..f71443a --- /dev/null +++ b/CTOAsYouGo/core/templates/core/task_detail.html @@ -0,0 +1,47 @@ +{% extends 'core/base.html' %} +{% load currency_filters %} +{% block content %} +
+

{{ task.title }}

+
+

{{ task.description }}

+ +

From: {{ task.price_from|cents_to_dollars }} To: {{ task.price_to|cents_to_dollars }}

+
+ + +
+
+
+
+ + +

Please fill out this field.

+
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + + +
+ +{% endblock %} diff --git a/CTOAsYouGo/core/templates/core/task_details.html b/CTOAsYouGo/core/templates/core/task_details.html deleted file mode 100644 index 147754a..0000000 --- a/CTOAsYouGo/core/templates/core/task_details.html +++ /dev/null @@ -1,10 +0,0 @@ -{% extends 'core/base.html' %} - -{% block content %} - - -

{{ task.title }}

-

{{ task.description }}

-

{{ task.price_from }} - {{ task.price_to }}

- Create a request -{% endblock %} \ No newline at end of file