From 95e495621637bbcb96ee5acddc99dcb49368d07e Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Mon, 23 Mar 2026 21:36:11 +0100 Subject: [PATCH] fix(loyalty): make edit PIN modal read-only except for PIN code When editing a PIN, only the PIN code should be changeable. Staff name, staff ID, and store are now displayed as read-only fields. This prevents accidentally reassigning a PIN to a different staff member. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../templates/loyalty/shared/pins-list.html | 33 ++++--------------- 1 file changed, 7 insertions(+), 26 deletions(-) diff --git a/app/modules/loyalty/templates/loyalty/shared/pins-list.html b/app/modules/loyalty/templates/loyalty/shared/pins-list.html index 3c2a3126..394c3ca6 100644 --- a/app/modules/loyalty/templates/loyalty/shared/pins-list.html +++ b/app/modules/loyalty/templates/loyalty/shared/pins-list.html @@ -197,31 +197,17 @@
- {{ search_autocomplete( - search_var='staffSearch', - results_var='staffSearchResults', - show_dropdown_var='showStaffDropdown', - loading_var='searchingStaff', - search_action='searchStaff()', - select_action='selectStaffMember(item)', - display_field='full_name', - secondary_field='email', - placeholder=_('loyalty.shared.pins.pin_name'), - min_chars=1, - no_results_text=_('loyalty.shared.pins.no_staff_found'), - loading_text=_('loyalty.common.loading') - ) }} +
- +
-

{{ _('loyalty.shared.pins.pin_edit_hint') }}

@@ -229,13 +215,8 @@ {% if show_store_filter %}
- +
{% endif %}