0daf413b47
Prevent sole admin from deleting their account
...
Without this guard, the last admin in the system could delete their own
account, making the application unmanageable. This adds a model method
`User#sole_admin?`, a controller guard in `RegistrationsController#destroy`,
and disables the delete button in the profile edit view when the current
user is the only remaining admin.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-01 06:52:14 +00:00
84945fa4b4
Simplify and improve labeled form
2026-02-22 00:53:18 +01:00
e12369cea1
Measurements#new form improvements
2025-05-13 22:30:58 +02:00
5dd3303019
Disable Turbo in User forms/links
2025-01-02 19:20:08 +01:00
c6a7838df1
Change 'Back' button to tab
2024-11-09 02:02:01 +01:00
07b4f89d1c
Update /profile/edit layout to grid
...
Closes #29
2024-05-16 21:02:04 +02:00
f298acd726
Display errors for table-embedeed forms
2024-03-15 02:40:17 +01:00
0dffde414e
Fix class assignment
2024-01-23 17:22:09 +01:00
dec3af27bf
Migrate Users views to grid layout + turbo_stream
...
Closes #7
2024-01-17 03:30:04 +01:00
d98057caad
Upgrade layout to grid+flex
2023-12-04 20:36:03 +01:00
35037648bd
Disallow using onclick: action with confirm:
2023-05-14 18:20:26 +02:00
f76344c220
Add action confirmation dialog
2023-05-14 17:57:20 +02:00
e4f595a329
Fix translations and enable i18n testing
2023-05-14 16:37:53 +02:00
fbb74bd1f8
Replace non-GET links with buttons
2023-05-14 15:11:17 +02:00
a7fce807c5
Add Users#show
2023-05-05 18:29:11 +02:00
74965c5c0e
Only user can delete his profile
2023-05-03 16:48:47 +02:00
23b8c82602
Add user profile editing
2023-05-02 18:55:38 +02:00
482a99031f
Style read-only inputs, add nav menu tab-button
2023-05-01 19:16:51 +02:00
86798d8e39
Display resource error messages beside form
2023-04-20 23:22:03 +02:00
7dabbd3036
Update and test password recovery forms
2023-04-19 19:29:12 +02:00
894c21f322
Move reset buttons to corresponding forms
2023-04-19 01:32:06 +02:00
bd2557d261
Add registration form
2023-04-13 19:52:23 +02:00
201cb109d8
Generate Devise scoped views
...
bin/rails generate devise:views users
2023-04-05 23:40:31 +02:00