push
This commit is contained in:
parent
baa6309bcd
commit
8eac1970a1
Binary file not shown.
@ -1 +1,170 @@
|
|||||||
ocena użytkownika
|
{% 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>Oceń Użytkownika</h3>
|
||||||
|
<h5>{{ user_name }}</h5>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<!--================End Categories Banner Area =================-->
|
||||||
|
|
||||||
|
<!--================Register Area =================-->
|
||||||
|
<form action="{% url 'login' %}" 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">Ocena: <span id="demo"></span></label>
|
||||||
|
<input type="range" style="width: 500px;" id="myRange" name="volume" min="0" max="5" step="1" color="Blue">
|
||||||
|
<script>
|
||||||
|
var slider = document.getElementById("myRange");
|
||||||
|
var output = document.getElementById("demo");
|
||||||
|
output.innerHTML = slider.value;
|
||||||
|
|
||||||
|
slider.oninput = function() {
|
||||||
|
output.innerHTML = this.value;
|
||||||
|
}
|
||||||
|
</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">Hasło: <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="Logowanie">
|
||||||
|
</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">Jeśli nie masz konta możesz je utworzyć tutaj:</label> <br>
|
||||||
|
<a href="create_user"><button type="button" class="btn btn-primary update_btn">REJESTRACJA</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 %}
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
<h5>{{ name }}</h5>
|
<h5>{{ name }}</h5>
|
||||||
<label>Neutralne</label><br>
|
<label>Neutralne</label><br>
|
||||||
<label style="color:red">Niepolecany</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">Polecany</label>
|
<label style="color:red">Niepolecany</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">Polecany</label>
|
||||||
|
<p></p><a href="{{ name }}/add_comment"><button type="button" class="btn btn-primary pull-right">Oceń Użytkownika</button></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@ -30,7 +31,7 @@
|
|||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="#2zakladka" role="tab" data-toggle="tab">Oceny</a>
|
<a class="nav-link" href="#2zakladka" role="tab" data-toggle="tab">Oceny</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
|
@ -454,4 +454,12 @@ def user_profile(request, user_name):
|
|||||||
return HttpResponse(template.render(context, request))
|
return HttpResponse(template.render(context, request))
|
||||||
|
|
||||||
def add_comment(request, user_name):
|
def add_comment(request, user_name):
|
||||||
return True
|
User = get_user_model()
|
||||||
|
user_prof = User.objects.filter(username=user_name).first()
|
||||||
|
template = loader.get_template('homepage/add_comment.html')
|
||||||
|
|
||||||
|
context = {
|
||||||
|
'user_name': user_name,
|
||||||
|
|
||||||
|
}
|
||||||
|
return HttpResponse(template.render(context, request))
|
||||||
|
Loading…
Reference in New Issue
Block a user