Front finito
This commit is contained in:
parent
5e3e42d49b
commit
875ace9eaf
BIN
SocialHelper/SocialHelper/static/add.png
Normal file
BIN
SocialHelper/SocialHelper/static/add.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
BIN
SocialHelper/SocialHelper/static/plus.png
Normal file
BIN
SocialHelper/SocialHelper/static/plus.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.5 KiB |
Binary file not shown.
Binary file not shown.
@ -23,8 +23,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- Top Bar -->
|
||||
<!-- NavBar -->
|
||||
{% include 'navbar.html' %}
|
||||
{% block content %} {% endblock %}
|
||||
<script src="{% static 'js/jquery-3.2.1.min.js' %} "></script>
|
||||
<script src="{% static 'js/popper.min.js' %} "></script>
|
||||
|
@ -4,33 +4,6 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<body>
|
||||
<header class="shop_header_area carousel_menu_area">
|
||||
<div class="carousel_menu_inner">
|
||||
<div class="container">
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
||||
<a class="navbar-brand" href="#"><img src="{% static "img/Social.png" %}"></a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item"><a class="nav-link" href="#">Wszystko</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="#">Produkty</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="#">Usługi</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="contact.html">Kontakt</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<ul class="navbar-nav justify-content-end">
|
||||
<li class="search_icon"><a href="#"><i class="icon-magnifier icons"></i></a></li>
|
||||
<li class="user_icon"><a href="#"><i class="icon-user icons"></i></a></li>
|
||||
<li class="cart_cart"><a href="#"><i class="icon-handbag icons"></i></a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
<!--================End Menu Area =================-->
|
||||
|
||||
<!--================Categories Banner Area =================-->
|
||||
<section class="solid_banner_area">
|
||||
@ -64,8 +37,8 @@
|
||||
</div>
|
||||
<div class="col-lg-12 form-group">
|
||||
<div class="file-field">
|
||||
<span>Wybierz zdjęcia</span>
|
||||
<input type="file" multiple>
|
||||
<span>Wybierz zdjęcie</span>
|
||||
<input type="file">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12 form-group">
|
||||
|
160
SocialHelper/homepage/templates/homepage/Mojeogloszenia.html
Normal file
160
SocialHelper/homepage/templates/homepage/Mojeogloszenia.html
Normal file
@ -0,0 +1,160 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<body>
|
||||
<!--================Categories Banner Area =================-->
|
||||
<section class="solid_banner_area">
|
||||
<div class="container">
|
||||
<div class="solid_banner_inner">
|
||||
<h3>Moje ogłoszenia</h3>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!--================End Categories Banner Area =================-->
|
||||
|
||||
<!--================Categories Product Area =================-->
|
||||
<section class="categories_product_main p_80">
|
||||
<div class="container">
|
||||
<div class="categories_main_inner">
|
||||
<div class="row row_disable">
|
||||
<div class="col-lg-9 float-md-right">
|
||||
|
||||
|
||||
<div class="c_product_grid_details">
|
||||
{% if all_product %}
|
||||
{% for product in all_product %}
|
||||
<div class="c_product_item">
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-6">
|
||||
<div class="c_product_img">
|
||||
<img class="img-fluid" src="{% static "img/product/l-product-2.jpg" %}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-8 col-md-6">
|
||||
<div class="c_product_text">
|
||||
<h3>{{ product.title }}</h3>
|
||||
{% if types.0.0 == product.type %}
|
||||
<h5>Potrzebuje</h5>
|
||||
{% else %}
|
||||
<h5>Oddam</h5>
|
||||
{% endif %}
|
||||
<h6>Z miejscowości: <span>{{ product.place }}</span></h6>
|
||||
<p>{{ product.description }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<p>No polls are available.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form action="{% url 'filter' %}" method="post">
|
||||
{% csrf_token %}
|
||||
|
||||
<input type="hidden" name="place" value="">
|
||||
<input type="hidden" name="Oddam" value="">
|
||||
<input type="hidden" name="Potrzebuje" value="">
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!--================End Categories Product Area =================-->
|
||||
|
||||
<!--================Footer Area =================-->
|
||||
<footer class="footer_area">
|
||||
<div class="container">
|
||||
<div class="footer_widgets">
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-4 col-6">
|
||||
<aside class="f_widget f_about_widget">
|
||||
<img src="img/logo.png" alt="">
|
||||
<p>Persuit is a Premium PSD Template. Best choice for your online store. Let purchase it to enjoy now</p>
|
||||
<h6>Social:</h6>
|
||||
<ul>
|
||||
<li><a href="#"><i class="social_facebook"></i></a></li>
|
||||
<li><a href="#"><i class="social_twitter"></i></a></li>
|
||||
<li><a href="#"><i class="social_pinterest"></i></a></li>
|
||||
<li><a href="#"><i class="social_instagram"></i></a></li>
|
||||
<li><a href="#"><i class="social_youtube"></i></a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</div>
|
||||
<div class="col-lg-2 col-md-4 col-6">
|
||||
<aside class="f_widget link_widget f_info_widget">
|
||||
<div class="f_w_title">
|
||||
<h3>Information</h3>
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="#">About us</a></li>
|
||||
<li><a href="#">Delivery information</a></li>
|
||||
<li><a href="#">Terms & Conditions</a></li>
|
||||
<li><a href="#">Help Center</a></li>
|
||||
<li><a href="#">Returns & Refunds</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</div>
|
||||
<div class="col-lg-2 col-md-4 col-6">
|
||||
<aside class="f_widget link_widget f_service_widget">
|
||||
<div class="f_w_title">
|
||||
<h3>Customer Service</h3>
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="#">My account</a></li>
|
||||
<li><a href="#">Ordr History</a></li>
|
||||
<li><a href="#">Wish List</a></li>
|
||||
<li><a href="#">Newsletter</a></li>
|
||||
<li><a href="#">Contact Us</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</div>
|
||||
<div class="col-lg-2 col-md-4 col-6">
|
||||
<aside class="f_widget link_widget f_extra_widget">
|
||||
<div class="f_w_title">
|
||||
<h3>Extras</h3>
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="#">Brands</a></li>
|
||||
<li><a href="#">Gift Vouchers</a></li>
|
||||
<li><a href="#">Affiliates</a></li>
|
||||
<li><a href="#">Specials</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</div>
|
||||
<div class="col-lg-2 col-md-4 col-6">
|
||||
<aside class="f_widget link_widget f_account_widget">
|
||||
<div class="f_w_title">
|
||||
<h3>My Account</h3>
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="#">My account</a></li>
|
||||
<li><a href="#">Ordr History</a></li>
|
||||
<li><a href="#">Wish List</a></li>
|
||||
<li><a href="#">Newsletter</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer_copyright">
|
||||
<h5>© <script>document.write(new Date().getFullYear());</script> <!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
|
||||
Copyright ©<script>document.write(new Date().getFullYear());</script> All rights reserved | This template is made with <i class="fa fa-heart-o" aria-hidden="true"></i> by <a href="https://colorlib.com" target="_blank">Colorlib</a>. Downloaded from <a href="https://themeslab.org/" target="_blank">Themeslab</a>
|
||||
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<!--================End Footer Area =================-->
|
||||
</body>
|
||||
</html>
|
||||
{% endblock %}
|
@ -6,33 +6,6 @@
|
||||
|
||||
<body>
|
||||
|
||||
<header class="shop_header_area carousel_menu_area">
|
||||
<div class="carousel_menu_inner">
|
||||
<div class="container">
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
||||
<a class="navbar-brand" href="#"><img src="{% static "img/Social.png" %}"></a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item"><a class="nav-link" href="#">Wszystko</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="#">Produkty</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="#">Usługi</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="contact.html">Kontakt</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<ul class="navbar-nav justify-content-end">
|
||||
<li class="search_icon"><a href="#"><i class="icon-magnifier icons"></i></a></li>
|
||||
<li class="user_icon"><a href="#"><i class="icon-user icons"></i></a></li>
|
||||
<li class="cart_cart"><a href="#"><i class="icon-handbag icons"></i></a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
<!--================End Menu Area =================-->
|
||||
|
||||
|
||||
<!--================Categories Product Area =================-->
|
||||
|
34
SocialHelper/homepage/templates/navbar.html
Normal file
34
SocialHelper/homepage/templates/navbar.html
Normal file
@ -0,0 +1,34 @@
|
||||
{% load static %}
|
||||
<html lang="en">
|
||||
|
||||
<body>
|
||||
|
||||
<header class="shop_header_area carousel_menu_area">
|
||||
<div class="carousel_menu_inner">
|
||||
<div class="container">
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
||||
<a class="navbar-brand" href="/homepage/"><img src="{% static "img/Social.png" %}"></a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item"><a class="nav-link" href="#">Wszystko</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="#">Produkty</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="#">Usługi</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="contact.html">Kontakt</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<ul class="navbar-nav justify-content-end">
|
||||
<li class="search_icon"><a href="#"><i class="icon-magnifier icons"></i></a></li>
|
||||
<li class="user_icon"><a href="/homepage/Mojeogloszenia"><i class="icon-user icons"></i></a></li>
|
||||
<li ><a href="/homepage/Dodawanie"><img src="{% static "plus.png"%}" height="20"/></a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
</body>
|
||||
</html>
|
||||
<!--================End Menu Area =================-->
|
@ -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'),
|
||||
]
|
||||
|
@ -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))
|
||||
|
BIN
SocialHelper/static/add.png
Normal file
BIN
SocialHelper/static/add.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
BIN
SocialHelper/static/img/add.png
Normal file
BIN
SocialHelper/static/img/add.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.7 KiB |
Loading…
Reference in New Issue
Block a user