<%= link_to "← Back to Users", users_path, class: "text-blue-600 hover:text-blue-800" %>

Edit User

<% if notice = flash[:notice] %>

<%= notice %>

<% end %> <% if alert = flash[:alert] %>

<%= alert %>

<% end %>

User Information

<%= @user.email_address %>
<%= @user.created_at.strftime("%B %d, %Y at %I:%M %p") %>
<%= form_with(model: @user, class: "contents") do |form| %>

Role Assignment

<%= form.radio_button :role, "admin", class: "h-4 w-4 text-purple-600 focus:ring-purple-500 border-gray-300" %> <%= form.label :role_admin, "Admin", class: "ml-3 block text-sm font-medium text-gray-700" %> - Full system access, user management, project creation
<%= form.radio_button :role, "user", class: "h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300" %> <%= form.label :role_user, "User", class: "ml-3 block text-sm font-medium text-gray-700" %> - Read/write access to projects
<%= form.radio_button :role, "viewer", class: "h-4 w-4 text-gray-600 focus:ring-gray-500 border-gray-300" %> <%= form.label :role_viewer, "Viewer", class: "ml-3 block text-sm font-medium text-gray-700" %> - Read-only access to all projects
<%= form.submit "Update User", class: "rounded-md px-3.5 py-2.5 bg-blue-600 hover:bg-blue-500 text-white font-medium cursor-pointer" %>
<% end %>