Skip to content
Permalink
5cb1253178
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 154 lines (134 sloc) 6.35 KB
{% load static %}
<!DOCTYPE html>
<html lang="zxx">
<head>
<meta charset="UTF-8">
<meta name="description" content="Ogani Template">
<meta name="keywords" content="Ogani, unica, creative, html">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Limit Items bought per Week</title>
<!-- Google Font -->
<link href="https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;600;900&display=swap" rel="stylesheet">
<!-- Css Styles -->
<link rel="stylesheet" href="{% static '/css/bootstrap.min.css'%}" type="text/css">
<link rel="stylesheet" href="{% static '/css/font-awesome.min.css'%}" type="text/css">
<link rel="stylesheet" href="{% static '/css/elegant-icons.css'%}" type="text/css">
<link rel="stylesheet" href="{% static '/css/nice-select.css'%}" type="text/css">
<link rel="stylesheet" href="{% static '/css/jquery-ui.min.css'%}" type="text/css">
<link rel="stylesheet" href="{% static '/css/owl.carousel.min.css'%}" type="text/css">
<link rel="stylesheet" href="{% static '/css/slicknav.min.css'%}" type="text/css">
<link rel="stylesheet" href="{% static '/css/style.css'%}" type="text/css">
<!-- CSRF Token -->
<script type="text/javascript">
var user = '{{request.user}}'
function getToken(name) {
let cookieValue = null;
if (document.cookie && document.cookie !== '') {
const cookies = document.cookie.split(';');
for (let i = 0; i < cookies.length; i++) {
const cookie = cookies[i].trim();
// Does this cookie string begin with the name we want?
if (cookie.substring(0, name.length + 1) === (name + '=')) {
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
break;
}
}
}
return cookieValue;
}
const csrftoken = getToken('csrftoken');
</script>
</head>
<body>
<header class="header">
<div class="container">
<div class="row">
<div class="col-lg-3">
<div class="header__logo">
<a href="#"><img src="{% static '/images/logo.png'%}" alt=""></a>
</div>
</div>
<div class="col-lg-9">
<nav class="header__menu">
<ul>
<li class="active"><a href="#">Limit in shop items </a></li>
<li><a href="#">Limit items for delievery</a></li>
<li><a href="{% url 'store_dashBoard' %}">Suplier realocation of resources</a></li>
</ul>
</nav>
</div>
</div>
<div class="humberger__open">
<i class="fa fa-bars"></i>
</div>
</div>
</header>
<!-- Hero Section Begin -->
<section class="hero">
<div class="container">
<div class="row">
<div class="col-lg-3">
<div class="hero__categories">
<div class="hero__categories__all">
<span>Baskets</span>
</div>
<div class="row">
<div class="col-lg-9">
<span>Today's Basket</span>
<ul>
<li><a href="#">Items bought</a></li>
</ul>
</div>
</div>
<div class="row">
<div class="col-lg-9">
<span>Week's Basket</span>
<ul>
{% for item in customerOrderItem %}
<li><a href="#">{{item}}&nbsp;&nbsp;&nbsp;&nbsp;{{item.quantity}}</a></li>
{% endfor %}
</ul>
</div>
</div>
</div>
</div>
<div class="col-lg-9 ">
<section class="categories ">
<div class="container ">
<div class="row ">
<div class="categories__slider owl-carousel ">
{% for item in products%}
<div class="col-lg-3 ">
<div class="categories__item set-bg " data-setbg="{{item.image.url}} ">
<h5>
<a href="# ">{{item.name}}</a>
</h5>
<button href="#" data-item={{item.id}} data-action="add" class=" primary-btn add-btn ">Add to Basket</a>
</div>
</div>
{% endfor%}
</div>
{%for message in messages %}
<h4>{{message}}</h4>
{%endfor%}
</div>
</div>
</section>
</div>
</div>
</div>
</section>
<!-- Hero Section End -->
<!-- Js Plugins -->
<script src="{% static '/js/jquery-3.3.1.min.js'%} "></script>
<script src="{% static '/js/bootstrap.min.js'%} "></script>
<script src="{% static '/js/jquery.nice-select.min.js'%} "></script>
<script src="{% static '/js/jquery-ui.min.js'%} "></script>
<script src="{% static '/js/jquery.slicknav.js'%} "></script>
<script src="{% static '/js/mixitup.min.js'%} "></script>
<script src="{% static '/js/owl.carousel.min.js'%} "></script>
<script src="{% static '/js/main.js'%} "></script>
<script src="{% static '/js/cart.js'%}"></script>
</body>
</html>