From 875ace9eafe59341e3cf9a489c8345de8a125895 Mon Sep 17 00:00:00 2001 From: Klaudia Date: Thu, 10 Dec 2020 18:21:00 +0100 Subject: [PATCH] Front finito --- SocialHelper/SocialHelper/static/add.png | Bin 0 -> 2882 bytes SocialHelper/SocialHelper/static/plus.png | Bin 0 -> 3607 bytes .../homepage/__pycache__/urls.cpython-38.pyc | Bin 346 -> 383 bytes .../homepage/__pycache__/views.cpython-38.pyc | Bin 1508 -> 1743 bytes SocialHelper/homepage/templates/base.html | 3 +- .../templates/homepage/Dodawanie.html | 31 +--- .../templates/homepage/Mojeogloszenia.html | 160 ++++++++++++++++++ .../homepage/templates/homepage/index.html | 27 --- SocialHelper/homepage/templates/navbar.html | 34 ++++ SocialHelper/homepage/urls.py | 3 +- SocialHelper/homepage/views.py | 16 ++ SocialHelper/static/add.png | Bin 0 -> 2882 bytes SocialHelper/static/img/add.png | Bin 0 -> 5823 bytes 13 files changed, 215 insertions(+), 59 deletions(-) create mode 100644 SocialHelper/SocialHelper/static/add.png create mode 100644 SocialHelper/SocialHelper/static/plus.png create mode 100644 SocialHelper/homepage/templates/homepage/Mojeogloszenia.html create mode 100644 SocialHelper/homepage/templates/navbar.html create mode 100644 SocialHelper/static/add.png create mode 100644 SocialHelper/static/img/add.png diff --git a/SocialHelper/SocialHelper/static/add.png b/SocialHelper/SocialHelper/static/add.png new file mode 100644 index 0000000000000000000000000000000000000000..a59756406e743468d16e2709b349959de3660cff GIT binary patch literal 2882 zcmeHJ|4&<06hE(kbS!K}VJgG1FDCoN6kN?H2^5Mfw#x(~m~B{BChm1g)|M6QI!bvX z$iCDS6t#PnK^MZd$QYZf0h|?x4qSY+S*R`h!fRpKLqpm^3oTtA)VCP_2u*KtbI!T< zoaE%3dq3xM_TA#Qlatbt03cZ;EP4-s#i%S`KgWor6ZWT!h*uVh%Gk`(us=S-*y|L+ zgGzu6d!KD2MqwhryE5)zbZQ;CBoQGO>bt@C9&&AZ(w8+e0e$32$b7hBku^i)W2lteA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(&AINMTMjmE9Mj-qP05gOaYybcN diff --git a/SocialHelper/homepage/__pycache__/views.cpython-38.pyc b/SocialHelper/homepage/__pycache__/views.cpython-38.pyc index 01a9cc4d334a3470e0225fb047d0269ab9bbeb6c..773647a7d55a45f6b3b7fb52901ab94083cbbf42 100644 GIT binary patch delta 385 zcmaFDeV&&ul$V!_0SGvQFU1RTPUMqe%$ca2%9Fy^!Vo2p!XM0_DX?*hAtU3;$;TMY zfaG6BOGfF*=1e(^vYVGM=`u1ZOuoddrXT_|;uc$4W==_JQ4u?kQzQl!$xSWE$WJMf zpDe*5!z}?4=K~RvlkHg)MWsMYX*eMRVyR6oWwB;do4k=FP!FsgRsI&IOMXgXd178> zsyR@3F%ytrU@X!El9M?ZlY^>cGV*g%3lh^)^?mcRQuEVu@{6ld^D-0lGD>oDigl$V!_0SLUEF2yUbPvnzfOqr;i$`Z_=$+vNiAtR&aK$4Zol2LN9 zJyQ;&^yW28x{Qo+lW#GrDF_3#-eOD3%qdANDq;t6ibTO8xv3=?`6)%RlNDHGxWz!? zd>}%6vO9~Ss04^92`8jLES1T%EY^%FlXtQN3V_uk$xoJIm10*1s`Aqmm@Lkg=PV7@ r0U|)6NJfD*fy}$bVUwGmQks)$#|Y#VgDe+d6ky~5LIEZY0S*NK7R)XY diff --git a/SocialHelper/homepage/templates/base.html b/SocialHelper/homepage/templates/base.html index f54026d..fd31dca 100644 --- a/SocialHelper/homepage/templates/base.html +++ b/SocialHelper/homepage/templates/base.html @@ -23,8 +23,7 @@ - - + {% include 'navbar.html' %} {% block content %} {% endblock %} diff --git a/SocialHelper/homepage/templates/homepage/Dodawanie.html b/SocialHelper/homepage/templates/homepage/Dodawanie.html index 5569388..5eafb6e 100644 --- a/SocialHelper/homepage/templates/homepage/Dodawanie.html +++ b/SocialHelper/homepage/templates/homepage/Dodawanie.html @@ -4,33 +4,6 @@ - -
@@ -64,8 +37,8 @@
- Wybierz zdjęcia - + Wybierz zdjęcie +
diff --git a/SocialHelper/homepage/templates/homepage/Mojeogloszenia.html b/SocialHelper/homepage/templates/homepage/Mojeogloszenia.html new file mode 100644 index 0000000..2e98fa4 --- /dev/null +++ b/SocialHelper/homepage/templates/homepage/Mojeogloszenia.html @@ -0,0 +1,160 @@ +{% extends 'base.html' %} +{% load static %} +{% block content %} + + + + + +
+
+
+

