Added minimarket store type with correct row positions

This commit is contained in:
denisacirstea
2025-09-12 13:28:11 +03:00
parent 5e474abc49
commit 4e18caa8f7
3 changed files with 46 additions and 20 deletions

View File

@@ -245,6 +245,9 @@
<div id="convenience-option" class="py-1 px-3 hover:bg-gray-50 rounded-md cursor-pointer flex items-center" onclick="selectStoreTypeOption('convenience', 'Convenience', 'bg-[#eb742e] text-white')">
<span class="text-sm text-gray-700">Convenience</span>
</div>
<div id="minimarket-option" class="py-1 px-3 hover:bg-gray-50 rounded-md cursor-pointer flex items-center" onclick="selectStoreTypeOption('minimarket', 'Minimarket', 'bg-[#ec8038] text-white')">
<span class="text-sm text-gray-700">Minimarket</span>
</div>
<div id="supermarket-option" class="py-1 px-3 hover:bg-gray-50 rounded-md cursor-pointer flex items-center" onclick="selectStoreTypeOption('supermarket', 'Supermarket', 'bg-[#f08343] text-white')">
<span class="text-sm text-gray-700">Supermarket</span>
</div>
@@ -859,6 +862,7 @@
// Ensure store type checkboxes exist
ensureCheckboxExists('convenience', 'storeTypes', 'Convenience');
ensureCheckboxExists('minimarket', 'storeTypes', 'Minimarket');
ensureCheckboxExists('supermarket', 'storeTypes', 'Supermarket');
ensureCheckboxExists('hypermarket', 'storeTypes', 'Hypermarket');
@@ -1237,7 +1241,7 @@
];
// Also check for store type specific sections
const storeTypes = ['convenience', 'supermarket', 'hypermarket'];
const storeTypes = ['convenience', 'minimarket', 'supermarket', 'hypermarket'];
storeTypes.forEach(type => {
// Make sure the checkbox element exists
const checkbox = document.getElementById(type);