You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are cases where fields should be visible to admins, but not editable, e.g. timestamps. The user could specify this on the command line by appending :readonly when generating the admin area on the command line:
$ mix torch.gen eex Admin Post posts title:string body:text inserted_at:date:readonly
The generated template could either put the value in a disabled input, or just display it as plain text. The controller would exclude read-only fields when creating changesets.
The text was updated successfully, but these errors were encountered:
There are cases where fields should be visible to admins, but not editable, e.g. timestamps. The user could specify this on the command line by appending
:readonly
when generating the admin area on the command line:The generated template could either put the value in a disabled input, or just display it as plain text. The controller would exclude read-only fields when creating changesets.
The text was updated successfully, but these errors were encountered: