-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathproducts.html
85 lines (64 loc) · 1.96 KB
/
products.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{% extends 'layouts/base.html' %}
{% load static %}
{% block title %} UI Tables {% endblock %}
<!-- Specific Page CSS goes HERE -->
{% block stylesheets %}{% endblock stylesheets %}
{% block content %}
<div class="col-md-12">
<div class="card card-plain" align="right" dir="rtl">
<div class="card-header">
<h3 class="card-title" dir="rtl" align="center"> محصولات </h3>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="card" align="right" dir="rtl">
<div class="card-header">
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table tablesorter " id="">
<thead class=" text-primary">
<tr>
<th>
نام
</th>
<th>
کد
</th>
<th>
توضیحات
</th>
<th>
موجودی
</th>
<th class="text-center">
تصویر
</th>
</tr>
</thead>
<tbody>
{% for Product in products %}
<tr>
<td><a href="{{ Product.get_absolute_url }}"> {{ Product.name }} </a></td>
<td> {{ Product.synch_to.code }} </td>
<td> {{ Product.synch_to.description|slice:":90" }}... </td>
<td> {{ Product.synch_to.inventory.normalize }} </td>
<td class="text-center">
<div class="photo">
<img src="{{ Product.synch_to.image.url }}" alt="Profile Photo">
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
{% endblock content %}
<!-- Specific Page JS goes HERE -->
{% block javascripts %}{% endblock javascripts %}