Moje ogłoszenia

+
+
+
+ + + +
+
+
+
+
+ + +
+ {% if all_product %} + {% for product in all_product %} +
+
+
+
+ +
+
+
+
+

{{ product.title }}

+ {% if types.0.0 == product.type %} +
Potrzebuje
+ {% else %} +
Oddam
+ {% endif %} +
Z miejscowości: {{ product.place }}
+

{{ product.description }}

+
+
+
+
+ {% endfor %} + {% else %} +

No polls are available.

+ {% endif %} +
+
+ +
+ {% csrf_token %} + + + + + + +
+ + +
+
+
+
+ + + + + + + + {% endblock %} diff --git a/SocialHelper/homepage/templates/homepage/index.html b/SocialHelper/homepage/templates/homepage/index.html index 2e90399..26e3d7d 100644 --- a/SocialHelper/homepage/templates/homepage/index.html +++ b/SocialHelper/homepage/templates/homepage/index.html @@ -6,33 +6,6 @@ - - diff --git a/SocialHelper/homepage/templates/navbar.html b/SocialHelper/homepage/templates/navbar.html new file mode 100644 index 0000000..9066c2f --- /dev/null +++ b/SocialHelper/homepage/templates/navbar.html @@ -0,0 +1,34 @@ +{% load static %} + + + + + + + + diff --git a/SocialHelper/homepage/urls.py b/SocialHelper/homepage/urls.py index 66d41a3..903f398 100644 --- a/SocialHelper/homepage/urls.py +++ b/SocialHelper/homepage/urls.py @@ -4,5 +4,6 @@ from . import views urlpatterns = [ path('', views.index, name='index'), path('filter', views.filter, name='filter'), - path('Dodawanie', views.Dodawanie, name='Dodawanie'), + path('Dodawanie', views.Dodawanie, name='Dodawanie'), + path('Mojeogloszenia', views.Mojeogloszenia, name='Mojeogloszenia'), ] diff --git a/SocialHelper/homepage/views.py b/SocialHelper/homepage/views.py index c1028dd..3f1de00 100644 --- a/SocialHelper/homepage/views.py +++ b/SocialHelper/homepage/views.py @@ -54,3 +54,19 @@ def filter(request): def Dodawanie(request): return render(request , 'homepage/Dodawanie.html') + +def Mojeogloszenia(request): + all_product = Product.objects.all + template = loader.get_template('homepage/Mojeogloszenia.html') + types = TYPE_T + place_local = "" + oddam_local = "" + potrzebuje_local = "" + context = { + 'all_product': all_product, + 'types': types, + 'place_local': place_local, + 'oddam_local': oddam_local, + 'potrzebuje_local': potrzebuje_local, + } + return HttpResponse(template.render(context, request)) diff --git a/SocialHelper/static/add.png b/SocialHelper/static/add.png new file mode 100644 index 0000000000000000000000000000000000000000..a59756406e743468d16e2709b349959de3660cff GIT binary patch literal 2882 zcmeHJ|4&<06hE(kbS!K}VJgG1FDCoN6kN?H2^5Mfw#x(~m~B{BChm1g)|M6QI!bvX z$iCDS6t#PnK^MZd$QYZf0h|?x4qSY+S*R`h!fRpKLqpm^3oTtA)VCP_2u*KtbI!T< zoaE%3dq3xM_TA#Qlatbt03cZ;EP4-s#i%S`KgWor6ZWT!h*uVh%Gk`(us=S-*y|L+ zgGzu6d!KD2MqwhryE5)zbZQ;CBoQGO>bt@C9&&AZ(w8+e0e$32$b7hBku^i)W2lteA;$HN9eS)>U1>7b_xk^e&hO57Gc`TAccTQq~Ste+n z#0jK*8v^6CseSV34!7y2L1e2Cpr921+ll}Pn5HzwGo4rmz{i$s?KNd{aE3#G|;Ebd?UV-8>m3n76gVw z&GG`9I7D#lDxg z0fldsI&BMf>L)Tl?;RC;!~H0=M$nZgf9P&10?yfGf?jkGxm%3+P^Q_%ZIPevYJjWi z84|^$h$W=M!}R6-aUj;&LS&{U zH4AF!l^!fa${8Fb=wqCQEO?ftp^omF?C{NDhI6Gp+L_CHZPOB9~T41*bIox z!v7H`;9Vb(?n+cN$3wbP^{-}UaDdQ6H(y>^doxi{z_2;bZ1WgPS_~sM>)+r;^2R)q z2iztmW{Qj$@vuLyS*uQ4pKgB;sVCDRL-!B2<8IW>wCZs6t&nzkbW_43-cC>`uAHZ5 z2)Y(M6#cckuf&;qEBwo14u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