27 Commits

Author SHA1 Message Date
05b0c66216 Change unit base with drag and drop 2024-03-24 17:38:56 +01:00
7387e7b1c1 Refine Unit table display 2024-03-23 15:45:39 +01:00
aa4a8193ce Set multiplier to 1 for base units 2024-03-15 17:16:14 +01:00
f298acd726 Display errors for table-embedeed forms 2024-03-15 02:40:17 +01:00
3a3ae71320 Fix layout rendering for turbo_streams
Closes #22
2024-02-13 20:48:00 +01:00
8b81ae2dc5 Test Unit form opening/closing 2024-02-13 01:04:27 +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
76aae56ed5 Allow stream action to expand into multiple actions
e.g. by including 'onclick()' event handler
2024-02-04 20:05:36 +01:00
c1643030a2 Avoid re-rendering form on errors 2024-01-22 02:34:13 +01:00
5ea1f87824 Unit#edit action 2024-01-22 02:33:23 +01:00
a7f80a575c Manage client-side js with turbo_stream actions 2024-01-22 02:14:01 +01:00
0e8bc18620 Enable creation of subunits 2024-01-22 02:09:46 +01:00
5047d4909f Render units from collection, without redirects 2024-01-15 18:45:30 +01:00
92132768fa Multiplier in nil for toplevel units 2024-01-09 00:08:53 +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
98c8fb9346 Validate Unit string lengths 2024-01-05 21:32:59 +01:00
d28ef26dc5 Manage focus on form show/hide 2024-01-05 21:07:12 +01:00
6d9f4918f1 Change 'Add unit' link to turbo_stream 2024-01-04 23:11:33 +01:00
92350ac3f2 Display new form with turbo frame 2024-01-03 01:02:29 +01:00
588bc01911 Fill <td> with <a> link using ::after pseudoelement 2023-12-05 23:36:56 +01:00
bad64c5dbf Expand link to whole table cell 2023-12-05 19:10:36 +01:00
d98057caad Upgrade layout to grid+flex 2023-12-04 20:36:03 +01:00
761aad358a Print multiplier in scientific notation 2023-11-18 19:19:28 +01:00
0620d18391 Remove default BigDecimal formatting 2023-07-06 18:36:23 +02:00
a4745c9cb8 Add Units 2023-07-06 18:34:16 +02:00