englisz
This commit is contained in:
parent
e5c92127ea
commit
535d7daa82
Binary file not shown.
Binary file not shown.
@ -32,6 +32,7 @@ ALLOWED_HOSTS = []
|
||||
|
||||
INSTALLED_APPS = [
|
||||
'homepage.apps.HomepageConfig',
|
||||
'enGB.apps.EngbConfig',
|
||||
'django.contrib.admin',
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
|
BIN
SocialHelper/SocialHelper/static/PL.png
Normal file
BIN
SocialHelper/SocialHelper/static/PL.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 588 B |
BIN
SocialHelper/SocialHelper/static/en.jpg
Normal file
BIN
SocialHelper/SocialHelper/static/en.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 42 KiB |
@ -6,5 +6,6 @@ from django.conf.urls.static import static
|
||||
|
||||
urlpatterns = [
|
||||
path('homepage/', include('homepage.urls')),
|
||||
path('enGB/', include('enGB.urls')),
|
||||
path('admin/', admin.site.urls),
|
||||
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
|
0
SocialHelper/enGB/__init__.py
Normal file
0
SocialHelper/enGB/__init__.py
Normal file
BIN
SocialHelper/enGB/__pycache__/__init__.cpython-37.pyc
Normal file
BIN
SocialHelper/enGB/__pycache__/__init__.cpython-37.pyc
Normal file
Binary file not shown.
BIN
SocialHelper/enGB/__pycache__/admin.cpython-37.pyc
Normal file
BIN
SocialHelper/enGB/__pycache__/admin.cpython-37.pyc
Normal file
Binary file not shown.
BIN
SocialHelper/enGB/__pycache__/apps.cpython-37.pyc
Normal file
BIN
SocialHelper/enGB/__pycache__/apps.cpython-37.pyc
Normal file
Binary file not shown.
BIN
SocialHelper/enGB/__pycache__/models.cpython-37.pyc
Normal file
BIN
SocialHelper/enGB/__pycache__/models.cpython-37.pyc
Normal file
Binary file not shown.
BIN
SocialHelper/enGB/__pycache__/urls.cpython-37.pyc
Normal file
BIN
SocialHelper/enGB/__pycache__/urls.cpython-37.pyc
Normal file
Binary file not shown.
BIN
SocialHelper/enGB/__pycache__/views.cpython-37.pyc
Normal file
BIN
SocialHelper/enGB/__pycache__/views.cpython-37.pyc
Normal file
Binary file not shown.
3
SocialHelper/enGB/admin.py
Normal file
3
SocialHelper/enGB/admin.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
5
SocialHelper/enGB/apps.py
Normal file
5
SocialHelper/enGB/apps.py
Normal file
@ -0,0 +1,5 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class EngbConfig(AppConfig):
|
||||
name = 'enGB'
|
0
SocialHelper/enGB/migrations/__init__.py
Normal file
0
SocialHelper/enGB/migrations/__init__.py
Normal file
BIN
SocialHelper/enGB/migrations/__pycache__/__init__.cpython-37.pyc
Normal file
BIN
SocialHelper/enGB/migrations/__pycache__/__init__.cpython-37.pyc
Normal file
Binary file not shown.
3
SocialHelper/enGB/models.py
Normal file
3
SocialHelper/enGB/models.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
18
SocialHelper/enGB/templates/alerts.html
Normal file
18
SocialHelper/enGB/templates/alerts.html
Normal file
@ -0,0 +1,18 @@
|
||||
{% if messages %}
|
||||
{% for message in messages %}
|
||||
|
||||
<div id="message" class="panel-title-sign mt-xl text-center">
|
||||
<div class="alert alert-{{ message.tags }} " role="alert">
|
||||
<button type="button" class="close" height="54" data-dismiss="alert"><span aria-hidden="true">×</span></button>
|
||||
<strong>
|
||||
{% if message.level == DEFAULT_MESSAGE_LEVELS.ERROR %}
|
||||
Error:
|
||||
{% else %}
|
||||
{{ message.tags|title }}
|
||||
{% endif %}
|
||||
</strong>
|
||||
{{ message }}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
54
SocialHelper/enGB/templates/base.html
Normal file
54
SocialHelper/enGB/templates/base.html
Normal file
@ -0,0 +1,54 @@
|
||||
{% 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 'navbar.html' %}
|
||||
{% include 'alerts.html' %}
|
||||
{% block content %} {% endblock %}
|
||||
<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>
|
179
SocialHelper/enGB/templates/enGB/add_comment.html
Normal file
179
SocialHelper/enGB/templates/enGB/add_comment.html
Normal file
@ -0,0 +1,179 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<body>
|
||||
|
||||
<!--================Categories Banner Area =================-->
|
||||
<section class="solid_banner_area">
|
||||
<div class="container">
|
||||
<div class="solid_banner_inner">
|
||||
<h3>Rate User</h3>
|
||||
<h5>{{ user_name }}</h5>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!--================End Categories Banner Area =================-->
|
||||
|
||||
<!--================Register Area =================-->
|
||||
<form action="{% url 'add_comment' user_name %}" 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">Rate: <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");
|
||||
var output = document.getElementById("demo");
|
||||
var output2 = document.getElementById("opinion");
|
||||
var text;
|
||||
output.innerHTML = slider.value;
|
||||
slider.oninput = function() {
|
||||
|
||||
|
||||
if (this.value == 1 ) {
|
||||
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";
|
||||
} else if (this.value == 4) {
|
||||
text = "<span style=\"color:blue\">- Positive";
|
||||
} else {
|
||||
text = "<span style=\"color:green\">- Very Positive!";
|
||||
}
|
||||
output.innerHTML = this.value
|
||||
output2.innerHTML = text;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
</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">Comment <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="Add Comment">
|
||||
</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 %}
|
209
SocialHelper/enGB/templates/enGB/add_offer.html
Normal file
209
SocialHelper/enGB/templates/enGB/add_offer.html
Normal file
@ -0,0 +1,209 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" class="h-100">
|
||||
|
||||
|
||||
<body class="h-100">
|
||||
|
||||
<!--================Categories Banner Area =================-->
|
||||
<section class="solid_banner_area">
|
||||
<div class="container">
|
||||
<div class="solid_banner_inner">
|
||||
<h3>Add new announcement</h3>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!--================End Categories Banner Area =================-->
|
||||
|
||||
<!--================Register Area =================-->
|
||||
<form action="{% url 'add_offer' %}" method="POST" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{ form.media }}
|
||||
{{ form.as_p }}
|
||||
<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="cun">Type of offer <span>*</span></label>
|
||||
<select id="cun" name="offer">
|
||||
<option value="1">Service</option>
|
||||
<option value="2">Item</option>
|
||||
</select>
|
||||
</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="cun">Offer type <span>*</span></label>
|
||||
<select id="cun" name="type">
|
||||
<option value="2">Give</option>
|
||||
<option value="1">Need</option>
|
||||
</select>
|
||||
</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="cun">This is a volunteer announcement <span>*</span></label>
|
||||
<select id="cun" name="wol">
|
||||
<option value="1">No</option>
|
||||
<option value="2">Yes</option>
|
||||
</select>
|
||||
</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">Title <span>*</span></label>
|
||||
<input type="text" class="form-control" id="name" aria-describedby="name" placeholder="" name="title">
|
||||
</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">Locality <span>*</span></label>
|
||||
<input list="browsers" name="browser" id="browser" class="form-control" aria-describedby="name">
|
||||
<datalist id="browsers">
|
||||
{% for place in place_list %}
|
||||
<option value = "{{place.city}}, {{place.woj_city}}" >
|
||||
{% endfor %}
|
||||
</datalist>
|
||||
|
||||
</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="order">Description <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">
|
||||
<div class="file-field">
|
||||
<span>Choose a picture</span>
|
||||
<input name="file" type="file" accept="image/*">
|
||||
</div>
|
||||
</div>
|
||||
</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="Add">
|
||||
</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 %}
|
49
SocialHelper/enGB/templates/enGB/conditions_of_use.html
Normal file
49
SocialHelper/enGB/templates/enGB/conditions_of_use.html
Normal file
@ -0,0 +1,49 @@
|
||||
<!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>
|
153
SocialHelper/enGB/templates/enGB/contact.html
Normal file
153
SocialHelper/enGB/templates/enGB/contact.html
Normal file
@ -0,0 +1,153 @@
|
||||
{% extends 'base.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>Contact with us!</h2>
|
||||
<p>Need help? Please contact with us via telephone, e-mail address or use our contact form below</p>
|
||||
</div>
|
||||
<div class="row contact_details">
|
||||
<div class="col-lg-4 col-md-6">
|
||||
<div class="media">
|
||||
<div class="d-flex">
|
||||
<i class="fa fa-map-marker" aria-hidden="true"></i>
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<p>ul. Uniwersytetu Poznańskiego 4<br />61-614 Poznań</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-6">
|
||||
<div class="media">
|
||||
<div class="d-flex">
|
||||
<i class="fa fa-phone" aria-hidden="true"></i>
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<a href="tel:+1109171234567">+48 - 123 - 456 - 789</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-6">
|
||||
<div class="media">
|
||||
<div class="d-flex">
|
||||
<i class="fa fa-envelope" aria-hidden="true"></i>
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<a href="mailto:kontakt@socialhelper.com">kontakt@socialhelper.com<a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</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">
|
||||
<div class="form-group col-lg-6">
|
||||
<input type="text" class="form-control" id="name" name="name" placeholder="Imię i nazwisko">
|
||||
</div>
|
||||
<div class="form-group col-lg-6">
|
||||
<input type="email" class="form-control" id="email" name="email" placeholder="Adres email">
|
||||
</div>
|
||||
<div class="form-group col-lg-12">
|
||||
<textarea class="form-control" name="message" id="message" rows="1" placeholder="Napisz wiadomość..."></textarea>
|
||||
</div>
|
||||
<div class="form-group col-lg-12">
|
||||
<button type="submit" value="submit" class="btn update_btn form-control">Send a message</button>
|
||||
</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 %}
|
327
SocialHelper/enGB/templates/enGB/create_user.html
Normal file
327
SocialHelper/enGB/templates/enGB/create_user.html
Normal file
@ -0,0 +1,327 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<style>
|
||||
body {font-family: Arial, Helvetica, sans-serif;}
|
||||
|
||||
/* The Modal (background) */
|
||||
.modal {
|
||||
display: none; /* Hidden by default */
|
||||
position: fixed; /* Stay in place */
|
||||
z-index: 1; /* Sit on top */
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%; /* Full width */
|
||||
height: 100%; /* Full height */
|
||||
overflow: auto; /* Enable scroll if needed */
|
||||
background-color: rgb(0,0,0); /* Fallback color */
|
||||
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
|
||||
-webkit-animation-name: fadeIn; /* Fade in the background */
|
||||
-webkit-animation-duration: 0.4s;
|
||||
animation-name: fadeIn;
|
||||
animation-duration: 0.4s
|
||||
}
|
||||
|
||||
/* Modal Content */
|
||||
.modal-content {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
background-color: #fefefe;
|
||||
width: 100%;
|
||||
-webkit-animation-name: slideIn;
|
||||
-webkit-animation-duration: 0.4s;
|
||||
animation-name: slideIn;
|
||||
animation-duration: 0.4s
|
||||
}
|
||||
|
||||
/* The Close Button */
|
||||
.close {
|
||||
color: white;
|
||||
float: right;
|
||||
font-size: 28px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.close:hover,
|
||||
.close:focus {
|
||||
color: #000;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.modal-header {
|
||||
padding: 2px 16px;
|
||||
background-color: #5cb85c;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.modal-body {padding: 2px 16px;}
|
||||
|
||||
.modal-footer {
|
||||
padding: 2px 16px;
|
||||
background-color: #5cb85c;
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* Add Animation */
|
||||
@-webkit-keyframes slideIn {
|
||||
from {bottom: -300px; opacity: 0}
|
||||
to {bottom: 0; opacity: 1}
|
||||
}
|
||||
|
||||
@keyframes slideIn {
|
||||
from {bottom: -300px; opacity: 0}
|
||||
to {bottom: 0; opacity: 1}
|
||||
}
|
||||
|
||||
@-webkit-keyframes fadeIn {
|
||||
from {opacity: 0}
|
||||
to {opacity: 1}
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from {opacity: 0}
|
||||
to {opacity: 1}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!--================Categories Banner Area =================-->
|
||||
<section class="solid_banner_area">
|
||||
<div class="container">
|
||||
<div class="solid_banner_inner">
|
||||
<h3>Create an account</h3>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!--================End Categories Banner Area =================-->
|
||||
|
||||
<!--================Register Area =================-->
|
||||
<form action="{% url 'create_user' %}" method="POST" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{ form.media }}
|
||||
{{ form.as_p }}
|
||||
<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">
|
||||
<label for="name">Confirm your password: <span>*</span></label>
|
||||
<input type="password" class="form-control" id="name" aria-describedby="name" placeholder="" name="pow_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="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>
|
||||
<div id="myModal" class="modal">
|
||||
|
||||
<!-- Modal content -->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<span class="close">×</span>
|
||||
<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>
|
||||
<br/>
|
||||
<h6> Before registering on the website, the user is obliged to read these regulations and undertake to comply with them.
|
||||
</h6>
|
||||
<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.
|
||||
<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 to the site, its system (directory, portability, etc.), site design and software used by the site, including trademarks and domain names.
|
||||
<br/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</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="Register">
|
||||
</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 =================-->
|
||||
<script>
|
||||
// Get the modal
|
||||
var modal = document.getElementById("myModal");
|
||||
|
||||
// Get the button that opens the modal
|
||||
var btn = document.getElementById("myBtn");
|
||||
|
||||
// Get the <span> element that closes the modal
|
||||
var span = document.getElementsByClassName("close")[0];
|
||||
|
||||
// When the user clicks the button, open the modal
|
||||
btn.onclick = function() {
|
||||
modal.style.display = "block";
|
||||
}
|
||||
|
||||
// When the user clicks on <span> (x), close the modal
|
||||
span.onclick = function() {
|
||||
modal.style.display = "none";
|
||||
}
|
||||
|
||||
// When the user clicks anywhere outside of the modal, close it
|
||||
window.onclick = function(event) {
|
||||
if (event.target == modal) {
|
||||
modal.style.display = "none";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
{% endblock %}
|
159
SocialHelper/enGB/templates/enGB/edit_user.html
Normal file
159
SocialHelper/enGB/templates/enGB/edit_user.html
Normal file
@ -0,0 +1,159 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<body>
|
||||
|
||||
<!--================Categories Banner Area =================-->
|
||||
<section class="solid_banner_area">
|
||||
<div class="container">
|
||||
<div class="solid_banner_inner">
|
||||
<h3>Change Password</h3>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!--================End Categories Banner Area =================-->
|
||||
|
||||
<!--================Register Area =================-->
|
||||
<form action="{% url 'edit_user' %}" 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">Password: <span>*</span></label>
|
||||
<input type="password" class="form-control" id="password" aria-describedby="name" placeholder="" name="oldpassword">
|
||||
</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">New Password: <span>*</span></label>
|
||||
<input type="password" class="form-control" id="name" aria-describedby="name" placeholder="" name="newpassword1">
|
||||
</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">Confirm new Password: <span>*</span></label>
|
||||
<input type="password" class="form-control" id="name" aria-describedby="name" placeholder="" name="newpassword2">
|
||||
</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="Change">
|
||||
</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 %}
|
225
SocialHelper/enGB/templates/enGB/edycja_ogloszenia.html
Normal file
225
SocialHelper/enGB/templates/enGB/edycja_ogloszenia.html
Normal file
@ -0,0 +1,225 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<body>
|
||||
|
||||
<!--================Categories Banner Area =================-->
|
||||
<section class="solid_banner_area">
|
||||
<div class="container">
|
||||
<div class="solid_banner_inner">
|
||||
<h3>Edit Your Offer</h3>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!--================End Categories Banner Area =================-->
|
||||
|
||||
<!--================Register Area =================-->
|
||||
<form action="{% url 'edit_offer' offer.id %}" method="POST" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{ form.media }}
|
||||
{{ form.as_p }}
|
||||
<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="cun">Type of offer<span>*</span></label>
|
||||
<select id="cun" name="offer">
|
||||
{% if offer.type == types.0.0 %}
|
||||
<option value="1">Service</option>
|
||||
<option selected value="2">Item</option>
|
||||
{% else %}
|
||||
<option selected value="1">Service</option>
|
||||
<option value="2">Item</option>
|
||||
{% endif %}
|
||||
</select>
|
||||
</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="cun">Offer type <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>
|
||||
{% else %}
|
||||
<option value="1">Give</option>
|
||||
<option selected value="2">Need</option>
|
||||
{% endif %}
|
||||
</select>
|
||||
</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="cun">This is a volunteer announcement <span>*</span></label>
|
||||
<select id="cun" name="wol">
|
||||
<option value="1">No</option>
|
||||
<option value="2">Yes</option>
|
||||
</select>
|
||||
</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">Title <span>*</span></label>
|
||||
<input type="text" class="form-control" id="name" aria-describedby="name" placeholder="" name="title" value={{ offer.title }}>
|
||||
</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">Locality <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 %}
|
||||
<option value = "{{place.city}}, {{place.woj_city}}" >
|
||||
{% endfor %}
|
||||
</datalist>
|
||||
|
||||
</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="order">Description <span>*</span></label>
|
||||
<textarea class="form-control" id="order" rows="3" name="script" >{{ offer.description }}</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">
|
||||
<div class="c_product_img">
|
||||
<img class="img-fluid" src="{{ offer.picture.url }}">
|
||||
</div>
|
||||
</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">
|
||||
<div class="file-field">
|
||||
<span>Choose a picture</span>
|
||||
<input name="file" type="file" accept="image/*" value={{ offer.picture.url }}>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12 form-group">
|
||||
<input type="submit" class="btn btn-primary update_btn" value="Save">
|
||||
</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 %}
|
160
SocialHelper/enGB/templates/enGB/enlogin.html
Normal file
160
SocialHelper/enGB/templates/enGB/enlogin.html
Normal file
@ -0,0 +1,160 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<body>
|
||||
|
||||
<!--================Categories Banner Area =================-->
|
||||
<section class="solid_banner_area">
|
||||
<div class="container">
|
||||
<div class="solid_banner_inner">
|
||||
<h3>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 %}
|
273
SocialHelper/enGB/templates/enGB/index.html
Normal file
273
SocialHelper/enGB/templates/enGB/index.html
Normal file
@ -0,0 +1,273 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<!--================Categories Product Area =================-->
|
||||
<section class="categories_product_main p_80">
|
||||
<div class="container">
|
||||
<div class="categories_main_inner">
|
||||
<div class="row row_disable">
|
||||
<div class="col-lg-9 float-md-right">
|
||||
<div class="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 %}
|
||||
{% for product in all_product %}
|
||||
<div class="c_product_item">
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-6">
|
||||
<div class="c_product_img">
|
||||
<img class="img-fluid" src="{{ 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>
|
||||
<h5>
|
||||
{% if types.0.0 == product.type %}
|
||||
Need
|
||||
{% else %}
|
||||
Give
|
||||
{% endif %}
|
||||
|
||||
{% if types_o.0.0 == product.offer %}
|
||||
Service
|
||||
{% else %}
|
||||
Items
|
||||
{% endif %}</h5>
|
||||
|
||||
<h6>Locality: <span>{{ product.place }}</span></h6>
|
||||
<p>{{ product.description }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% 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>
|
||||
|
||||
<form action="{% url 'filter' %}" method="post">
|
||||
{% csrf_token %}
|
||||
|
||||
<input type="hidden" name="place" value="">
|
||||
<input type="hidden" name="Oddam" value="">
|
||||
<input type="hidden" name="Potrzebuje" value="">
|
||||
<input type="hidden" name="usluga" value="">
|
||||
<input type="hidden" name="przedmiot" value="">
|
||||
<input type="hidden" name="wolontariat" value="">
|
||||
|
||||
<div class="col-lg-3 float-md-right">
|
||||
<div class="categories_sidebar">
|
||||
<aside class="l_widgest l_p_categories_widget">
|
||||
<div class="l_w_title">
|
||||
<h3>Filters</h3>
|
||||
</div>
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item">
|
||||
<h3 class="cart_single_title">Locality </h3>
|
||||
{% if place_local %}
|
||||
<input type="text" name="place" placeholder="Locality" value={{ place_local }}>
|
||||
{% else %}
|
||||
<input type="text" name="place" placeholder="Locality" >
|
||||
{% endif %}
|
||||
</li>
|
||||
</ul>
|
||||
</aside>
|
||||
<aside class="l_widgest l_menufacture_widget">
|
||||
<div class="l_w_title">
|
||||
<h3>Offer type</h3>
|
||||
</div>
|
||||
<ul>
|
||||
{% if oddam_local %}
|
||||
<input type="checkbox" id="Oddam" name="Oddam" Checked>
|
||||
{% else %}
|
||||
<input type="checkbox" id="Oddam" name="Oddam" >
|
||||
{% endif %}
|
||||
<label for="Oddam">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>
|
||||
</ul>
|
||||
</aside>
|
||||
|
||||
<aside class="l_widgest l_menufacture_widget">
|
||||
<div class="l_w_title">
|
||||
<h3>Type of offer</h3>
|
||||
</div>
|
||||
<ul>
|
||||
{% if usluga_local %}
|
||||
<input type="checkbox" id="usluga" name="usluga" Checked>
|
||||
{% else %}
|
||||
<input type="checkbox" id="usluga" name="usluga" >
|
||||
{% endif %}
|
||||
<label for="usluga">Service</label>
|
||||
<p></p>
|
||||
{% if przedmiot_local %}
|
||||
<input type="checkbox" id="przedmiot" name="przedmiot" Checked>
|
||||
{% else %}
|
||||
<input type="checkbox" id="przedmiot" name="przedmiot" >
|
||||
{% endif %}
|
||||
<label for="przedmiot">Item</label>
|
||||
</ul>
|
||||
</aside>
|
||||
|
||||
<aside class="l_widgest l_menufacture_widget">
|
||||
<div class="l_w_title">
|
||||
<h3>Volunteering</h3>
|
||||
</div>
|
||||
<ul>
|
||||
{% if wol_local%}
|
||||
<input type="checkbox" id="wolontariat" name="wolontariat" Checked>
|
||||
{% else %}
|
||||
<input type="checkbox" id="wolontariat" name="wolontariat" >
|
||||
{% endif %}
|
||||
<label for="wolontariat">Yes</label>
|
||||
</ul>
|
||||
</aside>
|
||||
|
||||
<input type="submit" class="btn btn-primary update_btn" value="Apply">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
||||
<!--================End Categories Product Area =================-->
|
||||
|
||||
<!--================Footer Area =================-->
|
||||
<footer class="footer_area">
|
||||
<div class="container">
|
||||
<div class="footer_widgets">
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-4 col-6">
|
||||
<aside class="f_widget f_about_widget">
|
||||
<img src="img/logo.png" alt="">
|
||||
<p>Persuit is a Premium PSD Template. Best choice for your online store. Let purchase it to enjoy now</p>
|
||||
<h6>Social:</h6>
|
||||
<ul>
|
||||
<li><a href="#"><i class="social_facebook"></i></a></li>
|
||||
<li><a href="#"><i class="social_twitter"></i></a></li>
|
||||
<li><a href="#"><i class="social_pinterest"></i></a></li>
|
||||
<li><a href="#"><i class="social_instagram"></i></a></li>
|
||||
<li><a href="#"><i class="social_youtube"></i></a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</div>
|
||||
<div class="col-lg-2 col-md-4 col-6">
|
||||
<aside class="f_widget link_widget f_info_widget">
|
||||
<div class="f_w_title">
|
||||
<h3>Information</h3>
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="#">About us</a></li>
|
||||
<li><a href="#">Delivery information</a></li>
|
||||
<li><a href="#">Terms & Conditions</a></li>
|
||||
<li><a href="#">Help Center</a></li>
|
||||
<li><a href="#">Returns & Refunds</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</div>
|
||||
<div class="col-lg-2 col-md-4 col-6">
|
||||
<aside class="f_widget link_widget f_service_widget">
|
||||
<div class="f_w_title">
|
||||
<h3>Customer Service</h3>
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="#">My account</a></li>
|
||||
<li><a href="#">Ordr History</a></li>
|
||||
<li><a href="#">Wish List</a></li>
|
||||
<li><a href="#">Newsletter</a></li>
|
||||
<li><a href="#">Contact Us</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</div>
|
||||
<div class="col-lg-2 col-md-4 col-6">
|
||||
<aside class="f_widget link_widget f_extra_widget">
|
||||
<div class="f_w_title">
|
||||
<h3>Extras</h3>
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="#">Brands</a></li>
|
||||
<li><a href="#">Gift Vouchers</a></li>
|
||||
<li><a href="#">Affiliates</a></li>
|
||||
<li><a href="#">Specials</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</div>
|
||||
<div class="col-lg-2 col-md-4 col-6">
|
||||
<aside class="f_widget link_widget f_account_widget">
|
||||
<div class="f_w_title">
|
||||
<h3>My Account</h3>
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="#">My account</a></li>
|
||||
<li><a href="#">Ordr History</a></li>
|
||||
<li><a href="#">Wish List</a></li>
|
||||
<li><a href="#">Newsletter</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer_copyright">
|
||||
<h5>© <script>document.write(new Date().getFullYear());</script> <!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
|
||||
Copyright ©<script>document.write(new Date().getFullYear());</script> All rights reserved | This template is made with <i class="fa fa-heart-o" aria-hidden="true"></i> by <a href="https://colorlib.com" target="_blank">Colorlib</a>. Downloaded from <a href="https://themeslab.org/" target="_blank">Themeslab</a>
|
||||
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<!--================End Footer Area =================-->
|
||||
</body>
|
||||
</html>
|
||||
{% endblock %}
|
173
SocialHelper/enGB/templates/enGB/my_offer.html
Normal file
173
SocialHelper/enGB/templates/enGB/my_offer.html
Normal file
@ -0,0 +1,173 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<body>
|
||||
<!--================Categories Banner Area =================-->
|
||||
<section class="solid_banner_area">
|
||||
<div class="container">
|
||||
<div class="solid_banner_inner">
|
||||
<h5>{{ username }}
|
||||
<h3>My Offer</h3>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!--================End Categories Banner Area =================-->
|
||||
|
||||
<!--================Categories Product Area =================-->
|
||||
<section class="categories_product_main p_80">
|
||||
<div class="container">
|
||||
<div class="categories_main_inner">
|
||||
<div class="row row_disable">
|
||||
<div class="col-lg-9 float-md-right">
|
||||
|
||||
|
||||
<div class="c_product_grid_details">
|
||||
{% if all_product %}
|
||||
{% for product in all_product %}
|
||||
<div class="c_product_item">
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-6">
|
||||
<div class="c_product_img">
|
||||
<img class="img-fluid" src="{{ product.picture.url }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-8 col-md-6">
|
||||
<div class="c_product_text">
|
||||
<h1>{{ product.title }}</h1>
|
||||
{% if types.0.0 == product.type %}
|
||||
<h5>Need
|
||||
{% else %}
|
||||
<h5>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>
|
||||
{% 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>
|
||||
{% endif %}
|
||||
<h6>Locality: <span>{{ product.place }}</span></h6>
|
||||
<p>{{ product.description }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<p>No polls are available.</p>
|
||||
{% 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>
|
||||
</div>
|
||||
|
||||
<form action="{% url 'filter' %}" method="post">
|
||||
{% csrf_token %}
|
||||
|
||||
<input type="hidden" name="place" value="">
|
||||
<input type="hidden" name="Oddam" value="">
|
||||
<input type="hidden" name="Potrzebuje" value="">
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!--================End Categories Product Area =================-->
|
||||
|
||||
<!--================Footer Area =================-->
|
||||
<footer class="footer_area">
|
||||
<div class="container">
|
||||
<div class="footer_widgets">
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-4 col-6">
|
||||
<aside class="f_widget f_about_widget">
|
||||
<img src="img/logo.png" alt="">
|
||||
<p>Persuit is a Premium PSD Template. Best choice for your online store. Let purchase it to enjoy now</p>
|
||||
<h6>Social:</h6>
|
||||
<ul>
|
||||
<li><a href="#"><i class="social_facebook"></i></a></li>
|
||||
<li><a href="#"><i class="social_twitter"></i></a></li>
|
||||
<li><a href="#"><i class="social_pinterest"></i></a></li>
|
||||
<li><a href="#"><i class="social_instagram"></i></a></li>
|
||||
<li><a href="#"><i class="social_youtube"></i></a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</div>
|
||||
<div class="col-lg-2 col-md-4 col-6">
|
||||
<aside class="f_widget link_widget f_info_widget">
|
||||
<div class="f_w_title">
|
||||
<h3>Information</h3>
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="#">About us</a></li>
|
||||
<li><a href="#">Delivery information</a></li>
|
||||
<li><a href="#">Terms & Conditions</a></li>
|
||||
<li><a href="#">Help Center</a></li>
|
||||
<li><a href="#">Returns & Refunds</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</div>
|
||||
<div class="col-lg-2 col-md-4 col-6">
|
||||
<aside class="f_widget link_widget f_service_widget">
|
||||
<div class="f_w_title">
|
||||
<h3>Customer Service</h3>
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="#">My account</a></li>
|
||||
<li><a href="#">Ordr History</a></li>
|
||||
<li><a href="#">Wish List</a></li>
|
||||
<li><a href="#">Newsletter</a></li>
|
||||
<li><a href="#">Contact Us</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</div>
|
||||
<div class="col-lg-2 col-md-4 col-6">
|
||||
<aside class="f_widget link_widget f_extra_widget">
|
||||
<div class="f_w_title">
|
||||
<h3>Extras</h3>
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="#">Brands</a></li>
|
||||
<li><a href="#">Gift Vouchers</a></li>
|
||||
<li><a href="#">Affiliates</a></li>
|
||||
<li><a href="#">Specials</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</div>
|
||||
<div class="col-lg-2 col-md-4 col-6">
|
||||
<aside class="f_widget link_widget f_account_widget">
|
||||
<div class="f_w_title">
|
||||
<h3>My Account</h3>
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="#">My account</a></li>
|
||||
<li><a href="#">Ordr History</a></li>
|
||||
<li><a href="#">Wish List</a></li>
|
||||
<li><a href="#">Newsletter</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer_copyright">
|
||||
<h5>© <script>document.write(new Date().getFullYear());</script> <!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
|
||||
Copyright ©<script>document.write(new Date().getFullYear());</script> All rights reserved | This template is made with <i class="fa fa-heart-o" aria-hidden="true"></i> by <a href="https://colorlib.com" target="_blank">Colorlib</a>. Downloaded from <a href="https://themeslab.org/" target="_blank">Themeslab</a>
|
||||
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<!--================End Footer Area =================-->
|
||||
</body>
|
||||
</html>
|
||||
{% endblock %}
|
136
SocialHelper/enGB/templates/enGB/regulamin.html
Normal file
136
SocialHelper/enGB/templates/enGB/regulamin.html
Normal file
@ -0,0 +1,136 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<body>
|
||||
|
||||
<section class="contact_area p_100">
|
||||
<div class="container">
|
||||
<h1>SocialHelper 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>
|
||||
<br/>
|
||||
<h6> Before registering on the website, the user is obliged to read these regulations and undertake to comply with them.
|
||||
</h6>
|
||||
<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.
|
||||
<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 to the site, its system (directory, portability, etc.), site design and software used by the site, including trademarks and domain names.
|
||||
<br/>
|
||||
|
||||
</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 %}
|
219
SocialHelper/enGB/templates/enGB/user_profile.html
Normal file
219
SocialHelper/enGB/templates/enGB/user_profile.html
Normal file
@ -0,0 +1,219 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<body>
|
||||
<!--================Categories Banner Area =================-->
|
||||
<section class="solid_banner_area">
|
||||
<div class="container">
|
||||
<div class="solid_banner_inner">
|
||||
<h3>User Profile</h3>
|
||||
<h5>{{ name }}</h5>
|
||||
<label>Neutral</label><br>
|
||||
<label style="color:red">Negative</label><input type="range" style="width: 500px;" id="volume" name="volume" min="0" max="100" value = "{{ ocena }}" disabled="True" color="Blue"><label style="color:limegreen">Positive</label>
|
||||
{% if user.email %}
|
||||
<p></p><a href="{{ name }}/add_comment"><button type="button" class="btn btn-primary pull-right">Rate 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>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#2zakladka" role="tab" data-toggle="tab">Comment</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 %}
|
||||
<div class="c_product_item">
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-6">
|
||||
<div class="c_product_img">
|
||||
<img class="img-fluid" src="{{ product.picture.url }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-8 col-md-6">
|
||||
<div class="c_product_text">
|
||||
<h1>{{ product.title }}</h1>
|
||||
{% if types.0.0 == product.type %}
|
||||
<h5>Need
|
||||
{% else %}
|
||||
<h5>Give
|
||||
{% endif %}
|
||||
{% if types_o.0.0 == product.offer %}
|
||||
Service</h5>
|
||||
{% else %}
|
||||
Item</h5>
|
||||
{% endif %}
|
||||
<h6>Locality: <span>{{ product.place }}</span></h6>
|
||||
<p>{{ product.description }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<p>No polls are available.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form action="{% url 'filter' %}" method="post">
|
||||
{% csrf_token %}
|
||||
|
||||
<input type="hidden" name="place" value="">
|
||||
<input type="hidden" name="Oddam" value="">
|
||||
<input type="hidden" name="Potrzebuje" value="">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="tab-pane" id="2zakladka">
|
||||
<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_oceny %}
|
||||
{% for ocen_jed in all_oceny %}
|
||||
<div class="c_product_item">
|
||||
<div class="row">
|
||||
{{ocen_jed.comm}}
|
||||
{{ocen_jed.ocena_jedn}}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<p>No polls are available.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form action="{% url 'filter' %}" method="post">
|
||||
{% csrf_token %}
|
||||
|
||||
<input type="hidden" name="place" value="">
|
||||
<input type="hidden" name="Oddam" value="">
|
||||
<input type="hidden" name="Potrzebuje" value="">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</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 %}
|
72
SocialHelper/enGB/templates/navbar.html
Normal file
72
SocialHelper/enGB/templates/navbar.html
Normal file
@ -0,0 +1,72 @@
|
||||
{% 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="/enGB/"><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="all">All Offer</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>
|
||||
</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>
|
||||
{% else %}
|
||||
<li> <a href="/enGB/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>
|
||||
</div>
|
||||
</header>
|
||||
<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="/enGB/"><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="all">All</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="product">Objects</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>
|
||||
</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="logout_user"><img src="{% static "logout.png"%}" height="25"/></a></li>
|
||||
{% else %}
|
||||
<li> <a href="login"><img src="{% static "login.png"%}" height="25"/></a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
</body>
|
||||
</html>
|
||||
<!--================End Menu Area =================-->
|
3
SocialHelper/enGB/tests.py
Normal file
3
SocialHelper/enGB/tests.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
31
SocialHelper/enGB/urls.py
Normal file
31
SocialHelper/enGB/urls.py
Normal file
@ -0,0 +1,31 @@
|
||||
from django.urls import path, include
|
||||
from . import views
|
||||
|
||||
from django.conf import settings
|
||||
from django.conf.urls.static import static
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.enindex, name='index'),
|
||||
path('product', views.enindex_product, name='index_product'),
|
||||
path('offer', views.enindex_offer, name='index_offer'),
|
||||
path('all', views.enindex, name='index'),
|
||||
|
||||
path('', views.enindex, name='index'),
|
||||
path('contact', views.encontact, name='contact'),
|
||||
path('regulamin',views.enregulamin, name='regulamin'),
|
||||
path('filter', views.enfilter, name='filter'),
|
||||
path('add_offer', views.enadd_offer, name='add_offer'),
|
||||
path('my_offer', views.enmy_offer, name='my_offer'),
|
||||
path('<int:offer_id>/delete_offer', views.endelete_offer, name='delete_offer'),
|
||||
path('<int:offer_id>/edit_offer', views.enedit_offer, name='edit_offer'),
|
||||
|
||||
path('create_user', views.encreate_user, name='create_user'),
|
||||
path('enlogin', views.enlogin, name='enlogin'),
|
||||
path('delete_user', views.endelete_user, name='delete_user'),
|
||||
path('logout_user', views.enlogout_user, name='logout_user'),
|
||||
path('<int:user_id>/delete_user', views.endelete_user, name='delete_user'),
|
||||
path('edit_user', views.enedit_user, name='edit_user'),
|
||||
path('user_profile/<str:user_name>', views.enuser_profile, name='user_profile'),
|
||||
path('user_profile/<str:user_name>/add_comment', views.enadd_comment, name='add_comment'),
|
||||
|
||||
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
489
SocialHelper/enGB/views.py
Normal file
489
SocialHelper/enGB/views.py
Normal file
@ -0,0 +1,489 @@
|
||||
from django.shortcuts import get_object_or_404, render, redirect
|
||||
from django.contrib.auth import authenticate, login, logout
|
||||
from django.http import HttpResponse, HttpResponseRedirect
|
||||
from django.contrib.auth.decorators import login_required
|
||||
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 datetime import timedelta
|
||||
import datetime
|
||||
|
||||
|
||||
def enindex(request):
|
||||
all_product = Product.objects.filter(active = True)
|
||||
template = loader.get_template('enGB/index.html')
|
||||
types = TYPE_T
|
||||
types_o = TYPE_O
|
||||
place_local = ""
|
||||
oddam_local = ""
|
||||
potrzebuje_local = ""
|
||||
usluga_local = ""
|
||||
przedmiot_local = ""
|
||||
context = {
|
||||
'all_product': all_product,
|
||||
'types': types,
|
||||
'place_local': place_local,
|
||||
'oddam_local': oddam_local,
|
||||
'potrzebuje_local': potrzebuje_local,
|
||||
'types_o': types_o,
|
||||
'usluga_local': usluga_local,
|
||||
'przedmiot_local': przedmiot_local,
|
||||
}
|
||||
return HttpResponse(template.render(context, request))
|
||||
|
||||
def enindex_product(request):
|
||||
all_product = Product.objects.filter(active = True, offer=2)
|
||||
template = loader.get_template('enGB/index.html')
|
||||
types = TYPE_T
|
||||
types_o = TYPE_O
|
||||
place_local = ""
|
||||
oddam_local = ""
|
||||
potrzebuje_local = ""
|
||||
usluga_local = ""
|
||||
przedmiot_local = "1"
|
||||
context = {
|
||||
'all_product': all_product,
|
||||
'types': types,
|
||||
'place_local': place_local,
|
||||
'oddam_local': oddam_local,
|
||||
'potrzebuje_local': potrzebuje_local,
|
||||
'types_o': types_o,
|
||||
'usluga_local': usluga_local,
|
||||
'przedmiot_local': przedmiot_local,
|
||||
}
|
||||
return HttpResponse(template.render(context, request))
|
||||
|
||||
def enindex_offer(request):
|
||||
all_product = Product.objects.filter(active = True, offer=1)
|
||||
template = loader.get_template('enGB/index.html')
|
||||
types = TYPE_T
|
||||
types_o = TYPE_O
|
||||
place_local = ""
|
||||
oddam_local = ""
|
||||
potrzebuje_local = ""
|
||||
usluga_local = "1"
|
||||
przedmiot_local = ""
|
||||
context = {
|
||||
'all_product': all_product,
|
||||
'types': types,
|
||||
'place_local': place_local,
|
||||
'oddam_local': oddam_local,
|
||||
'potrzebuje_local': potrzebuje_local,
|
||||
'types_o': types_o,
|
||||
'usluga_local': usluga_local,
|
||||
'przedmiot_local': przedmiot_local,
|
||||
}
|
||||
return HttpResponse(template.render(context, request))
|
||||
|
||||
def encontact(request):
|
||||
return render(request , 'enGB/contact.html')
|
||||
|
||||
def enregulamin(request):
|
||||
return render(request, 'enGB/regulamin.html')
|
||||
|
||||
def enmy_offer(request):
|
||||
if request.user.is_authenticated:
|
||||
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')
|
||||
types = TYPE_T
|
||||
types_o = TYPE_O
|
||||
place_local = ""
|
||||
oddam_local = ""
|
||||
potrzebuje_local = ""
|
||||
usluga_local = ""
|
||||
przedmiot_local = ""
|
||||
context = {
|
||||
'all_product': all_product,
|
||||
'types': types,
|
||||
'place_local': place_local,
|
||||
'oddam_local': oddam_local,
|
||||
'potrzebuje_local': potrzebuje_local,
|
||||
'types_o': types_o,
|
||||
'usluga_local': usluga_local,
|
||||
'przedmiot_local': przedmiot_local,
|
||||
'username': username
|
||||
}
|
||||
return HttpResponse(template.render(context, request))
|
||||
else:
|
||||
return redirect(enlogin)
|
||||
|
||||
def enfilter(request):
|
||||
|
||||
all_product = Product.objects.filter(active = True)
|
||||
template = loader.get_template('enGB/index.html')
|
||||
if request.method == 'POST':
|
||||
place_local = request.POST['place']
|
||||
oddam_local = request.POST['Oddam']
|
||||
potrzebuje_local = request.POST['Potrzebuje']
|
||||
usluga_local = request.POST['usluga']
|
||||
przedmiot_local = request.POST['przedmiot']
|
||||
wol_local = request.POST['wolontariat']
|
||||
|
||||
|
||||
|
||||
if place_local != "":
|
||||
all_product = all_product.filter(place=place_local)
|
||||
|
||||
if oddam_local == "on" and potrzebuje_local != "on":
|
||||
zmienna = 2
|
||||
all_product = all_product.filter(type=zmienna)
|
||||
|
||||
if oddam_local != "on" and potrzebuje_local == "on":
|
||||
zmienna = 1
|
||||
all_product = all_product.filter(type=zmienna)
|
||||
|
||||
if usluga_local == "on" and przedmiot_local != "on":
|
||||
zmienna = 1
|
||||
all_product = all_product.filter(type=zmienna)
|
||||
|
||||
if usluga_local != "on" and przedmiot_local == "on":
|
||||
zmienna = 2
|
||||
all_product = all_product.filter(type=zmienna)
|
||||
|
||||
if wol_local == "on":
|
||||
all_product = all_product.filter(Wolontatriat=True)
|
||||
|
||||
|
||||
types = TYPE_T
|
||||
types_o = TYPE_O
|
||||
print(types)
|
||||
context = {
|
||||
'all_product': all_product,
|
||||
'types': types,
|
||||
'types_o': types_o,
|
||||
'place_local': place_local,
|
||||
'oddam_local': oddam_local,
|
||||
'potrzebuje_local': potrzebuje_local,
|
||||
'usluga_local': usluga_local,
|
||||
'przedmiot_local': przedmiot_local,
|
||||
'wol_local': wol_local,
|
||||
|
||||
}
|
||||
return HttpResponse(template.render(context, request))
|
||||
|
||||
def enadd_offer(request):
|
||||
place_list = Places.objects.all()
|
||||
if request.user.is_authenticated:
|
||||
if request.method == 'POST':
|
||||
place_local = request.POST['browser']
|
||||
type_local = request.POST['type']
|
||||
script_local = request.POST['script']
|
||||
title_local = request.POST['title']
|
||||
|
||||
|
||||
wol_local = request.POST['wol']
|
||||
if wol_local == "1":
|
||||
wol = False
|
||||
else:
|
||||
wol = True
|
||||
|
||||
data_local = timezone.now()
|
||||
if request.FILES:
|
||||
pic_local = request.FILES['file']
|
||||
else:
|
||||
pic_local = "/images/basic.png"
|
||||
offer_local = request.POST['offer']
|
||||
|
||||
if title_local == "":
|
||||
messages.error(request,'Musisz podać tytuł!')
|
||||
return redirect('add_offer')
|
||||
if script_local == "":
|
||||
messages.error(request,'Musisz podać opis!')
|
||||
return redirect('add_offer')
|
||||
if place_local == "":
|
||||
messages.error(request,'Musisz podać miejscowość!')
|
||||
return redirect('add_offer')
|
||||
|
||||
product = Product(
|
||||
picture = pic_local,
|
||||
Wolontatriat = wol,
|
||||
create_date = data_local,
|
||||
user_iden = request.user,
|
||||
type = int(type_local),
|
||||
offer = int(offer_local),
|
||||
title = title_local,
|
||||
description = script_local,
|
||||
place = place_local,
|
||||
keywords = "",
|
||||
)
|
||||
product.save()
|
||||
messages.success(request, 'Ogłoszenie dodane!')
|
||||
return redirect(enmy_offer)
|
||||
context = {
|
||||
'place_list': place_list,
|
||||
}
|
||||
return render(request , 'enGB/add_offer.html', context)
|
||||
else:
|
||||
return redirect(enlogin)
|
||||
|
||||
def endelete_offer(request, offer_id):
|
||||
instance = Product.objects.get(id=offer_id)
|
||||
instance.active = False
|
||||
instance.save()
|
||||
messages.success(request, 'Ogłoszenie usunięte!')
|
||||
|
||||
return redirect(enmy_offer)
|
||||
|
||||
def enedit_offer(request, offer_id):
|
||||
instance = Product.objects.get(id=offer_id)
|
||||
types = TYPE_T
|
||||
types_o = TYPE_O
|
||||
place_list = Places.objects.all()
|
||||
context = {
|
||||
'offer': instance,
|
||||
'place_list': place_list,
|
||||
'types': types,
|
||||
'types_o': types_o,
|
||||
}
|
||||
if request.method == 'POST':
|
||||
place_local = request.POST['browser']
|
||||
type_local = request.POST['type']
|
||||
script_local = request.POST['script']
|
||||
title_local = request.POST['title']
|
||||
|
||||
wol_local = request.POST['wol']
|
||||
if wol_local == "1":
|
||||
wol = False
|
||||
else:
|
||||
wol = True
|
||||
|
||||
if title_local == "":
|
||||
messages.error(request,'Musisz podać tytuł!')
|
||||
return redirect('add_offer')
|
||||
if script_local == "":
|
||||
messages.error(request,'Musisz podać opis!')
|
||||
return redirect('add_offer')
|
||||
if place_local == "":
|
||||
messages.error(request,'Musisz podać miejscowość!')
|
||||
return redirect('add_offer')
|
||||
|
||||
if request.FILES:
|
||||
pic_local = request.FILES['file']
|
||||
instance.picture = pic_local
|
||||
|
||||
offer_local = request.POST['offer']
|
||||
|
||||
instance.Wolontatriat = wol
|
||||
instance.type = int(type_local)
|
||||
instance.offer = int(offer_local)
|
||||
instance.title = title_local
|
||||
instance.description = script_local
|
||||
instance.place= place_local
|
||||
instance.keywords = ""
|
||||
|
||||
instance.save()
|
||||
messages.success(request, 'Ogłoszenie edytowane!')
|
||||
return redirect(enmy_offer)
|
||||
return render(request , 'enGB/edycja_ogloszenia.html', context)
|
||||
|
||||
def encreate_user(request):
|
||||
if request.method == 'POST':
|
||||
User = get_user_model()
|
||||
email = request.POST['email']
|
||||
password = request.POST['password']
|
||||
pow_password = request.POST['pow_password']
|
||||
scales = request.POST['scales']
|
||||
#walidacja
|
||||
if scales == "No":
|
||||
messages.error(request,'Musisz zaakceptować regulamin!')
|
||||
return redirect('create_user')
|
||||
|
||||
if email == "":
|
||||
messages.error(request,'Pole email jest puste!')
|
||||
return redirect('create_user')
|
||||
|
||||
if "@" not in email:
|
||||
messages.error(request,'Wprowadzony email jest niepoprawny!')
|
||||
return redirect('create_user')
|
||||
|
||||
if User.objects.filter(email=email).exists():
|
||||
messages.error(request,'Ten adres e-mail jest już używany')
|
||||
return redirect('create_user')
|
||||
|
||||
if password == "":
|
||||
messages.error(request,'Pole hasło jest puste!')
|
||||
return redirect('create_user')
|
||||
|
||||
if password != pow_password:
|
||||
messages.error(request,'Podane hasła są różne')
|
||||
return redirect('create_user')
|
||||
|
||||
if password == email:
|
||||
messages.error(request,'Podane hasła i email muszą byc różne')
|
||||
return redirect('create_user')
|
||||
|
||||
dlugosc = 0
|
||||
znak = 0
|
||||
duza = 0
|
||||
mala = 0
|
||||
cyfra = 0
|
||||
for i in password:
|
||||
if i in "1234567890":
|
||||
cyfra = 1
|
||||
elif i in "QWERTYUIOPASDFGHJKLZXCVBNM":
|
||||
duza = 1
|
||||
elif i in "qwertyuiopasdfghjklzxcvbnm":
|
||||
mala = 1
|
||||
elif i in "!@#$%&*(){}[]<>?":
|
||||
znak = 1
|
||||
if len(password) >= 8:
|
||||
dlugosc = 1
|
||||
|
||||
if dlugosc+znak+mala+duza+cyfra != 5:
|
||||
messages.error(request,'Podane hasło jest nieprawidłowe. Hasło musi zawierać conajmniej: 1 cyfre, 1 duza litere, 1 mala litere, 1 znak specjalny z zakresu !@#$%&*(){}[]<>?, oraz składać sie conajmniej z 8 symboli')
|
||||
return redirect('create_user')
|
||||
|
||||
else:
|
||||
user = User(
|
||||
username = email,
|
||||
email = email,
|
||||
is_active = True,
|
||||
is_staff = False
|
||||
)
|
||||
user.save()
|
||||
user.set_password(password)
|
||||
user.save()
|
||||
messages.success(request,'Gratulacje, teraz możesz się zalogować!')
|
||||
return redirect(enmy_offer)
|
||||
return render(request , 'enGB/create_user.html')
|
||||
|
||||
def endelete_user(request):
|
||||
User = get_user_model()
|
||||
instant = User.objects.filter(id=request.user.id).first()
|
||||
instant.is_active = False
|
||||
instant.email = str(instant.id)
|
||||
instant.username = str(instant.id)
|
||||
instant_offer = Product.objects.filter(user_iden = instant)
|
||||
for offer in instant_offer:
|
||||
offer.active = False
|
||||
offer.save()
|
||||
instant.save()
|
||||
|
||||
messages.success(request,'Konto skasowane!')
|
||||
return redirect(enindex)
|
||||
|
||||
def enedit_user(request):
|
||||
User = get_user_model()
|
||||
instant = User.objects.filter(id=request.user.id).first()
|
||||
if request.method == 'POST':
|
||||
|
||||
oldpassword = request.POST['oldpassword']
|
||||
newpassword1 = request.POST['newpassword1']
|
||||
newpassword2 = request.POST['newpassword2']
|
||||
user = authenticate(request, username=instant.username, password=oldpassword, is_active=True)
|
||||
if user is None:
|
||||
messages.error(request,'Podałeś złe hasło')
|
||||
return redirect('edit_user')
|
||||
|
||||
dlugosc = 0
|
||||
znak = 0
|
||||
duza = 0
|
||||
mala = 0
|
||||
cyfra = 0
|
||||
for i in newpassword1:
|
||||
if i in "1234567890":
|
||||
cyfra = 1
|
||||
elif i in "QWERTYUIOPASDFGHJKLZXCVBNM":
|
||||
duza = 1
|
||||
elif i in "qwertyuiopasdfghjklzxcvbnm":
|
||||
mala = 1
|
||||
elif i in "!@#$%&*(){}[]<>?":
|
||||
znak = 1
|
||||
if len(newpassword1) >= 8:
|
||||
dlugosc = 1
|
||||
|
||||
if dlugosc+znak+mala+duza+cyfra != 5:
|
||||
messages.error(request,'Podane hasło jest nieprawidłowe. Hasło musi zawierać conajmniej: 1 cyfre, 1 duza litere, 1 mala litere, 1 znak specjalny z zakresu !@#$%&*(){}[]<>?, oraz składać sie conajmniej z 8 symboli')
|
||||
return redirect('edit_user')
|
||||
|
||||
if newpassword1 != newpassword2:
|
||||
messages.error(request,'Podane nowe hasła są różne')
|
||||
return redirect('edit_user')
|
||||
|
||||
instant.set_password(newpassword1)
|
||||
instant.save()
|
||||
messages.success(request,'Hasło zmienione, nastąpiło wylogowanie!')
|
||||
return redirect('my_offer')
|
||||
|
||||
return render(request , 'enGB/edit_user.html')
|
||||
|
||||
def enlogin(request):
|
||||
if request.method == 'POST':
|
||||
username = request.POST['email']
|
||||
password = request.POST['password']
|
||||
user = authenticate(request, username=username, password=password, is_active=True)
|
||||
if user is not None:
|
||||
auth.login(request,user)
|
||||
messages.success(request, 'Jesteś zalogowany!')
|
||||
return redirect(enmy_offer)
|
||||
else:
|
||||
messages.error(request,'Nieprawidłowe dane logowania!')
|
||||
return redirect(enlogin)
|
||||
return render(request , 'enGB/enlogin.html')
|
||||
|
||||
def enlogout_user(request):
|
||||
auth.logout(request)
|
||||
messages.success(request, 'Zostałeś wylogowany!')
|
||||
return redirect(enindex)
|
||||
|
||||
def enuser_profile(request, user_name):
|
||||
User = get_user_model()
|
||||
user_prof = User.objects.filter(username=user_name).first()
|
||||
|
||||
all_product = Product.objects.filter(active = True, user_iden = user_prof.id)
|
||||
oceny = Ocena.objects.filter(user_iden = user_prof.id)
|
||||
template = loader.get_template('enGB/user_profile.html')
|
||||
|
||||
types = TYPE_T
|
||||
types_o = TYPE_O
|
||||
|
||||
if Ocena.objects.filter(user_iden = user_prof.id).exists():
|
||||
ocena = 0
|
||||
suma = 0
|
||||
for ocena_j in oceny:
|
||||
print(ocena)
|
||||
ocena = ocena + ocena_j.ocena_jedn
|
||||
suma = suma + 1
|
||||
ocena = ocena / suma
|
||||
ocena = ocena * 10
|
||||
ocena = int (ocena)
|
||||
else:
|
||||
ocena = 5
|
||||
context = {
|
||||
'all_product': all_product,
|
||||
'all_oceny': oceny,
|
||||
'ocena': ocena,
|
||||
'name': user_prof.email,
|
||||
}
|
||||
return HttpResponse(template.render(context, request))
|
||||
|
||||
def enadd_comment(request, user_name):
|
||||
if request.user.is_authenticated:
|
||||
User = get_user_model()
|
||||
user_prof = User.objects.filter(email=user_name).first()
|
||||
if request.method == 'POST':
|
||||
volume_local = request.POST['volume']
|
||||
script_local = request.POST['script']
|
||||
instant = Ocena(
|
||||
user_iden = user_prof,
|
||||
comm = script_local,
|
||||
ocena_jedn = int(volume_local)*2,
|
||||
)
|
||||
instant.save()
|
||||
messages.success(request, 'Dodano komentarz')
|
||||
return redirect(enuser_profile, user_name)
|
||||
|
||||
context = {
|
||||
'user_name': user_name,
|
||||
|
||||
}
|
||||
template = loader.get_template('enGB/add_comment.html')
|
||||
return HttpResponse(template.render(context, request))
|
||||
else:
|
||||
return redirect(enlogin)
|
Binary file not shown.
@ -9,7 +9,7 @@
|
||||
<section class="solid_banner_area">
|
||||
<div class="container">
|
||||
<div class="solid_banner_inner">
|
||||
<h3>Dodaj nowe ogłoszenie</h3>
|
||||
<h3>Edytuj ogłoszenie</h3>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -52,7 +52,7 @@
|
||||
</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">
|
||||
|
@ -62,12 +62,8 @@
|
||||
{% endif %}
|
||||
{% if types_o.0.0 == product.offer %}
|
||||
Usługa</h5>
|
||||
<a href="{{ product.id }}/delete_offer"><button type="button" class="btn btn-danger pull-right">Zakończ</button></a>
|
||||
<a href="{{ product.id }}/edit_offer"><button type="button" class="btn btn-primary pull-right">Edytuj</button></a>
|
||||
{% else %}
|
||||
Przedmiot</h5>
|
||||
<a href="{{ product.id }}/delete_offer"><button type="button" class="btn btn-danger pull-right">Zakończ</button></a>
|
||||
<a href="{{ product.id }}/edit_offer"><button type="button" class="btn btn-primary pull-right">Edytuj</button></a>
|
||||
{% endif %}
|
||||
<h6>Z miejscowości: <span>{{ product.place }}</span></h6>
|
||||
<p>{{ product.description }}</p>
|
||||
|
@ -21,15 +21,18 @@
|
||||
<li class="nav-item"><a class="nav-link" href="contact">Kontakt</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<ul class="navbar-nav justify-content-end">
|
||||
<li class="search_icon"><a href="#"><i class="icon-magnifier icons"></i></a></li>
|
||||
{% if user.email %}
|
||||
<li class="user_icon"><a href="/homepage/my_offer"><i class="icon-user icons"></i></a></li>
|
||||
<li ><a href="/homepage/add_offer"><img src="{% static "plus.png"%}" height="20"/></a></li>
|
||||
<li> <a href="logout_user"><img src="{% static "logout.png"%}" height="25"/></a></li>
|
||||
<li> <a href="/homepage/logout_user"><img src="{% static "logout.png"%}" height="25"/></a></li>
|
||||
{% else %}
|
||||
<li> <a href="login"><img src="{% static "login.png"%}" height="25"/></a></li>
|
||||
<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>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user