From d2def4ec0b39732566522dd2009eef957e40c3be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Klepacki?= Date: Fri, 15 Jan 2021 20:14:34 +0100 Subject: [PATCH] zmiany --- .../templates/control/OfferNotification.html | 2 +- .../homepage/__pycache__/urls.cpython-37.pyc | Bin 1384 -> 1501 bytes .../homepage/__pycache__/views.cpython-37.pyc | Bin 13873 -> 15481 bytes .../homepage/templates/homepage/contact.html | 8 ++- .../templates/homepage/offer_note.html | 59 +++++++++++++++++ .../templates/homepage/offer_page.html | 5 +- .../templates/homepage/user_note.html | 58 ++++++++++++++++ .../templates/homepage/user_profile.html | 3 + SocialHelper/homepage/urls.py | 5 +- SocialHelper/homepage/views.py | 62 ++++++++++++++++++ 10 files changed, 197 insertions(+), 5 deletions(-) create mode 100644 SocialHelper/homepage/templates/homepage/offer_note.html create mode 100644 SocialHelper/homepage/templates/homepage/user_note.html diff --git a/SocialHelper/control/templates/control/OfferNotification.html b/SocialHelper/control/templates/control/OfferNotification.html index 61a9283..1ea7735 100644 --- a/SocialHelper/control/templates/control/OfferNotification.html +++ b/SocialHelper/control/templates/control/OfferNotification.html @@ -12,7 +12,7 @@ {% for offer in all_Notificationoffer %} - {{offer.id}} + {{offer.user_iden.title}} {{offer.text}} {{offer.date}} Usuń diff --git a/SocialHelper/homepage/__pycache__/urls.cpython-37.pyc b/SocialHelper/homepage/__pycache__/urls.cpython-37.pyc index ff398b94d92694fb93620f853de264a3a812fb25..14202ffcd5b08b447ffd534afd91ed7d1f8300cc 100644 GIT binary patch delta 244 zcmaFCb(dS+iIz^Gd8B{LB=)TU-dKD)G`{xT@lkA}cT#q=*wPp~-lQHzhy0G&eP`B)%v=zr;^d rdGbHzUF=1QK(`htP2S3)#ij*fYE6F1;?8I@S(nw4jgN_sQGf{m3s^*8 delta 114 zcmcc1{enx~iI+)t%8|@;p{cCIKb@ D{u>uC diff --git a/SocialHelper/homepage/__pycache__/views.cpython-37.pyc b/SocialHelper/homep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per/homepage/templates/homepage/contact.html index 0e294f7..20d3f9d 100644 --- a/SocialHelper/homepage/templates/homepage/contact.html +++ b/SocialHelper/homepage/templates/homepage/contact.html @@ -46,7 +46,11 @@

Wyślij wiadomość

-
+ + {% csrf_token %} + {{ form.media }} + {{ form.as_p }} +
@@ -57,7 +61,7 @@
- +
diff --git a/SocialHelper/homepage/templates/homepage/offer_note.html b/SocialHelper/homepage/templates/homepage/offer_note.html new file mode 100644 index 0000000..3734696 --- /dev/null +++ b/SocialHelper/homepage/templates/homepage/offer_note.html @@ -0,0 +1,59 @@ +{% extends 'base.html' %} +{% load static %} +{% block content %} + + + + + +
+
+
+

Zgłoś Oferte:

+
{{ offer.title }}
+
Użytkownika: {{ offer.user_iden }}
+ +
+
+
+ + + +
+ {% csrf_token %} + {{ form.media }} + {{ form.as_p }} + + +
+
+
+ + +
+
+
+ + +
+
+
+ +
+
+
+ +
+
+
+ + +
+
+
+ + + + + + {% endblock %} diff --git a/SocialHelper/homepage/templates/homepage/offer_page.html b/SocialHelper/homepage/templates/homepage/offer_page.html index e03721b..d065234 100644 --- a/SocialHelper/homepage/templates/homepage/offer_page.html +++ b/SocialHelper/homepage/templates/homepage/offer_page.html @@ -41,7 +41,7 @@ /* Create an active/current "tab button" class */ .tab button.active { background-color: #ccc; - } + } @@ -155,6 +155,9 @@ {% endif %} +