fix: Checkbox sizes and paging buttons
- Show paging buttons at all times and enable/disable buttons
- Define checkbox and radio button sizes within erpnext
- Wishlist cards even height
diff --git a/erpnext/templates/generators/item/item_add_to_cart.html b/erpnext/templates/generators/item/item_add_to_cart.html
index d3bc097..fd243f5 100644
--- a/erpnext/templates/generators/item/item_add_to_cart.html
+++ b/erpnext/templates/generators/item/item_add_to_cart.html
@@ -100,7 +100,7 @@
<!-- Add to Wishlist -->
{% if cart_settings.enable_wishlist %}
<a href="/wishlist"
- class="btn btn-view-in-wishlist hidden"
+ class="btn btn-view-in-wishlist font-md hidden"
role="button"
>
<span class="mr-2">
@@ -116,7 +116,7 @@
data-item-code="{{item_code}}"
data-price="{{ price.get('price_list_rate') or 0}}"
data-formatted-price="{{ price.get('formatted_price') or 0 }}"
- class="btn btn-add-to-wishlist"
+ class="btn btn-add-to-wishlist font-md"
>
<span class="mr-2">
<svg class="icon icon-md">
diff --git a/erpnext/templates/generators/item_group.html b/erpnext/templates/generators/item_group.html
index fe200b1..a2b0f59 100644
--- a/erpnext/templates/generators/item_group.html
+++ b/erpnext/templates/generators/item_group.html
@@ -7,10 +7,9 @@
<div class="input-group mb-6 col-8 order-2">
<div class="dropdown w-100" id="dropdownMenuSearch">
- <input type="search" name="query" id="search-box" class="form-control"
+ <input type="search" name="query" id="search-box" class="form-control font-md"
placeholder="Search for products..."
- aria-label="Product" aria-describedby="button-addon2"
- style="font-size: 14px">
+ aria-label="Product" aria-describedby="button-addon2">
<!-- Results dropdown rendered in product_search.js -->
</div>
</div>
diff --git a/erpnext/templates/includes/cart/cart_address.html b/erpnext/templates/includes/cart/cart_address.html
index 4f391e1..93de758 100644
--- a/erpnext/templates/includes/cart/cart_address.html
+++ b/erpnext/templates/includes/cart/cart_address.html
@@ -29,7 +29,7 @@
</div>
<div class="checkbox ml-1 mb-2">
<label for="input_same_billing">
- <input type="checkbox" id="input_same_billing" checked>
+ <input type="checkbox" class="product-filter" id="input_same_billing" checked style="width: 14px !important">
<span class="label-area font-md">{{ _('Billing Address is same as Shipping Address') }}</span>
</label>
</div>
diff --git a/erpnext/templates/includes/macros.html b/erpnext/templates/includes/macros.html
index 2224fdc..956d8e5 100644
--- a/erpnext/templates/includes/macros.html
+++ b/erpnext/templates/includes/macros.html
@@ -141,7 +141,7 @@
{%- set title = item.item_name or item.item_code -%}
{%- set title = title[:50] + "..." if title|len > 50 else title -%}
<div class="col-sm-3 wishlist-card">
- <div class="card text-center" style="max-height: 390px;">
+ <div class="card text-center" style="height: 100%">
<div class="card-img-container">
<a href="/{{ item.route or '#' }}" style="text-decoration: none;">
{% if item.image %}
@@ -295,7 +295,8 @@
class="product-filter field-filter"
id="{{value}}"
data-filter-name="{{ item_field.fieldname }}"
- data-filter-value="{{ value }}">
+ data-filter-value="{{ value }}"
+ style="width: 14px !important">
<span class="label-area">{{ value }}</span>
</label>
</div>
@@ -327,6 +328,7 @@
id="{{attr_value.name}}"
data-attribute-name="{{ attribute.name }}"
data-attribute-value="{{ attr_value.attribute_value }}"
+ style="width: 14px !important"
{% if attr_value.checked %} checked {% endif %}>
<span class="label-area">{{ attr_value.attribute_value }}</span>
</label>