File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
DjangoEcommerceApp/templates/admin_templates Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 32
32
< div class ="col-lg-12 ">
33
33
< div class ="search-element ">
34
34
< div class ="card ">
35
-
36
35
< div class ="card-body ">
37
36
< b > Sort By : - </ b >
38
37
< a href ="{% url 'product_list' %}?filter={{ filter }}&orderby=id "> ID</ a > |
39
38
< a href ="{% url 'product_list' %}?filter={{ filter }}&orderby=product_name "> Title</ a > |
40
39
< a href ="{% url 'product_list' %}?filter={{ filter }}&orderby=product_description "> Description</ a >
41
40
</ div >
41
+ < div class ="card-body dropdown ">
42
+ < button class ="btn btn-primary dropdown-toggle " type ="button " id ="dropdownMenu2 "
43
+ data-toggle ="dropdown " aria-haspopup ="true " aria-expanded ="false ">
44
+ Filter
45
+ </ button >
46
+ < div class ="dropdown-menu " aria-labelledby ="dropdownMenu2 ">
47
+ {% for product in all_products %}
48
+ < a href ="{% url 'product_list' %}?product_name={{ product.product_name }} "
49
+ class ="dropdown-item ">
50
+ {{ product.product_name }}
51
+ </ a >
52
+ {% endfor %}
53
+ </ div >
54
+ </ div >
42
55
</ div >
43
56
</ div >
44
57
</ div >
You can’t perform that action at this time.
0 commit comments