+
+
+ <%= image_tag asset_path('logo.png'), alt: 'Logo', class: 'h-16 w-16' %>
+
+ <%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { class: "w-full" }) do |form| %>
+ <%= form.hidden_field :role, value: "user" %>
+
Sign Up
+
+ <% if resource.errors.any? %>
+
+ Oops!
+ <% resource.errors.full_messages.each do |msg| %>
+ <%= msg %>
+ <% end %>
+
+ <% end %>
+
+
+ <%= form.label :email, class: "block text-gray-700 text-sm font-bold mb-2" %>
+ <%= form.email_field :email, class: "shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline", required: true %>
+
+
+
+ <%= form.label :password, class: "block text-gray-700 text-sm font-bold mb-2" %>
+ <%= form.password_field :password, class: "shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline", required: true %>
+
+
+
+ <%= form.label :password_confirmation, "Confirm Password", class: "block text-gray-700 text-sm font-bold mb-2" %>
+ <%= form.password_field :password_confirmation, class: "shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline", required: true %>
+
+
+
+ <%= form.submit "Sign Up", class: "bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline" %>
+ <%= link_to "Sign In", new_session_path(resource_name), class: "inline-block align-baseline font-bold text-sm text-blue-500 hover:text-blue-800" %>
<% end %>
-
-
- <%= form.label :email, class: "block text-gray-700 text-sm font-bold mb-2" %>
- <%= form.email_field :email, class: "shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline", required: true %>
-
-
-
- <%= form.label :password, class: "block text-gray-700 text-sm font-bold mb-2" %>
- <%= form.password_field :password, class: "shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline", required: true %>
-
-
-
- <%= form.label :password_confirmation, "Confirm Password", class: "block text-gray-700 text-sm font-bold mb-2" %>
- <%= form.password_field :password_confirmation, class: "shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline", required: true %>
-
-
-
- <%= form.submit "Sign Up", class: "bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline" %>
- <%= link_to "Sign In", new_session_path(resource_name), class: "inline-block align-baseline font-bold text-sm text-blue-500 hover:text-blue-800" %>
-
- <% end %>
+