mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
Locked flight readings look locked
The tach and Hobbs fields of an earlier flight were disabled but looked like any other field. Disabled fields now look it everywhere (grey, muted text, a not-allowed cursor), and the flight form marks its locked readings "Locked". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d8cd462194
commit
3e5d896662
4 files changed
+5
-3
No files matched your search
@@ -45,6 +45,7 @@ class FlightEditTest < ActionDispatch::IntegrationTest
|
||||
|
||||
get edit_aircraft_flight_log_path(@a, first)
|
||||
assert_select "fieldset[disabled]", 2
|
||||
assert_select "fieldset[disabled] legend .badge-gray", text: "Locked", count: 2
|
||||
assert_select ".hint a[href=?]", aircraft_path(@a), text: "Update Hours"
|
||||
|
||||
patch aircraft_flight_log_path(@a, first), params: { flight_log: { tach_in: 1009, tach_time: 9, destination_location: "kbos" } }
|
||||
|
||||
Reference in new issue
Block a user