en GB
This commit is contained in:
parent
5f5f0be595
commit
e24a762c07
Binary file not shown.
Binary file not shown.
@ -23,7 +23,6 @@ urlpatterns = [
|
||||
path('ExtendVIP/<int:vip_id>', views.Vipuser_extension, name='Vipuser_extension'),
|
||||
|
||||
path('UserList', views.UserPage, name='UserPage'),
|
||||
path('AddVIP/<int:user_id>', views.AddVIP, name='AddVIP'),
|
||||
|
||||
path('AddVIP/<int:user_id>', views.AddVIP, name='AddVIP')
|
||||
|
||||
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
|
@ -38,7 +38,7 @@ def pulpit(request):
|
||||
}
|
||||
return HttpResponse(template.render(context, request))
|
||||
else:
|
||||
return redirect(index)
|
||||
return HttpResponseRedirect("http://127.0.0.1:8000/homepage/")
|
||||
|
||||
def NotificationuserPage(request):
|
||||
if request.user.is_authenticated and request.user.is_superuser == True:
|
||||
@ -49,7 +49,7 @@ def NotificationuserPage(request):
|
||||
}
|
||||
return HttpResponse(template.render(context, request))
|
||||
else:
|
||||
return redirect(index)
|
||||
return HttpResponseRedirect("http://127.0.0.1:8000/homepage/")
|
||||
|
||||
def Notificationuser_deletenot(request, not_id):
|
||||
if request.user.is_authenticated and request.user.is_superuser == True:
|
||||
@ -59,7 +59,7 @@ def Notificationuser_deletenot(request, not_id):
|
||||
messages.success(request, 'Zgłoszenie Zamknięte')
|
||||
return redirect(NotificationuserPage)
|
||||
else:
|
||||
return redirect(index)
|
||||
return HttpResponseRedirect("http://127.0.0.1:8000/homepage/")
|
||||
|
||||
def Notificationuser_deleteuser(request, user_id):
|
||||
if request.user.is_authenticated and request.user.is_superuser == True:
|
||||
@ -70,7 +70,7 @@ def Notificationuser_deleteuser(request, user_id):
|
||||
messages.success(request, 'Użytkownik Usunięty')
|
||||
return redirect(UserPage)
|
||||
else:
|
||||
return redirect(index)
|
||||
return HttpResponseRedirect("http://127.0.0.1:8000/homepage/")
|
||||
|
||||
def NotificationofferPage(request):
|
||||
if request.user.is_authenticated and request.user.is_superuser == True:
|
||||
@ -81,7 +81,7 @@ def NotificationofferPage(request):
|
||||
}
|
||||
return HttpResponse(template.render(context, request))
|
||||
else:
|
||||
return redirect(index)
|
||||
return HttpResponseRedirect("http://127.0.0.1:8000/homepage/")
|
||||
|
||||
def Notificationoffer_deletenot(request, not_id):
|
||||
if request.user.is_authenticated and request.user.is_superuser == True:
|
||||
@ -91,7 +91,7 @@ def Notificationoffer_deletenot(request, not_id):
|
||||
messages.success(request, 'Zgłoszenie Zamknięte')
|
||||
return redirect(NotificationofferPage)
|
||||
else:
|
||||
return redirect(index)
|
||||
return HttpResponseRedirect("http://127.0.0.1:8000/homepage/")
|
||||
|
||||
def Notificationoffer_deleteoffer(request, offer_id):
|
||||
if request.user.is_authenticated and request.user.is_superuser == True:
|
||||
@ -101,7 +101,7 @@ def Notificationoffer_deleteoffer(request, offer_id):
|
||||
messages.success(request, 'Ogłoszenie Usunięte')
|
||||
return redirect(NotificationofferPage)
|
||||
else:
|
||||
return redirect(index)
|
||||
return HttpResponseRedirect("http://127.0.0.1:8000/homepage/")
|
||||
|
||||
def UsermessagerPage(request):
|
||||
if request.user.is_authenticated and request.user.is_superuser == True:
|
||||
@ -112,7 +112,7 @@ def UsermessagerPage(request):
|
||||
}
|
||||
return HttpResponse(template.render(context, request))
|
||||
else:
|
||||
return redirect(index)
|
||||
return HttpResponseRedirect("http://127.0.0.1:8000/homepage/")
|
||||
|
||||
def Usermessager_deletenot(request, not_id):
|
||||
if request.user.is_authenticated and request.user.is_superuser == True:
|
||||
@ -122,7 +122,7 @@ def Usermessager_deletenot(request, not_id):
|
||||
messages.success(request, 'Zgłoszenie Zamknięte')
|
||||
return redirect(UsermessagerPage)
|
||||
else:
|
||||
return redirect(index)
|
||||
return HttpResponseRedirect("http://127.0.0.1:8000/homepage/")
|
||||
|
||||
def VipuserPage(request):
|
||||
if request.user.is_authenticated and request.user.is_superuser == True:
|
||||
@ -135,7 +135,7 @@ def VipuserPage(request):
|
||||
}
|
||||
return HttpResponse(template.render(context, request))
|
||||
else:
|
||||
return redirect(index)
|
||||
return HttpResponseRedirect("http://127.0.0.1:8000/homepage/")
|
||||
|
||||
def Vipuser_delete(request, vip_id):
|
||||
if request.user.is_authenticated and request.user.is_superuser == True:
|
||||
@ -148,7 +148,7 @@ def Vipuser_delete(request, vip_id):
|
||||
messages.success(request, 'Usunięto status VIP')
|
||||
return redirect(VipuserPage)
|
||||
else:
|
||||
return redirect(index)
|
||||
return HttpResponseRedirect("http://127.0.0.1:8000/homepage/")
|
||||
|
||||
def Vipuser_extension(request, vip_id):
|
||||
if request.user.is_authenticated and request.user.is_superuser == True:
|
||||
@ -161,7 +161,7 @@ def Vipuser_extension(request, vip_id):
|
||||
messages.success(request, 'Przedłużono status VIP')
|
||||
return redirect(VipuserPage)
|
||||
else:
|
||||
return redirect(index)
|
||||
return HttpResponseRedirect("http://127.0.0.1:8000/homepage/")
|
||||
|
||||
def UserPage(request):
|
||||
if request.user.is_authenticated and request.user.is_superuser == True:
|
||||
@ -173,7 +173,7 @@ def UserPage(request):
|
||||
}
|
||||
return HttpResponse(template.render(context, request))
|
||||
else:
|
||||
return redirect(index)
|
||||
return HttpResponseRedirect("http://127.0.0.1:8000/homepage/")
|
||||
|
||||
def AddVIP(request, user_id):
|
||||
if request.user.is_authenticated and request.user.is_superuser == True:
|
||||
@ -200,4 +200,4 @@ def AddVIP(request, user_id):
|
||||
messages.success(request, 'Nadano status VIP')
|
||||
return redirect(UserPage)
|
||||
else:
|
||||
return redirect(index)
|
||||
return HttpResponseRedirect("http://127.0.0.1:8000/homepage/")
|
||||
|
Binary file not shown.
Binary file not shown.
@ -23,9 +23,10 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{% include 'ennavbar.html' %}
|
||||
{% include 'navbar3.html' %}
|
||||
{% include 'alerts.html' %}
|
||||
{% block content %} {% endblock %}
|
||||
{% include 'footer3.html' %}
|
||||
<script src="{% static 'js/jquery-3.2.1.min.js' %} "></script>
|
||||
<script src="{% static 'js/popper.min.js' %} "></script>
|
||||
<script src="{% static 'js/bootstrap.min.js' %} "></script>
|
55
SocialHelper/enGB/templates/base4.html
Normal file
55
SocialHelper/enGB/templates/base4.html
Normal file
@ -0,0 +1,55 @@
|
||||
{% load static %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
<title>SocialHelper</title>
|
||||
<link rel="stylesheet" href="{% static 'css/font-awesome.min.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'vendors/line-icon/css/simple-line-icons.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'vendors/elegant-icon/style.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'vendors/revolution/css/settings.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'vendors/revolution/css/layers.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'vendors/revolution/css/navigation.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'vendors/owl-carousel/owl.carousel.min.css" rel="stylesheet' %}">
|
||||
<link rel="stylesheet" href="{% static 'vendors/bootstrap-selector/css/bootstrap-select.min.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'css/style.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'css/responsive.css' %}">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{% include 'navbar4.html' %}
|
||||
{% include 'alerts.html' %}
|
||||
{% block content %} {% endblock %}
|
||||
{% include 'footer4.html' %}
|
||||
<script src="{% static 'js/jquery-3.2.1.min.js' %} "></script>
|
||||
<script src="{% static 'js/popper.min.js' %} "></script>
|
||||
<script src="{% static 'js/bootstrap.min.js' %} "></script>
|
||||
<script src="{% static 'vendors/revolution/js/jquery.themepunch.tools.min.js' %} "></script>
|
||||
<script src="{% static 'vendors/revolution/js/jquery.themepunch.revolution.min.js' %} "></script>
|
||||
<script src="{% static 'vendors/revolution/js/extensions/revolution.extension.actions.min.js' %} "></script>
|
||||
<script src="{% static 'vendors/revolution/js/extensions/revolution.extension.video.min.js' %} "></script>
|
||||
<script src="{% static 'vendors/revolution/js/extensions/revolution.extension.slideanims.min.js' %} "></script>
|
||||
<script src="{% static 'vendors/revolution/js/extensions/revolution.extension.layeranimation.min.js' %} "></script>
|
||||
<script src="{% static 'vendors/revolution/js/extensions/revolution.extension.navigation.min.js' %} "></script>
|
||||
<script src="{% static 'vendors/revolution/js/extensions/revolution.extension.slideanims.min.js' %} "></script>
|
||||
<script src="{% static 'vendors/counterup/jquery.waypoints.min.js' %} "></script>
|
||||
<script src="{% static 'vendors/counterup/jquery.counterup.min.js' %} "></script>
|
||||
<script src="{% static 'vendors/owl-carousel/owl.carousel.min.js' %} "></script>
|
||||
<script src="{% static 'vendors/bootstrap-selector/js/bootstrap-select.min.js' %} "></script>
|
||||
<script src="{% static 'vendors/image-dropdown/jquery.dd.min.js' %} "></script>
|
||||
<script src="{% static 'js/smoothscroll.js' %} "></script>
|
||||
<script src="{% static 'vendors/isotope/imagesloaded.pkgd.min.js' %} "></script>
|
||||
<script src="{% static 'vendors/isotope/isotope.pkgd.min.js' %} "></script>
|
||||
<script src="{% static 'vendors/magnify-popup/jquery.magnific-popup.min.js' %} "></script>
|
||||
<script src="{% static 'vendors/vertical-slider/js/jQuery.verticalCarousel.js' %} "></script>
|
||||
<script src="{% static 'vendors/jquery-ui/jquery-ui.js' %} "></script>
|
||||
<script src="{% static 'js/theme.js' %} "></script>
|
||||
</body>
|
||||
|
||||
</html>
|
BIN
SocialHelper/enGB/templates/enGB/.DS_Store
vendored
Normal file
BIN
SocialHelper/enGB/templates/enGB/.DS_Store
vendored
Normal file
Binary file not shown.
21
SocialHelper/enGB/templates/enGB/about.html
Normal file
21
SocialHelper/enGB/templates/enGB/about.html
Normal file
@ -0,0 +1,21 @@
|
||||
{% extends isVIP|yesno:"base3.html,base4.html" %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<body>
|
||||
|
||||
<section class="contact_area p_100">
|
||||
<div class="container">
|
||||
<div class="contact_title">
|
||||
<h2> About us </h2>
|
||||
<p> We are a young, dynamic team that loves fruity Thursdays! </p>
|
||||
<p> If you also like to eat a fresh apple every Thursday, be sure to go to the contact tab! </p>
|
||||
<p> Maybe we are looking for you? </p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
{% endblock %}
|
@ -1,4 +1,4 @@
|
||||
{% extends 'enbase.html' %}
|
||||
{% extends isVIP|yesno:"base3.html,base4.html" %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<!DOCTYPE html>
|
||||
@ -9,7 +9,7 @@
|
||||
<section class="solid_banner_area">
|
||||
<div class="container">
|
||||
<div class="solid_banner_inner">
|
||||
<h3>Rate User</h3>
|
||||
<h3>Rate the User</h3>
|
||||
<h5>{{ user_name }}</h5>
|
||||
</div>
|
||||
</div>
|
||||
@ -31,7 +31,7 @@
|
||||
<div class="container h-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<label for="name">Rate: <span id="demo"></span> <strong><span id="opinion"></span></strong></label>
|
||||
<label for="name">Rating: <span id="demo"></span> <strong><span id="opinion"></span></strong></label>
|
||||
<input type="range" style="width: 500px;" id="myRange" name="volume" min="1" max="5" step="1" color="Blue" value='0'>
|
||||
<script>
|
||||
var slider = document.getElementById("myRange");
|
||||
@ -43,15 +43,15 @@
|
||||
|
||||
|
||||
if (this.value == 1 ) {
|
||||
text = "<span style=\"color:red\">- Very Negative!</span>";
|
||||
text = "<span style=\"color:red\">- Very negative!</span>";
|
||||
} else if (this.value == 2) {
|
||||
text = "<span style=\"color:orange\">- Negative!";
|
||||
} else if (this.value == 3) {
|
||||
text = "<span style=\"color:black\">- Neutral";
|
||||
text = "<span style=\"color:black\">- Medium";
|
||||
} else if (this.value == 4) {
|
||||
text = "<span style=\"color:blue\">- Positive";
|
||||
text = "<span style=\"color:blue\">- Positively";
|
||||
} else {
|
||||
text = "<span style=\"color:green\">- Very Positive!";
|
||||
text = "<span style=\"color:green\">- Very positive!";
|
||||
}
|
||||
output.innerHTML = this.value
|
||||
output2.innerHTML = text;
|
||||
@ -77,7 +77,7 @@
|
||||
<div class="container h-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<input type="submit" class="btn btn-primary update_btn" value="Add Comment">
|
||||
<input type="submit" class="btn btn-primary update_btn" value="Add comment">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -89,91 +89,6 @@
|
||||
</form>
|
||||
<!--================End Track Area =================-->
|
||||
<!--================End Register 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 %}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{% extends 'enbase.html' %}
|
||||
{% extends isVIP|yesno:"base3.html,base4.html" %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<!DOCTYPE html>
|
||||
@ -11,7 +11,7 @@
|
||||
<section class="solid_banner_area">
|
||||
<div class="container">
|
||||
<div class="solid_banner_inner">
|
||||
<h3>Add new announcement</h3>
|
||||
<h3>Add a new ad</h3>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@ -42,10 +42,10 @@
|
||||
<div class="container h-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<label for="cun">Offer type <span>*</span></label>
|
||||
<label for="cun">Kind of offer<span>*</span></label>
|
||||
<select id="cun" name="type">
|
||||
<option value="2">Give</option>
|
||||
<option value="1">Need</option>
|
||||
<option value="2">I will give</option>
|
||||
<option value="1">I need</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@ -54,7 +54,7 @@
|
||||
<div class="container h-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<label for="cun">This is a volunteer announcement <span>*</span></label>
|
||||
<label for="cun">This is a volunteer offer<span>*</span></label>
|
||||
<select id="cun" name="wol">
|
||||
<option value="1">No</option>
|
||||
<option value="2">Yes</option>
|
||||
@ -75,7 +75,7 @@
|
||||
<div class="container h-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<label for="name">Location <span>*</span></label>
|
||||
<label for="name">City <span>*</span></label>
|
||||
<input list="browsers" name="browser" id="browser" class="form-control" aria-describedby="name">
|
||||
<datalist id="browsers">
|
||||
{% for place in place_list %}
|
||||
@ -98,7 +98,7 @@
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<div class="file-field">
|
||||
<span>Choose a picture</span>
|
||||
<span>Photo</span>
|
||||
<input name="file" type="file" accept="image/*">
|
||||
</div>
|
||||
</div>
|
||||
@ -119,91 +119,6 @@
|
||||
</form>
|
||||
<!--================End Track Area =================-->
|
||||
<!--================End Register 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 %}
|
||||
|
38
SocialHelper/enGB/templates/enGB/chating.html
Normal file
38
SocialHelper/enGB/templates/enGB/chating.html
Normal file
@ -0,0 +1,38 @@
|
||||
|
||||
{% block content %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<style>
|
||||
.squareblue{
|
||||
background-color: #0084ff;
|
||||
border-radius: 10px / 10px;
|
||||
}
|
||||
|
||||
.greclass{
|
||||
background-color: #e4e6eb;
|
||||
border-radius: 10px / 10px;
|
||||
}
|
||||
|
||||
</style>
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="5">
|
||||
</head>
|
||||
<body style="background-color:white;">
|
||||
{% for messages in mess %}
|
||||
{% if user_get_id == messages.author_id.id %}
|
||||
<p style="text-align:right;" class="squareblue">
|
||||
{{messages.author_id}}:<br>
|
||||
{{messages.text}}
|
||||
</p>
|
||||
{% else %}
|
||||
<p style="text-align:left;" class="greclass">
|
||||
{{messages.author_id}}:<br>
|
||||
{{messages.text}}
|
||||
</p>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<p style="text-align:right;"><span style="font-size:10px">{{ last_date.pub_date }}</span></p>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
{% endblock %}
|
@ -1,49 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="pl">
|
||||
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<title>Conditions of use</title>
|
||||
|
||||
<meta name="description" content="Regulamin serwisu SocialHelper, jedynej w pełni barterowej usługi w internecie">
|
||||
<meta name="keywords" content="SocialHelper, barter, wymiana usług, wymiana przedmiotw">
|
||||
<meta http-equiv="X-Ua-Compatible" content="IE=edge,chrome=1">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<h1>SocialHelper Conditions of use</h1>
|
||||
|
||||
The website for displaying SocialHelper items and services is managed by the SocialHelper company based at Jana Kowalskiego 99, 12-200 Warsaw, Poland.
|
||||
<br/> <br/>
|
||||
Before registering on the website, the user is obliged to read these regulations and undertake to comply with them.
|
||||
<br/> <br/>
|
||||
§1.1 These terms and conditions define the mutual relationship between SocialHelper and Users or Visitors.
|
||||
<br/>
|
||||
§1.2 The website allows Users to exchange items and services on the basis of barter or voluntary work.
|
||||
<br/>
|
||||
§1.3 The website is not intended for minors. In the case of minors, a parent or guardian must register to use the services and supervise the use of the services by minors.
|
||||
<br/>
|
||||
§1.4 When registering on the website, the user is required to provide his e-mail address and password (directly or using a Facebook or Google profile).
|
||||
<br/> <br/>
|
||||
§2.1 SocialHelper is an internet intermediary service offering users a virtual exchange forum. SocialHelper is not a party to any transaction between users.
|
||||
<br/>
|
||||
§2.2 The items on display may not be medical or human products, stimulants, firearms and ammunition, as well as any items whose possession is inconsistent with Polish law.
|
||||
<br/>
|
||||
§2.3 The services displayed cannot be of a sexual nature.
|
||||
<br/>
|
||||
§2.4 The user must be the owner of the items on display and have the right to exchange them.
|
||||
<br/>
|
||||
§2.5 SocialHelper reserves the right to block users who violate the regulations, provide incorrect information, fail to complete the transaction and use chat for matters not related to the transactions carried out.
|
||||
<br/>
|
||||
§2.6 Users may activate a premium account subject to a recurring monthly fee of PLN 9.99 charged to their account or debit card.
|
||||
<br/> <br/>
|
||||
|
||||
§3.1 All Visitors and Users are fully responsible for the items and services displayed on the SocialHelper website, including its description, the correctness of other details presented and communication with other users, as well as in general transactions concluded with other users and disputes arising therefrom.
|
||||
<br/> <br/>
|
||||
§4.1 SocialHelper owns all intellectual property rights in the site, its system (directory, portability, etc.), site design and software used by the site, including trademarks and domain names.
|
||||
<br/>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
@ -1,4 +1,4 @@
|
||||
{% extends 'enbase.html' %}
|
||||
{% extends isVIP|yesno:"base3.html,base4.html" %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<!DOCTYPE html>
|
||||
@ -8,9 +8,8 @@
|
||||
|
||||
<section class="contact_area p_100">
|
||||
<div class="container">
|
||||
<div class="contact_title">
|
||||
<h2>Contact with us!</h2>
|
||||
<p>Need help? Please contact with us via telephone, e-mail address or use our contact form below</p>
|
||||
<div class="contact_title"><h2> Contact us </h2>
|
||||
<p> Need support? Please contact us by phone, e-mail or use the contact form below </p>
|
||||
</div>
|
||||
<div class="row contact_details">
|
||||
<div class="col-lg-4 col-md-6">
|
||||
@ -46,108 +45,27 @@
|
||||
</div>
|
||||
<div class="contact_form_inner">
|
||||
<h3> Send a message </h3>
|
||||
<form class="contact_us_form row" action="contact_process.php" method="post" id="contactForm" novalidate="novalidate">
|
||||
<form action="{% url 'encontact' %}" method="POST" enctype="multipart/form-data" class="contact_us_form row">
|
||||
{% csrf_token %}
|
||||
{{ form.media }}
|
||||
{{ form.as_p }}
|
||||
|
||||
<div class="form-group col-lg-6">
|
||||
<input type="text" class="form-control" id="name" name="name" placeholder="Imię i nazwisko">
|
||||
<input type="text" class="form-control" id="name" name="name" placeholder="Name">
|
||||
</div>
|
||||
<div class="form-group col-lg-6">
|
||||
<input type="email" class="form-control" id="email" name="email" placeholder="Adres email">
|
||||
<input type="email" class="form-control" id="email" name="email" placeholder="Email">
|
||||
</div>
|
||||
<div class="form-group col-lg-12">
|
||||
<textarea class="form-control" name="message" id="message" rows="1" placeholder="Napisz wiadomość..."></textarea>
|
||||
<textarea class="form-control" name="message" id="message" rows="1" placeholder="Write a message..."></textarea>
|
||||
</div>
|
||||
<div class="form-group col-lg-12">
|
||||
<button type="submit" value="submit" class="btn update_btn form-control">Send a message</button>
|
||||
<input type="submit" class="btn update_btn form-control" value="Send"></input>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!--================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 %}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{% extends 'enbase.html' %}
|
||||
{% extends isVIP|yesno:"base3.html,base4.html" %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<!DOCTYPE html>
|
||||
@ -95,7 +95,7 @@ body {font-family: Arial, Helvetica, sans-serif;}
|
||||
<section class="solid_banner_area">
|
||||
<div class="container">
|
||||
<div class="solid_banner_inner">
|
||||
<h3>Create an account</h3>
|
||||
<h3> Create a new account </h3>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@ -132,7 +132,7 @@ body {font-family: Arial, Helvetica, sans-serif;}
|
||||
<div class="container h-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<label for="name">Confirm your password: <span>*</span></label>
|
||||
<label for="name">Confirm Password: <span>*</span></label>
|
||||
<input type="password" class="form-control" id="name" aria-describedby="name" placeholder="" name="pow_password">
|
||||
</div>
|
||||
</div>
|
||||
@ -143,17 +143,17 @@ body {font-family: Arial, Helvetica, sans-serif;}
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<input type="hidden" id="scales" name="scales" value="No">
|
||||
<input type="checkbox" id="scales" name="scales" value="Yes">
|
||||
<label>I've read <a id="myBtn" style="color:blue">Terms of use</a></label>
|
||||
<label>I accept the <a id="myBtn" style="color:blue">Terms of Use</a></label>
|
||||
<div id="myModal" class="modal">
|
||||
|
||||
<!-- Modal content -->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<span class="close">×</span>
|
||||
<h2>Terms of use</h2>
|
||||
<h2>Terms of Use</h2>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<h6> The website for displaying SocialHelper items and services is managed by the SocialHelper company based at Jana Kowalskiego 99, 12-200 Warsaw, Poland.
|
||||
<h6> The website for displaying SocialHelper items and services is managed by the SocialHelper company with its registered office at Jana Kowalskiego 99, 12-200 Warsaw, Poland.
|
||||
</h6>
|
||||
<br/>
|
||||
<h6> Before registering on the website, the user is obliged to read these regulations and undertake to comply with them.
|
||||
@ -161,13 +161,12 @@ body {font-family: Arial, Helvetica, sans-serif;}
|
||||
<br>
|
||||
§1.1 These terms and conditions define the mutual relationship between SocialHelper and Users or Visitors.
|
||||
<br/>
|
||||
§1.2 The website allows Users to exchange items and services on a barter or voluntary basis.
|
||||
§1.2 The website allows Users to exchange items and services on the basis of barter or voluntary work.
|
||||
<br/>
|
||||
§1.3 The website is not intended for minors. In the case of minors, a parent or guardian must register to use the services and supervise the use of the services by minors.
|
||||
<br/>
|
||||
§1.4 When registering on the website, the user is required to provide his e-mail address and password (directly or using a Facebook or Google profile).
|
||||
<br/> <br/>
|
||||
|
||||
§2.1 SocialHelper is an internet intermediary service offering users a virtual exchange forum. SocialHelper is not a party to any transaction between users.
|
||||
<br/>
|
||||
§2.2 The items on display may not be medical or human products, stimulants, firearms and ammunition, as well as any items whose possession is inconsistent with Polish law.
|
||||
@ -181,7 +180,6 @@ body {font-family: Arial, Helvetica, sans-serif;}
|
||||
§2.6 Users may activate a premium account subject to a recurring monthly fee of PLN 9.99 charged to their account or debit card.
|
||||
<br/> <br/>
|
||||
|
||||
|
||||
§3.1 All Visitors and Users are fully responsible for the items and services displayed on the SocialHelper website, including its description, the correctness of other details presented and communication with other users, as well as in general transactions concluded with other users and disputes arising therefrom.
|
||||
<br/> <br/>
|
||||
§4.1 SocialHelper owns all intellectual property rights to the site, its system (directory, portability, etc.), site design and software used by the site, including trademarks and domain names.
|
||||
@ -210,91 +208,6 @@ body {font-family: Arial, Helvetica, sans-serif;}
|
||||
</form>
|
||||
<!--================End Track Area =================-->
|
||||
<!--================End Register 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 =================-->
|
||||
<script>
|
||||
// Get the modal
|
||||
var modal = document.getElementById("myModal");
|
||||
|
@ -1,4 +1,4 @@
|
||||
{% extends 'enbase.html' %}
|
||||
{% extends isVIP|yesno:"base3.html,base4.html" %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<!DOCTYPE html>
|
||||
@ -8,8 +8,7 @@
|
||||
<!--================Categories Banner Area =================-->
|
||||
<section class="solid_banner_area">
|
||||
<div class="container">
|
||||
<div class="solid_banner_inner">
|
||||
<h3>Change Password</h3>
|
||||
<div class="solid_banner_inner"><h3> Change password </h3>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@ -30,7 +29,7 @@
|
||||
<div class="container h-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<label for="name">Password: <span>*</span></label>
|
||||
<label for="name">Current password:<span>*</span></label>
|
||||
<input type="password" class="form-control" id="password" aria-describedby="name" placeholder="" name="oldpassword">
|
||||
</div>
|
||||
</div>
|
||||
@ -48,7 +47,7 @@
|
||||
<div class="container h-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<label for="name">Confirm new Password: <span>*</span></label>
|
||||
<label for="name">Confirm >New Password: <span>*</span></label>
|
||||
<input type="password" class="form-control" id="name" aria-describedby="name" placeholder="" name="newpassword2">
|
||||
</div>
|
||||
</div>
|
||||
@ -57,7 +56,7 @@
|
||||
<div class="container h-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<input type="submit" class="btn btn-primary update_btn" value="Change">
|
||||
<input type="submit" class="btn btn-primary update_btn" value="Send">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -69,91 +68,6 @@
|
||||
</form>
|
||||
<!--================End Track Area =================-->
|
||||
<!--================End Register 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 %}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{% extends 'enbase.html' %}
|
||||
{% extends isVIP|yesno:"base3.html,base4.html" %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<!DOCTYPE html>
|
||||
@ -9,7 +9,7 @@
|
||||
<section class="solid_banner_area">
|
||||
<div class="container">
|
||||
<div class="solid_banner_inner">
|
||||
<h3>Edit Your Offer</h3>
|
||||
<h3>Edit offer</h3>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@ -28,7 +28,7 @@
|
||||
<div class="container h-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<label for="cun">Type of offer<span>*</span></label>
|
||||
<label for="cun">Type of Offer<span>*</span></label>
|
||||
<select id="cun" name="offer">
|
||||
{% if offer.type == types.0.0 %}
|
||||
<option value="1">Service</option>
|
||||
@ -45,14 +45,14 @@
|
||||
<div class="container h-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<label for="cun">Offer type <span>*</span></label>
|
||||
<label for="cun">Kind of Offer <span>*</span></label>
|
||||
<select id="cun" name="type">
|
||||
{% if offer.offer == types_o.0.0 %}
|
||||
<option selected value="1">Give</option>
|
||||
<option value="2">Need</option>
|
||||
<option selected value="1">I will give</option>
|
||||
<option value="2">I need</option>
|
||||
{% else %}
|
||||
<option value="1">Give</option>
|
||||
<option selected value="2">Need</option>
|
||||
<option value="1">ItemI will give</option>
|
||||
<option selected value="2">I need</option>
|
||||
{% endif %}
|
||||
</select>
|
||||
</div>
|
||||
@ -62,7 +62,7 @@
|
||||
<div class="container h-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<label for="cun">This is a volunteer announcement <span>*</span></label>
|
||||
<label for="cun">This is a volunteer offer <span>*</span></label>
|
||||
<select id="cun" name="wol">
|
||||
<option value="1">No</option>
|
||||
<option value="2">Yes</option>
|
||||
@ -83,7 +83,7 @@
|
||||
<div class="container h-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<label for="name">Location <span>*</span></label>
|
||||
<label for="name">City <span>*</span></label>
|
||||
<input list="browsers" name="browser" id="browser" class="form-control" aria-describedby="name" value={{ offer.place }}>
|
||||
<datalist id="browsers">
|
||||
{% for place in place_list %}
|
||||
@ -119,7 +119,7 @@
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<div class="file-field">
|
||||
<span>Choose a picture</span>
|
||||
<span>Photo</span>
|
||||
<input name="file" type="file" accept="image/*" value={{ offer.picture.url }}>
|
||||
</div>
|
||||
</div>
|
||||
@ -135,91 +135,6 @@
|
||||
</form>
|
||||
<!--================End Track Area =================-->
|
||||
<!--================End Register 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 %}
|
||||
|
@ -1,160 +0,0 @@
|
||||
{% extends 'enbase.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>Sing in</h3>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!--================End Categories Banner Area =================-->
|
||||
|
||||
<!--================Register Area =================-->
|
||||
<form action="{% url 'enlogin' %}" method="POST" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{ form.media }}
|
||||
{{ form.as_p }}
|
||||
<input type="hidden" name="email" value="">
|
||||
<input type="hidden" name="password" value="">
|
||||
<section class="track_area p_100">
|
||||
<div class="container">
|
||||
<div class="track_inner">
|
||||
<form class="track_form row">
|
||||
|
||||
<div class="container h-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<label for="name">Email: <span>*</span></label>
|
||||
<input type="text" class="form-control" id="name" aria-describedby="name" placeholder="" name="email">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container h-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<label for="name">Password: <span>*</span></label>
|
||||
<input type="password" class="form-control" id="name" aria-describedby="name" placeholder="" name="password">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container h-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<input type="submit" class="btn btn-primary update_btn" value="Login">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container h-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
|
||||
<label for="name">Don't have an account? Create one here:</label> <br>
|
||||
<a href="create_user"><button type="button" class="btn btn-primary update_btn">Register</button></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
<!--================End Track Area =================-->
|
||||
<!--================End Register 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 %}
|
@ -1,12 +1,25 @@
|
||||
{% extends 'enbase.html' %}
|
||||
{% extends isVIP|yesno:"base3.html,base4.html" %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<body>
|
||||
|
||||
<style>
|
||||
a:link {
|
||||
color: black;
|
||||
background-color: transparent;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: blue;
|
||||
background-color: transparent;
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
|
||||
<!--================Categories Product Area =================-->
|
||||
<section class="categories_product_main p_80">
|
||||
@ -14,25 +27,6 @@
|
||||
<div class="categories_main_inner">
|
||||
<div class="row row_disable">
|
||||
<div class="col-lg-9 float-md-right">
|
||||
<div class="showing_fillter">
|
||||
<div class="row m0">
|
||||
<div class="secand_fillter">
|
||||
<h4>Sort:</h4>
|
||||
<select class="selectpicker">
|
||||
<option>Name</option>
|
||||
<option>Latest</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="third_fillter">
|
||||
<h4>Show: </h4>
|
||||
<select class="selectpicker">
|
||||
<option>5</option>
|
||||
<option>10</option>
|
||||
<option>20</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="c_product_grid_details">
|
||||
{% if all_product %}
|
||||
@ -48,20 +42,21 @@
|
||||
<img class="img-fluid" src="{{ product.picture.url }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-8 col-md-6">
|
||||
<div class="c_product_text">
|
||||
<h1>{{ product.title }}</h1>
|
||||
<h6><a href="user_profile/{{ product.user_iden }}">{{ product.user_iden }}</a></h6>
|
||||
<a href="enoffer_details/{{ product.id }}"><h1>{{ product.title }}</h1></a>
|
||||
<h6> <a href="enuser_profile/{{ product.user_iden }}">{{ product.user_iden }}</a></h6>
|
||||
<h5>
|
||||
{% if types.0.0 == product.type %}
|
||||
Need
|
||||
I will Need
|
||||
{% else %}
|
||||
Give
|
||||
I Give
|
||||
{% endif %}
|
||||
{% if types_o.0.0 == product.offer %}
|
||||
Service
|
||||
{% else %}
|
||||
Items
|
||||
Item
|
||||
{% endif %}</h5>
|
||||
|
||||
<h6>Location: <span>{{ product.place }}</span></h6>
|
||||
@ -73,17 +68,6 @@
|
||||
{% else %}
|
||||
<p>No polls are available.</p>
|
||||
{% endif %}
|
||||
<nav aria-label="Page navigation example" class="pagination_area">
|
||||
<ul class="pagination">
|
||||
<li class="page-item"><a class="page-link" href="#">1</a></li>
|
||||
<li class="page-item"><a class="page-link" href="#">2</a></li>
|
||||
<li class="page-item"><a class="page-link" href="#">3</a></li>
|
||||
<li class="page-item"><a class="page-link" href="#">4</a></li>
|
||||
<li class="page-item"><a class="page-link" href="#">5</a></li>
|
||||
<li class="page-item"><a class="page-link" href="#">6</a></li>
|
||||
<li class="page-item next"><a class="page-link" href="#"><i class="fa fa-angle-right" aria-hidden="true"></i></a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -101,22 +85,22 @@
|
||||
<div class="categories_sidebar">
|
||||
<aside class="l_widgest l_p_categories_widget">
|
||||
<div class="l_w_title">
|
||||
<h3>Filters</h3>
|
||||
<h3>Filter</h3>
|
||||
</div>
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item">
|
||||
<h3 class="cart_single_title">Location </h3>
|
||||
<h3 class="cart_single_title">City </h3>
|
||||
{% if place_local %}
|
||||
<input type="text" name="place" placeholder="Location" value={{ place_local }}>
|
||||
<input type="text" name="place" placeholder="Miejscowość" value={{ place_local }}>
|
||||
{% else %}
|
||||
<input type="text" name="place" placeholder="Location" >
|
||||
<input type="text" name="place" placeholder="Miejscowość" >
|
||||
{% endif %}
|
||||
</li>
|
||||
</ul>
|
||||
</aside>
|
||||
<aside class="l_widgest l_menufacture_widget">
|
||||
<div class="l_w_title">
|
||||
<h3>Offer type</h3>
|
||||
<h3>Type of Offer</h3>
|
||||
</div>
|
||||
<ul>
|
||||
{% if oddam_local %}
|
||||
@ -124,20 +108,20 @@
|
||||
{% else %}
|
||||
<input type="checkbox" id="Oddam" name="Oddam" >
|
||||
{% endif %}
|
||||
<label for="Oddam">Give</label>
|
||||
<label for="Oddam">I will Give</label>
|
||||
<p></p>
|
||||
{% if potrzebuje_local %}
|
||||
<input type="checkbox" id="Potrzebuje" name="Potrzebuje" Checked>
|
||||
{% else %}
|
||||
<input type="checkbox" id="Potrzebuje" name="Potrzebuje" >
|
||||
{% endif %}
|
||||
<label for="Potrzebuje">Need</label>
|
||||
<label for="Potrzebuje">I Need</label>
|
||||
</ul>
|
||||
</aside>
|
||||
|
||||
<aside class="l_widgest l_menufacture_widget">
|
||||
<div class="l_w_title">
|
||||
<h3>Type of offer</h3>
|
||||
<h3>Kind of Offer</h3>
|
||||
</div>
|
||||
<ul>
|
||||
{% if usluga_local %}
|
||||
@ -180,96 +164,7 @@
|
||||
</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 %}
|
||||
|
76
SocialHelper/enGB/templates/enGB/login.html
Normal file
76
SocialHelper/enGB/templates/enGB/login.html
Normal file
@ -0,0 +1,76 @@
|
||||
{% extends isVIP|yesno:"base3.html,base4.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>Sign In</h3>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!--================End Categories Banner Area =================-->
|
||||
|
||||
<!--================Register Area =================-->
|
||||
<form action="{% url 'enlogin' %}" method="POST" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{ form.media }}
|
||||
{{ form.as_p }}
|
||||
<input type="hidden" name="email" value="">
|
||||
<input type="hidden" name="password" value="">
|
||||
<section class="track_area p_100">
|
||||
<div class="container">
|
||||
<div class="track_inner">
|
||||
<form class="track_form row">
|
||||
|
||||
<div class="container h-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<label for="name">Email: <span>*</span></label>
|
||||
<input type="text" class="form-control" id="name" aria-describedby="name" placeholder="" name="email">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container h-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<label for="name">Password: <span>*</span></label>
|
||||
<input type="password" class="form-control" id="name" aria-describedby="name" placeholder="" name="password">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container h-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<input type="submit" class="btn btn-primary update_btn" value="Sign In">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container h-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
|
||||
<label for="name">If you don't have an account, you can create one here:</label> <br>
|
||||
<a href="encreate_user"><button type="button" class="btn btn-primary update_btn">REGISTRATION</button></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
<!--================End Track Area =================-->
|
||||
<!--================End Register Area =================-->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
{% endblock %}
|
@ -1,4 +1,4 @@
|
||||
{% extends 'enbase.html' %}
|
||||
{% extends isVIP|yesno:"base3.html,base4.html" %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<!DOCTYPE html>
|
||||
@ -10,10 +10,23 @@
|
||||
<div class="container">
|
||||
<div class="solid_banner_inner">
|
||||
<h5>{{ username }}
|
||||
<h3>My Offer</h3>
|
||||
<h3>My Offers</h3>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<style>
|
||||
a:link {
|
||||
color: black;
|
||||
background-color: transparent;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: blue;
|
||||
background-color: transparent;
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
<!--================End Categories Banner Area =================-->
|
||||
|
||||
<!--================Categories Product Area =================-->
|
||||
@ -40,22 +53,22 @@
|
||||
</div>
|
||||
<div class="col-lg-8 col-md-6">
|
||||
<div class="c_product_text">
|
||||
<h1>{{ product.title }}</h1>
|
||||
<a href="/enGB/enoffer_details/{{ product.id }}"><h1>{{ product.title }}</h1></a>
|
||||
{% if types.0.0 == product.type %}
|
||||
<h5>Need
|
||||
<h5>I will Need
|
||||
{% else %}
|
||||
<h5>Give
|
||||
<h5>I Give
|
||||
{% endif %}
|
||||
{% if types_o.0.0 == product.offer %}
|
||||
Service</h5>
|
||||
<a href="{{ product.id }}/delete_offer"><button type="button" class="btn btn-danger pull-right">Close</button></a>
|
||||
<a href="{{ product.id }}/edit_offer"><button type="button" class="btn btn-primary pull-right">Edit</button></a>
|
||||
<a href="{{ product.id }}/endelete_offer"><button type="button" class="btn btn-danger pull-right">End</button></a>
|
||||
<a href="{{ product.id }}/enedit_offer"><button type="button" class="btn btn-primary pull-right">Edit</button></a>
|
||||
{% else %}
|
||||
Item</h5>
|
||||
<a href="{{ product.id }}/delete_offer"><button type="button" class="btn btn-danger pull-right">Close</button></a>
|
||||
<a href="{{ product.id }}/edit_offer"><button type="button" class="btn btn-primary pull-right">Edit</button></a>
|
||||
<a href="{{ product.id }}/endelete_offer"><button type="button" class="btn btn-danger pull-right">End</button></a>
|
||||
<a href="{{ product.id }}/enedit_offer"><button type="button" class="btn btn-primary pull-right">Edit</button></a>
|
||||
{% endif %}
|
||||
<h6>Locality: <span>{{ product.place }}</span></h6>
|
||||
<h6>City: <span>{{ product.place }}</span></h6>
|
||||
<p>{{ product.description }}</p>
|
||||
</div>
|
||||
</div>
|
||||
@ -67,8 +80,8 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
<br>
|
||||
<a href="delete_user"><button type="button" class="btn btn-danger pull-right">Delete Account</button></a>
|
||||
<a href="edit_user"><button type="button" class="btn btn-primary pull-right">Change Password</button></a>
|
||||
<a href="endelete_user"><button type="button" class="btn btn-danger pull-right">Delete Account</button></a>
|
||||
<a href="enedit_user"><button type="button" class="btn btn-primary pull-right">Change Password</button></a>
|
||||
</div>
|
||||
|
||||
<form action="{% url 'enfilter' %}" method="post">
|
||||
@ -87,91 +100,6 @@
|
||||
</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 %}
|
||||
|
59
SocialHelper/enGB/templates/enGB/offer_note.html
Normal file
59
SocialHelper/enGB/templates/enGB/offer_note.html
Normal file
@ -0,0 +1,59 @@
|
||||
{% extends isVIP|yesno:"base3.html,base4.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>Report Offer:</h3>
|
||||
<h5>{{ offer.title }}</h5>
|
||||
<h6>User: <strong>{{ offer.user_iden }}</strong></h6>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!--================End Categories Banner Area =================-->
|
||||
|
||||
<!--================Register Area =================-->
|
||||
<form action="{% url 'enoffer_note' offer.id %}" method="POST" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{ form.media }}
|
||||
{{ form.as_p }}
|
||||
<input type="hidden" name="email" value="">
|
||||
<input type="hidden" name="password" value="">
|
||||
<section class="track_area p_100">
|
||||
<div class="container">
|
||||
<div class="track_inner">
|
||||
<form class="track_form row">
|
||||
|
||||
<div class="container h-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<label for="name">Content of the notification: <span>*</span></label>
|
||||
<textarea class="form-control" id="order" rows="3" name="script"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container h-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<input type="submit" class="btn btn-primary update_btn" value="Report">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
<!--================End Track Area =================-->
|
||||
<!--================End Register Area =================-->
|
||||
</body>
|
||||
</html>
|
||||
{% endblock %}
|
191
SocialHelper/enGB/templates/enGB/offer_page.html
Normal file
191
SocialHelper/enGB/templates/enGB/offer_page.html
Normal file
@ -0,0 +1,191 @@
|
||||
{% extends isVIP|yesno:"base3.html,base4.html" %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<body>
|
||||
<style>
|
||||
.tabcontent {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Style the tab */
|
||||
.tab {
|
||||
float: left;
|
||||
border: 1px solid #ccc;
|
||||
background-color: #f1f1f1;
|
||||
width: 100%;
|
||||
height: 300px;
|
||||
}
|
||||
|
||||
/* Style the buttons inside the tab */
|
||||
.tab button {
|
||||
display: block;
|
||||
background-color: inherit;
|
||||
color: black;
|
||||
padding: 22px 16px;
|
||||
width: 100%;
|
||||
border: none;
|
||||
outline: none;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
transition: 0.3s;
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
/* Change background color of buttons on hover */
|
||||
.tab button:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
/* Create an active/current "tab button" class */
|
||||
.tab button.active {
|
||||
background-color: #ccc;
|
||||
}
|
||||
</style>
|
||||
|
||||
<!--================Categories Banner Area =================-->
|
||||
<section class="solid_banner_area">
|
||||
<div class="container">
|
||||
<div class="solid_banner_inner">
|
||||
<h3>Offer Details</h3>
|
||||
{% if offer.Wolontatriat %}
|
||||
<h5>Volunteer Offer</h5>
|
||||
{% endif %}
|
||||
{% if types.0.0 == offer.type %}
|
||||
I will Need
|
||||
{% else %}
|
||||
I give
|
||||
{% endif %}
|
||||
{% if types_o.0.0 == offer.offer %}
|
||||
Service
|
||||
{% else %}
|
||||
Item
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!--================End Categories Banner Area =================-->
|
||||
|
||||
<!--================Product Details Area =================-->
|
||||
<section class="product_details_area">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-4">
|
||||
<div class="product_details_slider">
|
||||
<div id="product_slider" class="rev_slider" data-version="5.3.1.6">
|
||||
<ul> <!-- SLIDE -->
|
||||
<li data-index="rs-137221490" data-transition="scaledownfrombottom" data-slotamount="7" data-easein="Power3.easeInOut" data-easeout="Power3.easeInOut" data-masterspeed="1500" data-thumb="img/product/product-details/p-details-tab-1.jpg" data-rotate="0" data-fstransition="fade" data-fsmasterspeed="1500" data-fsslotamount="7" data-saveperformance="off" data-title="Ishtar X Tussilago" data-param1="25/08/2015" data-description="">
|
||||
<!-- MAIN IMAGE -->
|
||||
<img src="{{ offer.picture.url }}" width="200">
|
||||
<!-- LAYERS -->
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-8">
|
||||
<div class="product_details_text">
|
||||
<h2 style="color:red">{{ offer.title }}</h2><br></br>
|
||||
<h3>Listed by: {{ offer.user_iden }}</h3>
|
||||
<h6>City: <span> {{ offer.place }}</span></h6><br></br>
|
||||
<p>{{ offer.description }}</p><br></br>
|
||||
{% if user.is_authenticated %}
|
||||
{% if user_get_id is not offer.user_iden.id %}
|
||||
<div class="quantity">
|
||||
<a class="btn btn-dark" href="#sec2">Write a message</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<a href="/enGB/enoffer_note/{{offer.id}}"><button type="button" class="btn btn-danger pull-right">Report Offer</button></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!--================End Product Details Area =================-->
|
||||
|
||||
{% if user.is_authenticated %}
|
||||
<section class="solid_banner_area">
|
||||
<div class="container">
|
||||
|
||||
<div class="solid_banner_inner">
|
||||
|
||||
<h3 id="sec2">Messages</h3>
|
||||
<div class="row justify-content-md-center">
|
||||
{% if user_get_id == offer.user_iden.id %}
|
||||
<div class="col-lg-4 col-md-6">
|
||||
<div class="tab" style="text-align:right;">
|
||||
|
||||
{% for user in email_list %}
|
||||
<button onclick="openCity(event, '{{ user.id }}')" checked >{{ user.email }}</button><p></p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-8 col-md-6">
|
||||
{% for user in email_list %}
|
||||
<div id="{{ user.id }}" class="tabcontent">
|
||||
<iframe src="/enGB/enchating/{{offer.id}}/{{offer.user_iden.id}}/{{user.id}}" width="770", height="500"></iframe>
|
||||
<form action="{% url 'ensend_message' %}" method="post">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="author_id" value="{{ offer.user_iden.id }}">
|
||||
<input type="hidden" name="sec_user_id" value="{{ user.id }}">
|
||||
<input type="hidden" name="product_id" value="{{ offer.id }}">
|
||||
<textarea class="form-control" id="order" rows="3" name="text", placeholder="Write a message"></textarea>
|
||||
<input type="submit" class="btn btn-primary update_btn" value="send">
|
||||
</form>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="col-lg-8 col-md-6">
|
||||
<iframe src="/enGB/enchating/{{offer.id}}/{{user_get_id}}/{{offer.user_iden.id}}" width="770", height="500"></iframe>
|
||||
<form action="{% url 'ensend_message' %}" method="post">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="author_id" value="{{user_get_id}}">
|
||||
<input type="hidden" name="sec_user_id" value="{{offer.user_iden.id}}">
|
||||
<input type="hidden" name="product_id" value="{{ offer.id }}">
|
||||
<textarea class="form-control" id="order" rows="3" name="text", placeholder="Write a message"></textarea>
|
||||
<input type="submit" class="btn btn-primary update_btn" value="Send">
|
||||
</form>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
{% endif %}
|
||||
<div class="col-lg-8">
|
||||
</div>
|
||||
<script>
|
||||
function openCity(evt, cityName) {
|
||||
// Declare all variables
|
||||
var i, tabcontent, tablinks;
|
||||
|
||||
// Get all elements with class="tabcontent" and hide them
|
||||
tabcontent = document.getElementsByClassName("tabcontent");
|
||||
for (i = 0; i < tabcontent.length; i++) {
|
||||
tabcontent[i].style.display = "none";
|
||||
}
|
||||
|
||||
// Get all elements with class="tablinks" and remove the class "active"
|
||||
tablinks = document.getElementsByClassName("tablinks");
|
||||
for (i = 0; i < tablinks.length; i++) {
|
||||
tablinks[i].className = tablinks[i].className.replace(" active", "");
|
||||
}
|
||||
|
||||
// Show the current tab, and add an "active" class to the button that opened the tab
|
||||
document.getElementById(cityName).style.display = "block";
|
||||
evt.currentTarget.className += " active";
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<!--================End Categories Banner Area =================-->
|
||||
|
||||
<!--================Categories Product Area =================-->
|
||||
<!--================End Categories Product Area =================-->
|
||||
</body>
|
||||
</html>
|
||||
{% endblock %}
|
@ -1,4 +1,4 @@
|
||||
{% extends 'enbase.html' %}
|
||||
{% extends isVIP|yesno:"base3.html,base4.html" %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<!DOCTYPE html>
|
||||
@ -8,9 +8,9 @@
|
||||
|
||||
<section class="contact_area p_100">
|
||||
<div class="container">
|
||||
<h1>SocialHelper Terms of Use</h1>
|
||||
<h1>Terms Of Use</h1>
|
||||
<br>
|
||||
<h6> The website for displaying SocialHelper items and services is managed by the SocialHelper company based at Jana Kowalskiego 99, 12-200 Warsaw, Poland.
|
||||
<h6> The website for displaying SocialHelper items and services is managed by the SocialHelper company with its registered office at Jana Kowalskiego 99, 12-200 Warsaw, Poland.
|
||||
</h6>
|
||||
<br/>
|
||||
<h6> Before registering on the website, the user is obliged to read these regulations and undertake to comply with them.
|
||||
@ -18,16 +18,15 @@
|
||||
<br>
|
||||
§1.1 These terms and conditions define the mutual relationship between SocialHelper and Users or Visitors.
|
||||
<br/>
|
||||
§1.2 The website allows Users to exchange items and services on a barter or voluntary basis.
|
||||
§1.2 The website allows Users to exchange items and services on the basis of barter or voluntary work.
|
||||
<br/>
|
||||
§1.3 The website is not intended for minors. In the case of minors, a parent or guardian must register to use the services and supervise the use of the services by minors.
|
||||
<br/>
|
||||
§1.4 When registering on the website, the user is required to provide his e-mail address and password (directly or using a Facebook or Google profile).
|
||||
<br/> <br/>
|
||||
|
||||
§2.1 SocialHelper is an internet intermediary service offering users a virtual exchange forum. SocialHelper is not a party to any transaction between users.
|
||||
<br/>
|
||||
§2.2 The items on display may not be medical or human products, stimulants, firearms and ammunition, as well as any items whose possession is inconsistent with Polish law.
|
||||
§2.2 The displayed items may not be medical or human products, stimulants, firearms and ammunition, as well as any items the possession of which is inconsistent with Polish law.
|
||||
<br/>
|
||||
§2.3 The services displayed cannot be of a sexual nature.
|
||||
<br/>
|
||||
@ -38,7 +37,6 @@
|
||||
§2.6 Users may activate a premium account subject to a recurring monthly fee of PLN 9.99 charged to their account or debit card.
|
||||
<br/> <br/>
|
||||
|
||||
|
||||
§3.1 All Visitors and Users are fully responsible for the items and services displayed on the SocialHelper website, including its description, the correctness of other details presented and communication with other users, as well as in general transactions concluded with other users and disputes arising therefrom.
|
||||
<br/> <br/>
|
||||
§4.1 SocialHelper owns all intellectual property rights to the site, its system (directory, portability, etc.), site design and software used by the site, including trademarks and domain names.
|
||||
@ -46,91 +44,6 @@
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!--================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">
|
||||
<h6>© <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. -->
|
||||
</h6>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<!--================End Footer Area =================-->
|
||||
</body>
|
||||
</html>
|
||||
{% endblock %}
|
||||
|
58
SocialHelper/enGB/templates/enGB/user_note.html
Normal file
58
SocialHelper/enGB/templates/enGB/user_note.html
Normal file
@ -0,0 +1,58 @@
|
||||
{% extends isVIP|yesno:"base3.html,base4.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>Report User:</h3>
|
||||
<h5>{{ User_prof }}</h5>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!--================End Categories Banner Area =================-->
|
||||
|
||||
<!--================Register Area =================-->
|
||||
<form action="{% url 'enuser_note' User_prof.email %}" method="POST" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{ form.media }}
|
||||
{{ form.as_p }}
|
||||
<input type="hidden" name="email" value="">
|
||||
<input type="hidden" name="password" value="">
|
||||
<section class="track_area p_100">
|
||||
<div class="container">
|
||||
<div class="track_inner">
|
||||
<form class="track_form row">
|
||||
|
||||
<div class="container h-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<label for="name">The content of the notification: <span>*</span></label>
|
||||
<textarea class="form-control" id="order" rows="3" name="script"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container h-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<div class="col-10 col-md-8 col-lg-6">
|
||||
<input type="submit" class="btn btn-primary update_btn" value="Report">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
<!--================End Track Area =================-->
|
||||
<!--================End Register Area =================-->
|
||||
</body>
|
||||
</html>
|
||||
{% endblock %}
|
@ -1,18 +1,35 @@
|
||||
{% extends 'enbase.html' %}
|
||||
{% extends isVIP|yesno:"base3.html,base4.html" %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<body>
|
||||
<style>
|
||||
a:link {
|
||||
color: black;
|
||||
background-color: transparent;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: blue;
|
||||
background-color: transparent;
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
|
||||
<!--================Categories Banner Area =================-->
|
||||
|
||||
<section class="solid_banner_area">
|
||||
<div class="container">
|
||||
<div class="solid_banner_inner">
|
||||
<h3>User Profile</h3>
|
||||
{% if not user_prof %}
|
||||
<h3><strong><span style="color:red">Account deleted</span></strong></h3>
|
||||
{% endif %}
|
||||
<h3>User profile</h3>
|
||||
<h5>{{ name }}</h5><p><br></p>
|
||||
<p><SPAN STYLE="font-size:16.0pt">Average Grade: <strong>{{ocena}}</SPAN></strong></p>
|
||||
<strong> 0
|
||||
<p><SPAN STYLE="font-size:16.0pt">Average grade: <strong>{{ocena_2}}</SPAN></strong></p>
|
||||
<strong> 1
|
||||
<img src="{% static "color\ff0000.png"%}" height="20" width="30"/>
|
||||
{% if ocena > 9 %}
|
||||
<img src="{% static "color\ff3200.png"%}" height="20" width="30"/>
|
||||
@ -63,37 +80,33 @@
|
||||
<img src="{% static "color\00ff00.png"%}" height="20" width="30"/>
|
||||
{% else %}
|
||||
<img src="{% static "color\C0C0C0.png"%}" height="20" width="30"/>
|
||||
{% endif %} 100 </strong>{% if user.email %}
|
||||
<p></p><a href="{{ name }}/add_comment"><button type="button" class="btn btn-primary pull-right">Rate User</button></a>
|
||||
{% endif %} 10 </strong>
|
||||
{% if user.email %}
|
||||
<p></p><a href="{{ name }}/enadd_comment"><button type="button" class="btn btn-primary pull-right">Rate the User</button></a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!--================End Categories Banner Area =================-->
|
||||
|
||||
<!--================Categories Product Area =================-->
|
||||
|
||||
|
||||
<section class="categories_product_main p_80">
|
||||
<div class="container">
|
||||
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" href="#1zakladka" role="tab" data-toggle="tab">Offers</a>
|
||||
<a class="nav-link active" href="#1zakladka" role="tab" data-toggle="tab">Product ({{suma_prod}})</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#2zakladka" role="tab" data-toggle="tab">Comments</a>
|
||||
<a class="nav-link" href="#2zakladka" role="tab" data-toggle="tab">Grades ({{suma_oc}})</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="1zakladka">
|
||||
|
||||
<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 %}
|
||||
@ -110,18 +123,18 @@
|
||||
</div>
|
||||
<div class="col-lg-8 col-md-6">
|
||||
<div class="c_product_text">
|
||||
<h1>{{ product.title }}</h1>
|
||||
<a href="/enGB/enoffer_details/{{ product.id }}"><h1>{{ product.title }}</h1></a>
|
||||
{% if types.0.0 == product.type %}
|
||||
<h5>Need
|
||||
<h5>I will need
|
||||
{% else %}
|
||||
<h5>Give
|
||||
<h5>I give
|
||||
{% endif %}
|
||||
{% if types_o.0.0 == product.offer %}
|
||||
Service</h5>
|
||||
{% else %}
|
||||
Item</h5>
|
||||
{% endif %}
|
||||
<h6>Locality: <span>{{ product.place }}</span></h6>
|
||||
<h6>City: <span>{{ product.place }}</span></h6>
|
||||
<p>{{ product.description }}</p>
|
||||
</div>
|
||||
</div>
|
||||
@ -133,17 +146,14 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form action="{% url 'enfilter' %}" 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>
|
||||
<div class="tab-pane" id="2zakladka">
|
||||
<div class="categories_main_inner">
|
||||
@ -171,7 +181,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<form action="{% url 'filter' %}" method="post">
|
||||
<form action="{% url 'enfilter' %}" method="post">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="place" value="">
|
||||
<input type="hidden" name="Oddam" value="">
|
||||
@ -179,96 +189,13 @@
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-8">
|
||||
<a href="/enGB/enuser_note/{{name}}"><button type="button" class="btn btn-danger pull-right">Report the User</button></a>
|
||||
</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 %}
|
||||
|
69
SocialHelper/enGB/templates/footer3.html
Normal file
69
SocialHelper/enGB/templates/footer3.html
Normal file
@ -0,0 +1,69 @@
|
||||
{% load static %}
|
||||
<!--================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="{% static "img/Social.png" %}" width=125>
|
||||
<p></p>
|
||||
<h6>Share:</h6>
|
||||
<ul>
|
||||
<li><a href="#"><i class="social_facebook"></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="enabout">About Us</a></li>
|
||||
<li><a href="enregulamin">Terms Of Use</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="enmy_offer">My account</a></li>
|
||||
<li><a href="encontact">Contact</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>Extra</h3>
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="enall">All offers</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 =================-->
|
||||
<style>
|
||||
.center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
width: 50%;
|
||||
}
|
||||
</style>
|
70
SocialHelper/enGB/templates/footer4.html
Normal file
70
SocialHelper/enGB/templates/footer4.html
Normal file
@ -0,0 +1,70 @@
|
||||
{% load static %}
|
||||
<!--================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="{% static "img/Social.png" %}" width=125>
|
||||
<p></p>
|
||||
<h6>Share:</h6>
|
||||
<ul>
|
||||
<li><a href="#"><i class="social_facebook"></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="enabout">About Us</a></li>
|
||||
<li><a href="enregulamin">Terms Of Use</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="enmy_offer">My account</a></li>
|
||||
<li><a href="encontact">Contact</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>Extra</h3>
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="enall">All offers</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<img src="{% static "ad.png" %}" class="center">
|
||||
<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 =================-->
|
||||
<style>
|
||||
.center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
width: 50%;
|
||||
}
|
||||
</style>
|
48
SocialHelper/enGB/templates/navbar3.html
Normal file
48
SocialHelper/enGB/templates/navbar3.html
Normal file
@ -0,0 +1,48 @@
|
||||
{% 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="/enGB/enall">All Offer</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="/enGB/enproduct">Products</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="/enGB/enoffer">Services</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="/enGB/encontact">Contact</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>
|
||||
{% if user.email %}
|
||||
<li class="user_icon"><a href="/enGB/enmy_offer"><i class="icon-user icons"></i></a></li>
|
||||
<li ><a href="/enGB/enadd_offer"><img src="{% static "plus.png"%}" height="20"/></a></li>
|
||||
<li> <a href="/enGB/enlogout_user"><img src="{% static "logout.png"%}" height="25"/></a></li>
|
||||
{% else %}
|
||||
<li> <a href="/enGB/enlogin"><img src="{% static "login.png"%}" height="25"/></a></li>
|
||||
{% endif %}
|
||||
<li ><a href="/homepage"><img src="{% static "PL.png"%}" height="20"/></a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
</body>
|
||||
</html>
|
||||
<!--================End Menu Area =================-->
|
||||
<style>
|
||||
.center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
width: 50%;
|
||||
}
|
||||
</style>
|
@ -2,7 +2,7 @@
|
||||
<html lang="en">
|
||||
|
||||
<body>
|
||||
|
||||
<img src="{% static "ad.png" %}" class="center">
|
||||
<header class="shop_header_area carousel_menu_area">
|
||||
<div class="carousel_menu_inner">
|
||||
<div class="container">
|
||||
@ -15,23 +15,23 @@
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item"><a class="nav-link" href="all">All</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="product">Product</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="offer">Services</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="contact">Contact</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="/enGB/enall">All Offer</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="/enGB/enproduct">Products</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="/enGB/enoffer">Services</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="/enGB/encontact">Contact</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>
|
||||
{% if user.email %}
|
||||
<li class="user_icon"><a href="/enGB/my_offer"><i class="icon-user icons"></i></a></li>
|
||||
<li ><a href="/enGB/add_offer"><img src="{% static "plus.png"%}" height="20"/></a></li>
|
||||
<li> <a href="/enGB/logout_user"><img src="{% static "logout.png"%}" height="25"/></a></li>
|
||||
<li class="user_icon"><a href="/enGB/enmy_offer"><i class="icon-user icons"></i></a></li>
|
||||
<li ><a href="/enGB/enadd_offer"><img src="{% static "plus.png"%}" height="20"/></a></li>
|
||||
<li> <a href="/enGB/enlogout_user"><img src="{% static "logout.png"%}" height="25"/></a></li>
|
||||
{% else %}
|
||||
<li> <a href="/enGB/enlogin"><img src="{% static "login.png"%}" height="25"/></a></li>
|
||||
{% endif %}
|
||||
<li ><a href="/homepage"><img src="{% static "PL.png"%}" height="20"/></a></li>
|
||||
<li ><a href="/enGB"><img src="{% static "en.jpg"%}" height="20"/></a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
@ -39,3 +39,11 @@
|
||||
</body>
|
||||
</html>
|
||||
<!--================End Menu Area =================-->
|
||||
<style>
|
||||
.center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
width: 50%;
|
||||
}
|
||||
</style>
|
@ -6,26 +6,34 @@ from django.conf.urls.static import static
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.enindex, name='enindex'),
|
||||
path('product', views.enindex_product, name='enindex_product'),
|
||||
path('offer', views.enindex_offer, name='enindex_offer'),
|
||||
path('all', views.enindex, name='enindex'),
|
||||
path('enproduct', views.enindex_product, name='enindex_product'),
|
||||
path('enoffer', views.enindex_offer, name='enindex_offer'),
|
||||
path('enall', views.enindex, name='enindex'),
|
||||
|
||||
path('', views.enindex, name='enindex'),
|
||||
path('contact', views.encontact, name='encontact'),
|
||||
path('regulamin',views.enregulamin, name='enregulamin'),
|
||||
path('filter', views.enfilter, name='enfilter'),
|
||||
path('add_offer', views.enadd_offer, name='enadd_offer'),
|
||||
path('my_offer', views.enmy_offer, name='enmy_offer'),
|
||||
path('<int:offer_id>/delete_offer', views.endelete_offer, name='endelete_offer'),
|
||||
path('<int:offer_id>/edit_offer', views.enedit_offer, name='enedit_offer'),
|
||||
path('enoffer_details/<int:offer_id>', views.enoffer, name='enoffer'),
|
||||
path('ensend_message', views.ensend_message, name='ensend_message'),
|
||||
path('enchating/<int:offer_id>/<int:au_id>/<int:ad_id>', views.enchating, name='enchating'),
|
||||
|
||||
path('create_user', views.encreate_user, name='encreate_user'),
|
||||
path('en', views.enindex, name='enindex'),
|
||||
path('encontact', views.encontact, name='encontact'),
|
||||
path('enabout', views.enabout, name='enabout'),
|
||||
path('enregulamin',views.enregulamin, name='enregulamin'),
|
||||
path('enfilter', views.enfilter, name='enfilter'),
|
||||
path('enadd_offer', views.enadd_offer, name='enadd_offer'),
|
||||
path('enmy_offer', views.enmy_offer, name='enmy_offer'),
|
||||
path('<int:offer_id>/endelete_offer', views.endelete_offer, name='endelete_offer'),
|
||||
path('<int:offer_id>/enedit_offer', views.enedit_offer, name='enedit_offer'),
|
||||
|
||||
path('encreate_user', views.encreate_user, name='encreate_user'),
|
||||
path('enlogin', views.enlogin, name='enlogin'),
|
||||
path('delete_user', views.endelete_user, name='endelete_user'),
|
||||
path('logout_user', views.enlogout_user, name='enlogout_user'),
|
||||
path('<int:user_id>/delete_user', views.endelete_user, name='endelete_user'),
|
||||
path('edit_user', views.enedit_user, name='enedit_user'),
|
||||
path('user_profile/<str:user_name>', views.enuser_profile, name='enuser_profile'),
|
||||
path('user_profile/<str:user_name>/add_comment', views.enadd_comment, name='enadd_comment'),
|
||||
path('endelete_user', views.endelete_user, name='endelete_user'),
|
||||
path('enlogout_user', views.enlogout_user, name='enlogout_user'),
|
||||
path('en<int:user_id>/delete_user', views.endelete_user, name='endelete_user'),
|
||||
path('enedit_user', views.enedit_user, name='enedit_user'),
|
||||
path('enuser_profile/<str:user_name>', views.enuser_profile, name='enuser_profile'),
|
||||
path('enuser_profile/<str:user_name>/enadd_comment', views.enadd_comment, name='enadd_comment'),
|
||||
|
||||
path('enoffer_note/<int:offer_id>', views.enoffer_note, name='enoffer_note'),
|
||||
path('enuser_note/<str:user_id>', views.enuser_note, name='enuser_note'),
|
||||
|
||||
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
|
@ -6,8 +6,11 @@ from django.urls import reverse
|
||||
from django.template import loader
|
||||
from django.contrib.auth import get_user_model
|
||||
from django.contrib import messages, auth
|
||||
|
||||
from homepage.models import Product, TYPE_T, TYPE_O, Places, Ocena
|
||||
from django.utils import timezone
|
||||
from django.views.decorators.clickjacking import xframe_options_exempt
|
||||
from django.db.models import Q
|
||||
from homepage.models import Product, TYPE_T, TYPE_O, Places, Ocena, chat
|
||||
from control.models import Notificationuser, Notificationoffer, Usermessage, Vipuser
|
||||
|
||||
from django.utils import timezone
|
||||
from datetime import timedelta
|
||||
@ -15,6 +18,14 @@ import datetime
|
||||
|
||||
|
||||
def enindex(request):
|
||||
if request.user.is_authenticated:
|
||||
if Vipuser.objects.filter(user_iden = request.user, active = True ).exists():
|
||||
isVIP = True
|
||||
else:
|
||||
isVIP = False
|
||||
else:
|
||||
isVIP = False
|
||||
|
||||
all_product = Product.objects.filter(active = True)
|
||||
template = loader.get_template('enGB/index.html')
|
||||
types = TYPE_T
|
||||
@ -33,10 +44,19 @@ def enindex(request):
|
||||
'types_o': types_o,
|
||||
'usluga_local': usluga_local,
|
||||
'przedmiot_local': przedmiot_local,
|
||||
'isVIP': isVIP,
|
||||
}
|
||||
return HttpResponse(template.render(context, request))
|
||||
|
||||
def enindex_product(request):
|
||||
if request.user.is_authenticated:
|
||||
if Vipuser.objects.filter(user_iden = request.user, active = True ).exists():
|
||||
isVIP = True
|
||||
else:
|
||||
isVIP = False
|
||||
else:
|
||||
isVIP = False
|
||||
|
||||
all_product = Product.objects.filter(active = True, offer=2)
|
||||
template = loader.get_template('enGB/index.html')
|
||||
types = TYPE_T
|
||||
@ -55,10 +75,19 @@ def enindex_product(request):
|
||||
'types_o': types_o,
|
||||
'usluga_local': usluga_local,
|
||||
'przedmiot_local': przedmiot_local,
|
||||
'isVIP': isVIP,
|
||||
}
|
||||
return HttpResponse(template.render(context, request))
|
||||
|
||||
def enindex_offer(request):
|
||||
if request.user.is_authenticated:
|
||||
if Vipuser.objects.filter(user_iden = request.user, active = True ).exists():
|
||||
isVIP = True
|
||||
else:
|
||||
isVIP = False
|
||||
else:
|
||||
isVIP = False
|
||||
|
||||
all_product = Product.objects.filter(active = True, offer=1)
|
||||
template = loader.get_template('enGB/index.html')
|
||||
types = TYPE_T
|
||||
@ -77,17 +106,75 @@ def enindex_offer(request):
|
||||
'types_o': types_o,
|
||||
'usluga_local': usluga_local,
|
||||
'przedmiot_local': przedmiot_local,
|
||||
'isVIP': isVIP,
|
||||
}
|
||||
return HttpResponse(template.render(context, request))
|
||||
|
||||
def encontact(request):
|
||||
return render(request , 'enGB/contact.html')
|
||||
if request.user.is_authenticated:
|
||||
if Vipuser.objects.filter(user_iden = request.user, active = True ).exists():
|
||||
isVIP = True
|
||||
else:
|
||||
isVIP = False
|
||||
else:
|
||||
isVIP = False
|
||||
|
||||
if request.method == 'POST':
|
||||
name = request.POST['name']
|
||||
email = request.POST['email']
|
||||
message = request.POST['message']
|
||||
if name == "" and email == "" and message == "":
|
||||
messages.error(request,'Text fields cannot be empty!')
|
||||
return redirect('encontact')
|
||||
mess = Usermessage(
|
||||
active = True,
|
||||
name = name,
|
||||
email = email,
|
||||
text = message,
|
||||
date = timezone.now()
|
||||
)
|
||||
mess.save()
|
||||
messages.success(request, 'Messege send, Thanks!')
|
||||
template = loader.get_template('enGB/contact.html')
|
||||
context = {
|
||||
'isVIP': isVIP,
|
||||
}
|
||||
return HttpResponse(template.render(context, request))
|
||||
|
||||
def enabout(request):
|
||||
if request.user.is_authenticated:
|
||||
if Vipuser.objects.filter(user_iden = request.user, active = True ).exists():
|
||||
isVIP = True
|
||||
else:
|
||||
isVIP = False
|
||||
else:
|
||||
isVIP = False
|
||||
template = loader.get_template('enGB/about.html')
|
||||
context = {
|
||||
'isVIP': isVIP,
|
||||
}
|
||||
return HttpResponse(template.render(context, request))
|
||||
|
||||
def enregulamin(request):
|
||||
return render(request, 'enGB/regulamin.html')
|
||||
if request.user.is_authenticated:
|
||||
if Vipuser.objects.filter(user_iden = request.user, active = True ).exists():
|
||||
isVIP = True
|
||||
else:
|
||||
isVIP = False
|
||||
else:
|
||||
isVIP = False
|
||||
template = loader.get_template('enGB/regulamin.html')
|
||||
context = {
|
||||
'isVIP': isVIP,
|
||||
}
|
||||
return HttpResponse(template.render(context, request))
|
||||
|
||||
def enmy_offer(request):
|
||||
if request.user.is_authenticated:
|
||||
if Vipuser.objects.filter(user_iden = request.user, active = True ).exists():
|
||||
isVIP = True
|
||||
else:
|
||||
isVIP = False
|
||||
all_product = Product.objects.filter(user_iden = request.user.id, active = True).order_by('create_date')
|
||||
username = request.user.email
|
||||
template = loader.get_template('enGB/my_offer.html')
|
||||
@ -107,13 +194,21 @@ def enmy_offer(request):
|
||||
'types_o': types_o,
|
||||
'usluga_local': usluga_local,
|
||||
'przedmiot_local': przedmiot_local,
|
||||
'username': username
|
||||
'username': username,
|
||||
'isVIP': isVIP,
|
||||
}
|
||||
return HttpResponse(template.render(context, request))
|
||||
else:
|
||||
return redirect(enlogin)
|
||||
|
||||
def enfilter(request):
|
||||
if request.user.is_authenticated:
|
||||
if Vipuser.objects.filter(user_iden = request.user, active = True ).exists():
|
||||
isVIP = True
|
||||
else:
|
||||
isVIP = False
|
||||
else:
|
||||
isVIP = False
|
||||
|
||||
all_product = Product.objects.filter(active = True)
|
||||
template = loader.get_template('enGB/index.html')
|
||||
@ -132,19 +227,19 @@ def enfilter(request):
|
||||
|
||||
if oddam_local == "on" and potrzebuje_local != "on":
|
||||
zmienna = 2
|
||||
all_product = all_product.filter(type=zmienna)
|
||||
all_product = all_product.filter(type=2)
|
||||
|
||||
if oddam_local != "on" and potrzebuje_local == "on":
|
||||
zmienna = 1
|
||||
all_product = all_product.filter(type=zmienna)
|
||||
all_product = all_product.filter(type=1)
|
||||
|
||||
if usluga_local == "on" and przedmiot_local != "on":
|
||||
zmienna = 1
|
||||
all_product = all_product.filter(type=zmienna)
|
||||
all_product = all_product.filter(offer=1)
|
||||
|
||||
if usluga_local != "on" and przedmiot_local == "on":
|
||||
zmienna = 2
|
||||
all_product = all_product.filter(type=zmienna)
|
||||
all_product = all_product.filter(offer=2)
|
||||
|
||||
if wol_local == "on":
|
||||
all_product = all_product.filter(Wolontatriat=True)
|
||||
@ -162,13 +257,19 @@ def enfilter(request):
|
||||
'usluga_local': usluga_local,
|
||||
'przedmiot_local': przedmiot_local,
|
||||
'wol_local': wol_local,
|
||||
'isVIP': isVIP,
|
||||
|
||||
}
|
||||
return HttpResponse(template.render(context, request))
|
||||
|
||||
def enadd_offer(request):
|
||||
place_list = Places.objects.all()
|
||||
if request.user.is_authenticated:
|
||||
if Vipuser.objects.filter(user_iden = request.user, active = True ).exists():
|
||||
isVIP = True
|
||||
else:
|
||||
isVIP = False
|
||||
|
||||
place_list = Places.objects.all()
|
||||
if request.method == 'POST':
|
||||
place_local = request.POST['browser']
|
||||
type_local = request.POST['type']
|
||||
@ -190,14 +291,14 @@ def enadd_offer(request):
|
||||
offer_local = request.POST['offer']
|
||||
|
||||
if title_local == "":
|
||||
messages.error(request,'Title cannot be empty!')
|
||||
return redirect('add_offer')
|
||||
messages.error(request,'You must enter a title!')
|
||||
return redirect('enadd_offer')
|
||||
if script_local == "":
|
||||
messages.error(request,'Description cannot be empty!')
|
||||
return redirect('add_offer')
|
||||
messages.error(request,'You must enter a description!!')
|
||||
return redirect('enadd_offer')
|
||||
if place_local == "":
|
||||
messages.error(request,'Locality cannot be empty!')
|
||||
return redirect('add_offer')
|
||||
messages.error(request,'You must enter a city!')
|
||||
return redirect('enadd_offer')
|
||||
|
||||
product = Product(
|
||||
picture = pic_local,
|
||||
@ -212,24 +313,41 @@ def enadd_offer(request):
|
||||
keywords = "",
|
||||
)
|
||||
product.save()
|
||||
messages.success(request, 'Offer added!')
|
||||
messages.success(request, 'Advertisement added!')
|
||||
return redirect(enmy_offer)
|
||||
context = {
|
||||
'place_list': place_list,
|
||||
'isVIP': isVIP,
|
||||
}
|
||||
return render(request , 'enGB/add_offer.html', context)
|
||||
else:
|
||||
return redirect(enlogin)
|
||||
|
||||
def endelete_offer(request, offer_id):
|
||||
if request.user.is_authenticated:
|
||||
if Vipuser.objects.filter(user_iden = request.user, active = True ).exists():
|
||||
isVIP = True
|
||||
else:
|
||||
isVIP = False
|
||||
if Product.objects.filter(user_iden=request.user , id = offer_id).exists():
|
||||
instance = Product.objects.get(id=offer_id)
|
||||
instance.active = False
|
||||
instance.save()
|
||||
messages.success(request, 'Offer removed!')
|
||||
|
||||
messages.success(request, 'Ad removed!')
|
||||
return redirect(enmy_offer)
|
||||
else:
|
||||
messages.error(request, 'You are not authorized!')
|
||||
return redirect(enindex)
|
||||
else:
|
||||
return redirect(enlogin)
|
||||
|
||||
def enedit_offer(request, offer_id):
|
||||
if request.user.is_authenticated:
|
||||
if Vipuser.objects.filter(user_iden = request.user, active = True ).exists():
|
||||
isVIP = True
|
||||
else:
|
||||
isVIP = False
|
||||
if Product.objects.filter(user_iden=request.user , id = offer_id).exists():
|
||||
instance = Product.objects.get(id=offer_id)
|
||||
types = TYPE_T
|
||||
types_o = TYPE_O
|
||||
@ -239,6 +357,7 @@ def enedit_offer(request, offer_id):
|
||||
'place_list': place_list,
|
||||
'types': types,
|
||||
'types_o': types_o,
|
||||
'isVIP': isVIP,
|
||||
}
|
||||
if request.method == 'POST':
|
||||
place_local = request.POST['browser']
|
||||
@ -253,14 +372,14 @@ def enedit_offer(request, offer_id):
|
||||
wol = True
|
||||
|
||||
if title_local == "":
|
||||
messages.error(request,'Title cannot be empty!')
|
||||
return redirect('add_offer')
|
||||
messages.error(request,'You must enter a title!')
|
||||
return redirect('enadd_offer')
|
||||
if script_local == "":
|
||||
messages.error(request,'Description cannot be empty!')
|
||||
return redirect('add_offer')
|
||||
messages.error(request,'You must enter a description!!')
|
||||
return redirect('enadd_offer')
|
||||
if place_local == "":
|
||||
messages.error(request,'Locality cannot be empty!')
|
||||
return redirect('add_offer')
|
||||
messages.error(request,'You must enter a city!')
|
||||
return redirect('enadd_offer')
|
||||
|
||||
if request.FILES:
|
||||
pic_local = request.FILES['file']
|
||||
@ -277,11 +396,24 @@ def enedit_offer(request, offer_id):
|
||||
instance.keywords = ""
|
||||
|
||||
instance.save()
|
||||
messages.success(request, 'Edited offer!')
|
||||
messages.success(request, 'Edited announcement!')
|
||||
return redirect(enmy_offer)
|
||||
return render(request , 'enGB/edycja_ogloszenia.html', context)
|
||||
else:
|
||||
messages.error(request, 'You are not authorized!')
|
||||
return redirect(enindex)
|
||||
else:
|
||||
return redirect(enlogin)
|
||||
|
||||
def encreate_user(request):
|
||||
if request.user.is_authenticated:
|
||||
if Vipuser.objects.filter(user_iden = request.user, active = True ).exists():
|
||||
isVIP = True
|
||||
else:
|
||||
isVIP = False
|
||||
else:
|
||||
isVIP = False
|
||||
|
||||
if request.method == 'POST':
|
||||
User = get_user_model()
|
||||
email = request.POST['email']
|
||||
@ -290,32 +422,32 @@ def encreate_user(request):
|
||||
scales = request.POST['scales']
|
||||
#walidacja
|
||||
if scales == "No":
|
||||
messages.error(request,'You must accept the Terms of use!')
|
||||
return redirect('create_user')
|
||||
messages.error(request,'You must accept the use of terms!')
|
||||
return redirect('encreate_user')
|
||||
|
||||
if email == "":
|
||||
messages.error(request,'The email field is empty!')
|
||||
return redirect('create_user')
|
||||
return redirect('encreate_user')
|
||||
|
||||
if "@" not in email:
|
||||
messages.error(request,'The entered email is invalid!')
|
||||
return redirect('create_user')
|
||||
messages.error(request,'The email entered is incorrect!')
|
||||
return redirect('encreate_user')
|
||||
|
||||
if User.objects.filter(email=email).exists():
|
||||
messages.error(request,'This e-mail address is already in use')
|
||||
return redirect('create_user')
|
||||
return redirect('encreate_user')
|
||||
|
||||
if password == "":
|
||||
messages.error(request,'The password field is empty!')
|
||||
return redirect('create_user')
|
||||
return redirect('encreate_user')
|
||||
|
||||
if password != pow_password:
|
||||
messages.error(request,'The passwords provided are different')
|
||||
return redirect('create_user')
|
||||
return redirect('encreate_user')
|
||||
|
||||
if password == email:
|
||||
messages.error(request,'The password and email provided must be different')
|
||||
return redirect('create_user')
|
||||
messages.error(request,'The given passwords and email must be different')
|
||||
return redirect('encreate_user')
|
||||
|
||||
dlugosc = 0
|
||||
znak = 0
|
||||
@ -336,7 +468,7 @@ def encreate_user(request):
|
||||
|
||||
if dlugosc+znak+mala+duza+cyfra != 5:
|
||||
messages.error(request,'The password provided is incorrect. The password must contain at least: 1 digit, 1 uppercase letter, 1 lowercase letter, 1 special character from the range! @ # $% & * () {} [] <>?, And must consist of at least 8 symbols')
|
||||
return redirect('create_user')
|
||||
return redirect('encreate_user')
|
||||
|
||||
else:
|
||||
user = User(
|
||||
@ -353,6 +485,12 @@ def encreate_user(request):
|
||||
return render(request , 'enGB/create_user.html')
|
||||
|
||||
def endelete_user(request):
|
||||
if request.user.is_authenticated:
|
||||
if Vipuser.objects.filter(user_iden = request.user, active = True ).exists():
|
||||
isVIP = True
|
||||
else:
|
||||
isVIP = False
|
||||
|
||||
User = get_user_model()
|
||||
instant = User.objects.filter(id=request.user.id).first()
|
||||
instant.is_active = False
|
||||
@ -364,10 +502,18 @@ def endelete_user(request):
|
||||
offer.save()
|
||||
instant.save()
|
||||
|
||||
messages.success(request,'Account deleted!')
|
||||
messages.success(request,'Account deleted!!')
|
||||
return redirect(enindex)
|
||||
else:
|
||||
return redirect(enlogin)
|
||||
|
||||
def enedit_user(request):
|
||||
if request.user.is_authenticated:
|
||||
if Vipuser.objects.filter(user_iden = request.user, active = True ).exists():
|
||||
isVIP = True
|
||||
else:
|
||||
isVIP = False
|
||||
|
||||
User = get_user_model()
|
||||
instant = User.objects.filter(id=request.user.id).first()
|
||||
if request.method == 'POST':
|
||||
@ -378,7 +524,7 @@ def enedit_user(request):
|
||||
user = authenticate(request, username=instant.username, password=oldpassword, is_active=True)
|
||||
if user is None:
|
||||
messages.error(request,'You entered the wrong password')
|
||||
return redirect('edit_user')
|
||||
return redirect('enedit_user')
|
||||
|
||||
dlugosc = 0
|
||||
znak = 0
|
||||
@ -398,19 +544,21 @@ def enedit_user(request):
|
||||
dlugosc = 1
|
||||
|
||||
if dlugosc+znak+mala+duza+cyfra != 5:
|
||||
messages.error(request,'Podane hasło jest nieprawidłowe. Hasło musi najmniejsze: 1 cyfra, 1 duza litere, 1 mala litere, 1 znak specjalny z zakresu! @ # $% & * () {} [] <> ?, oraz składać sie conajmniej z 8 symboli')
|
||||
return redirect('edit_user')
|
||||
messages.error(request,'The password provided is incorrect. The password must contain at least: 1 digit, 1 uppercase letter, 1 lowercase letter, 1 special character from the range! @ # $% & * () {} [] <>?, And must consist of at least 8 symbols')
|
||||
return redirect('enedit_user')
|
||||
|
||||
if newpassword1 != newpassword2:
|
||||
messages.error(request,'The new passwords provided are different')
|
||||
return redirect('edit_user')
|
||||
return redirect('enedit_user')
|
||||
|
||||
instant.set_password(newpassword1)
|
||||
instant.save()
|
||||
messages.success(request,'Password changed, you are logged out!')
|
||||
messages.success(request,'Password changed, logged out!')
|
||||
return redirect('enmy_offer')
|
||||
|
||||
return render(request , 'enGB/edit_user.html')
|
||||
else:
|
||||
return redirect(enlogin)
|
||||
|
||||
def enlogin(request):
|
||||
if request.method == 'POST':
|
||||
@ -424,7 +572,7 @@ def enlogin(request):
|
||||
else:
|
||||
messages.error(request,'Invalid login details!')
|
||||
return redirect(enlogin)
|
||||
return render(request , 'enGB/enlogin.html')
|
||||
return render(request , 'enGB/login.html')
|
||||
|
||||
def enlogout_user(request):
|
||||
auth.logout(request)
|
||||
@ -432,6 +580,14 @@ def enlogout_user(request):
|
||||
return redirect(enindex)
|
||||
|
||||
def enuser_profile(request, user_name):
|
||||
if request.user.is_authenticated:
|
||||
if Vipuser.objects.filter(user_iden = request.user, active = True ).exists():
|
||||
isVIP = True
|
||||
else:
|
||||
isVIP = False
|
||||
else:
|
||||
isVIP = False
|
||||
|
||||
User = get_user_model()
|
||||
if User.objects.filter(username=user_name).exists():
|
||||
user_prof = User.objects.filter(username=user_name).first()
|
||||
@ -439,12 +595,13 @@ def enuser_profile(request, user_name):
|
||||
user_prof = User.objects.filter(email=user_name).first()
|
||||
|
||||
all_product = Product.objects.filter(active = True, user_iden = user_prof.id)
|
||||
suma_prod = all_product.count()
|
||||
oceny = Ocena.objects.filter(user_iden = user_prof.id)
|
||||
template = loader.get_template('enGB/user_profile.html')
|
||||
|
||||
types = TYPE_T
|
||||
types_o = TYPE_O
|
||||
|
||||
suma = 0
|
||||
if Ocena.objects.filter(user_iden = user_prof.id).exists():
|
||||
ocena = 0
|
||||
suma = 0
|
||||
@ -455,17 +612,28 @@ def enuser_profile(request, user_name):
|
||||
ocena = ocena * 10
|
||||
ocena = int (ocena)
|
||||
else:
|
||||
ocena = 5
|
||||
ocena = 50
|
||||
suma_oc = 0
|
||||
ocena_2 = ocena/10
|
||||
context = {
|
||||
'all_product': all_product,
|
||||
'all_oceny': oceny,
|
||||
'ocena': ocena,
|
||||
'name': user_prof.email,
|
||||
'ocena_2': ocena_2,
|
||||
'suma_oc': suma, #suma wszystkich ocen uzytkownika
|
||||
'suma_prod': suma_prod,
|
||||
'user_prof': user_prof.is_active,
|
||||
'isVIP': isVIP,
|
||||
}
|
||||
return HttpResponse(template.render(context, request))
|
||||
|
||||
def enadd_comment(request, user_name):
|
||||
if request.user.is_authenticated:
|
||||
if Vipuser.objects.filter(user_iden = request.user, active = True ).exists():
|
||||
isVIP = True
|
||||
else:
|
||||
isVIP = False
|
||||
User = get_user_model()
|
||||
user_prof = User.objects.filter(email=user_name).first()
|
||||
if request.method == 'POST':
|
||||
@ -482,9 +650,189 @@ def enadd_comment(request, user_name):
|
||||
|
||||
context = {
|
||||
'user_name': user_name,
|
||||
'isVIP': isVIP,
|
||||
|
||||
}
|
||||
template = loader.get_template('enGB/add_comment.html')
|
||||
return HttpResponse(template.render(context, request))
|
||||
else:
|
||||
return redirect(enlogin)
|
||||
|
||||
def enoffer(request, offer_id):
|
||||
if request.user.is_authenticated:
|
||||
if Vipuser.objects.filter(user_iden = request.user, active = True ).exists():
|
||||
isVIP = True
|
||||
else:
|
||||
isVIP = False
|
||||
else:
|
||||
isVIP = False
|
||||
user_get_id = request.user.id
|
||||
offer = Product.objects.filter(id = offer_id, active = True).first()
|
||||
mess = 0
|
||||
|
||||
if chat.objects.filter(product_id = offer_id, author_id=request.user.id).exists():
|
||||
chat_fst = chat.objects.filter(product_id = offer_id, author_id=request.user.id)
|
||||
else:
|
||||
chat_fst = chat.objects.none()
|
||||
mess = mess + 1
|
||||
|
||||
if chat.objects.filter(product_id = offer_id, sec_user_id=request.user.id).exists():
|
||||
chat_scd = chat.objects.filter(product_id = offer_id, sec_user_id=request.user.id)
|
||||
else:
|
||||
chat_scd = chat.objects.none()
|
||||
mess = mess + 1
|
||||
|
||||
if mess == 2:
|
||||
mess = chat.objects.none()
|
||||
user_list = chat.objects.none()
|
||||
email_list = chat.objects.none()
|
||||
else:
|
||||
mess = chat_fst.union(chat_scd).order_by('pub_date')
|
||||
if offer.user_iden == request.user:
|
||||
user_list = chat.objects.values_list('author_id', flat=True).distinct('author_id').filter(product_id = offer_id, sec_user_id = request.user.id).exclude(author_id = request.user.id)
|
||||
User = get_user_model()
|
||||
email_list = User.objects.filter(id__in = user_list)
|
||||
else:
|
||||
user_list = chat.objects.none()
|
||||
email_list = chat.objects.none()
|
||||
|
||||
template = loader.get_template('enGB/offer_page.html')
|
||||
types = TYPE_T
|
||||
types_o = TYPE_O
|
||||
context = {
|
||||
'offer': offer,
|
||||
'types': types,
|
||||
'types_o': types_o,
|
||||
'mess': mess,
|
||||
'user_list': user_list,
|
||||
'email_list': email_list,
|
||||
'user_get_id': user_get_id,
|
||||
'isVIP': isVIP,
|
||||
}
|
||||
return HttpResponse(template.render(context, request))
|
||||
|
||||
def ensend_message(request):
|
||||
if request.user.is_authenticated:
|
||||
if Vipuser.objects.filter(user_iden = request.user, active = True ).exists():
|
||||
isVIP = True
|
||||
else:
|
||||
isVIP = False
|
||||
if request.method == 'POST':
|
||||
author_id = request.POST['author_id']
|
||||
sec_user_id = request.POST['sec_user_id']
|
||||
product_id = request.POST['product_id']
|
||||
text = request.POST['text']
|
||||
User = get_user_model()
|
||||
massage = chat(
|
||||
product_id = Product.objects.filter(id=product_id).first(),
|
||||
author_id = User.objects.filter(id=author_id).first(),
|
||||
sec_user_id = sec_user_id,
|
||||
text = text,
|
||||
pub_date = timezone.now(),
|
||||
)
|
||||
massage.save()
|
||||
return redirect(enoffer, product_id)
|
||||
else:
|
||||
return redirect(enlogin)
|
||||
|
||||
def enchating(request, offer_id, au_id, ad_id):
|
||||
if request.user.is_authenticated:
|
||||
scd_user_get_id = ad_id
|
||||
User = get_user_model()
|
||||
user_prof = User.objects.filter(id=au_id).first()
|
||||
mess = 0
|
||||
user_get_id = request.user.id
|
||||
if chat.objects.filter(product_id = offer_id, author_id=user_prof.id , sec_user_id = ad_id ).exists():
|
||||
chat_fst = chat.objects.filter(product_id = offer_id, author_id=user_prof.id , sec_user_id = ad_id)
|
||||
else:
|
||||
chat_fst = chat.objects.none()
|
||||
mess = mess + 1
|
||||
user_prof_2 = User.objects.filter(id=ad_id).first()
|
||||
if chat.objects.filter(product_id = offer_id, author_id = user_prof_2.id ,sec_user_id=au_id).exists():
|
||||
chat_scd = chat.objects.filter(product_id = offer_id, author_id = user_prof_2.id ,sec_user_id=au_id)
|
||||
else:
|
||||
chat_scd = chat.objects.none()
|
||||
mess = mess + 1
|
||||
|
||||
if mess == 2:
|
||||
mess = chat.objects.none()
|
||||
user_list = chat.objects.none()
|
||||
email_list = chat.objects.none()
|
||||
else:
|
||||
mess = chat_fst.union(chat_scd).order_by('pub_date')
|
||||
|
||||
last_date = chat_fst.union(chat_scd).order_by('pub_date')
|
||||
last_date = chat.objects.filter(Q(product_id = offer_id), Q(author_id=user_prof.id) | Q(author_id=user_prof_2.id), Q(sec_user_id=ad_id) | Q(sec_user_id=au_id)).order_by('pub_date').last()
|
||||
context ={
|
||||
'mess': mess,
|
||||
'user_get_id': user_get_id,
|
||||
'scd_user_get_id': scd_user_get_id,
|
||||
'last_date': last_date,
|
||||
}
|
||||
template = loader.get_template('enGB/chating.html')
|
||||
return HttpResponse(template.render(context, request))
|
||||
else:
|
||||
return redirect(enlogin)
|
||||
|
||||
def enoffer_note(request, offer_id):
|
||||
if request.user.is_authenticated:
|
||||
if Vipuser.objects.filter(user_iden = request.user, active = True ).exists():
|
||||
isVIP = True
|
||||
else:
|
||||
isVIP = False
|
||||
else:
|
||||
isVIP = False
|
||||
|
||||
offer = Product.objects.get(id = offer_id)
|
||||
if request.method == 'POST':
|
||||
text = request.POST['script']
|
||||
if text == "":
|
||||
messages.error(request,'Text fields cannot be empty!')
|
||||
return redirect('enoffer_note', offer_id)
|
||||
mess = Notificationoffer(
|
||||
active = True,
|
||||
user_iden = offer,
|
||||
text = text,
|
||||
date = timezone.now()
|
||||
)
|
||||
mess.save()
|
||||
messages.success(request, 'Thank you for reporting')
|
||||
return redirect('enoffer', offer_id)
|
||||
context = {
|
||||
'offer': offer,
|
||||
'isVIP': isVIP,
|
||||
}
|
||||
template = loader.get_template('enGB/offer_note.html')
|
||||
return HttpResponse(template.render(context, request))
|
||||
|
||||
def enuser_note(request, user_id):
|
||||
if request.user.is_authenticated:
|
||||
if Vipuser.objects.filter(user_iden = request.user, active = True ).exists():
|
||||
isVIP = True
|
||||
else:
|
||||
isVIP = False
|
||||
else:
|
||||
isVIP = False
|
||||
|
||||
User = get_user_model()
|
||||
get_user = User.objects.get(email = user_id)
|
||||
if request.method == 'POST':
|
||||
text = request.POST['script']
|
||||
if text == "":
|
||||
messages.error(request,'Text fields cannot be empty!')
|
||||
return redirect('enuser_note', user_id)
|
||||
mess = Notificationuser(
|
||||
active = True,
|
||||
user_iden = get_user,
|
||||
text = text,
|
||||
date = timezone.now()
|
||||
)
|
||||
mess.save()
|
||||
messages.success(request, 'Thank you for reporting')
|
||||
return redirect('enuser_profile', user_id)
|
||||
context = {
|
||||
'User_prof': get_user,
|
||||
'isVIP': isVIP,
|
||||
}
|
||||
template = loader.get_template('enGB/user_note.html')
|
||||
return HttpResponse(template.render(context, request))
|
||||
|
@ -30,7 +30,6 @@
|
||||
{% else %}
|
||||
<li> <a href="/homepage/login"><img src="{% static "login.png"%}" height="25"/></a></li>
|
||||
{% endif %}
|
||||
<li ><a href="/homepage"><img src="{% static "PL.png"%}" height="20"/></a></li>
|
||||
<li ><a href="/enGB"><img src="{% static "en.jpg"%}" height="20"/></a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
@ -31,7 +31,6 @@
|
||||
{% else %}
|
||||
<li> <a href="/homepage/login"><img src="{% static "login.png"%}" height="25"/></a></li>
|
||||
{% endif %}
|
||||
<li ><a href="/homepage"><img src="{% static "PL.png"%}" height="20"/></a></li>
|
||||
<li ><a href="/enGB"><img src="{% static "en.jpg"%}" height="20"/></a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
Loading…
Reference in New Issue
Block a user