summaryrefslogtreecommitdiff
path: root/lib/aggiedit_web/templates/user_registration/new.html.heex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/aggiedit_web/templates/user_registration/new.html.heex')
-rw-r--r--lib/aggiedit_web/templates/user_registration/new.html.heex30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/aggiedit_web/templates/user_registration/new.html.heex b/lib/aggiedit_web/templates/user_registration/new.html.heex
new file mode 100644
index 0000000..6ff00fc
--- /dev/null
+++ b/lib/aggiedit_web/templates/user_registration/new.html.heex
@@ -0,0 +1,30 @@
+<h1>Register</h1>
+
+<.form let={f} for={@changeset} action={Routes.user_registration_path(@conn, :create)}>
+ <%= if @changeset.action do %>
+ <div class="alert alert-danger">
+ <p>Oops, something went wrong! Please check the errors below.</p>
+ </div>
+ <% end %>
+
+ <%= label f, :email %>
+ <%= email_input f, :email, required: true %>
+ <%= error_tag f, :email %>
+
+ <%= label f, :username %>
+ <%= text_input f, :username, required: true %>
+ <%= error_tag f, :username %>
+
+ <%= label f, :password %>
+ <%= password_input f, :password, required: true %>
+ <%= error_tag f, :password %>
+
+ <div>
+ <%= submit "Register" %>
+ </div>
+</.form>
+
+<p>
+ <%= link "Log in", to: Routes.user_session_path(@conn, :new) %> |
+ <%= link "Forgot your password?", to: Routes.user_reset_password_path(@conn, :new) %>
+</p>