7962cdf169
Simplify object and association checks
...
* check for <object> instead of <object>.nil?
* check for <association>_id? instead of <association>.nil? (avoids
record loading)
2025-01-16 20:42:18 +01:00
23e2f6a062
Move :base_id hidden field to form tag
2025-01-08 14:36:32 +01:00
a9307ad455
Form uses button instead of input to display SVG
2024-12-23 00:47:44 +01:00
d726e92445
Allow opening multiple new/edit forms
...
Closes #30
2024-12-21 17:52:45 +01:00
f0dab7a5f9
Fix Units new/edit display on validation errors
...
Add test_new_and_edit_on_validation_error
Closes #41
2024-12-17 01:53:25 +01:00
3a3ae71320
Fix layout rendering for turbo_streams
...
Closes #22
2024-02-13 20:48:00 +01:00
1198add901
Rewrite stream rendering to avoid client-side expanding
...
* adding streams in client breaks things (e.g. autofocus)
* some tasks need to be performed in one stream action to avoid
flickering (e.g. table row substitution)
2024-02-11 18:31:06 +01:00
759a0b31b7
Disable only form-opening link
...
Close other forms on new form open
2024-02-04 20:11:44 +01:00
c1643030a2
Avoid re-rendering form on errors
2024-01-22 02:34:13 +01:00
0e8bc18620
Enable creation of subunits
2024-01-22 02:09:46 +01:00
0801e8059c
Close form on Esc key. Localize submit button.
2024-01-06 18:06:36 +01:00
ce4770a25c
Run #create action
2024-01-06 03:59:09 +01:00
6d9f4918f1
Change 'Add unit' link to turbo_stream
2024-01-04 23:11:33 +01:00