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
9dbcfddf98
Merge corrections provided by Bambuch, cont.
2025-04-26 19:12:56 +02:00
5dd3303019
Disable Turbo in User forms/links
2025-01-02 19:20:08 +01:00
e75391ae18
Display User name using #to_s
2024-11-23 14:55:29 +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
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
9d97eb3f6f
Add user status update
2023-05-17 23:40:09 +02: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
459836ca38
Add Users#disguise/#revert
2023-05-13 23:38:07 +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
cc65b64a4b
Move status checking to model
2023-05-02 03:17:41 +02:00
482a99031f
Style read-only inputs, add nav menu tab-button
2023-05-01 19:16:51 +02:00
b781c7e072
Test "delete user"
2023-04-25 00:40:50 +02:00
634ba7e901
Add access control and :forbidden error handling
2023-04-24 23:08:55 +02:00
4dbd5f4a2a
Update Users#index
2023-04-23 19:35:10 +02:00
86dbc95375
Add navigation menu
2023-04-21 20:22:16 +02:00
86798d8e39
Display resource error messages beside form
2023-04-20 23:22:03 +02:00
85beaf23fd
Remove confirmation link
2023-04-20 23:09:58 +02:00
30a3ecd6d0
Update and test resend confirmation form
2023-04-19 19:50:15 +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
17e3f2e100
Do not display application menu links with current url
...
Add "Recover password" link
2023-04-13 01:48:47 +02:00
3f2a92a6e5
Test "sign in"
2023-04-12 23:23:37 +02:00
d9943752e8
Style form as table
2023-04-07 17:37:17 +02:00
74381494ea
Style 'Sign in' view
2023-04-07 00:09:20 +02:00
b5c0a6a120
Move 'Register' link to application menu
2023-04-06 00:16:13 +02:00
201cb109d8
Generate Devise scoped views
...
bin/rails generate devise:views users
2023-04-05 23:40:31 +02:00
c72144ff22
Add app menu with sign in/out links
2023-04-02 00:54:18 +02:00
deaf0fa73b
Generate User scaffold
...
bundle exec rails generate scaffold user email:string{64}:uniq
status:integer
2023-03-11 22:56:32 +01:00