diff options
author | Logan Hunt <loganhunt@simponic.xyz> | 2022-04-14 00:18:01 -0600 |
---|---|---|
committer | Logan Hunt <loganhunt@simponic.xyz> | 2022-04-14 00:18:01 -0600 |
commit | ddfab312f73a3f3e15ceb6fec7d350500adb53d6 (patch) | |
tree | 9cb6db148a93f21d320538ecc0a523aff8907244 /lib/aggiedit_web/templates/user_settings/edit.html.heex | |
parent | 43f225e181ec370dfa7de1b2dc9f18d9eec31be8 (diff) | |
download | aggiedit-ddfab312f73a3f3e15ceb6fec7d350500adb53d6.tar.gz aggiedit-ddfab312f73a3f3e15ceb6fec7d350500adb53d6.zip |
Update UI
Diffstat (limited to 'lib/aggiedit_web/templates/user_settings/edit.html.heex')
-rw-r--r-- | lib/aggiedit_web/templates/user_settings/edit.html.heex | 50 |
1 files changed, 31 insertions, 19 deletions
diff --git a/lib/aggiedit_web/templates/user_settings/edit.html.heex b/lib/aggiedit_web/templates/user_settings/edit.html.heex index 9863bc5..f414e0b 100644 --- a/lib/aggiedit_web/templates/user_settings/edit.html.heex +++ b/lib/aggiedit_web/templates/user_settings/edit.html.heex @@ -11,19 +11,25 @@ <%= hidden_input f, :action, name: "action", value: "update_email" %> - <%= label f, :email %> - <%= email_input f, :email, required: true %> - <%= error_tag f, :email %> + <div class="form-group"> + <%= label f, :email %> + <%= email_input f, :email, required: true, class: "form-control" %> + <%= error_tag f, :email %> + </div> - <%= label f, :current_password, for: "current_password_for_email" %> - <%= password_input f, :current_password, required: true, name: "current_password", id: "current_password_for_email" %> - <%= error_tag f, :current_password %> + <div class="form-group mt-2"> + <%= label f, :current_password, for: "current_password_for_email" %> + <%= password_input f, :current_password, required: true, name: "current_password", id: "current_password_for_email", class: "form-control" %> + <%= error_tag f, :current_password %> + </div> - <div> - <%= submit "Change email" %> + <div class="mt-2"> + <%= submit "Change email", class: "btn btn-primary" %> </div> </.form> +<hr> + <h3>Change password</h3> <.form let={f} for={@password_changeset} action={Routes.user_settings_path(@conn, :update)} id="update_password"> @@ -35,19 +41,25 @@ <%= hidden_input f, :action, name: "action", value: "update_password" %> - <%= label f, :password, "New password" %> - <%= password_input f, :password, required: true %> - <%= error_tag f, :password %> + <div class="form-group"> + <%= label f, :password, "New password" %> + <%= password_input f, :password, required: true, class: "form-control" %> + <%= error_tag f, :password %> + </div> - <%= label f, :password_confirmation, "Confirm new password" %> - <%= password_input f, :password_confirmation, required: true %> - <%= error_tag f, :password_confirmation %> + <div class="form-group mt-2"> + <%= label f, :password_confirmation, "Confirm new password" %> + <%= password_input f, :password_confirmation, required: true, class: "form-control" %> + <%= error_tag f, :password_confirmation %> + </div> - <%= label f, :current_password, for: "current_password_for_password" %> - <%= password_input f, :current_password, required: true, name: "current_password", id: "current_password_for_password" %> - <%= error_tag f, :current_password %> + <div class="form-group mt-2"> + <%= label f, :current_password, for: "current_password_for_password" %> + <%= password_input f, :current_password, required: true, name: "current_password", id: "current_password_for_password", class: "form-control" %> + <%= error_tag f, :current_password %> + </div> - <div> - <%= submit "Change password" %> + <div class="mt-2"> + <%= submit "Change password", class: "btn btn-primary" %> </div> </.form> |