major deps update: phoenix liveview, fixing some minor issues

This commit is contained in:
Adam Piontek 2023-01-27 18:01:18 -05:00
commit db9f127e7b
9 changed files with 12 additions and 9 deletions

View file

@ -1,5 +1,6 @@
defmodule Shift73kWeb.LiveHelpers do
import Phoenix.LiveView
import Phoenix.Component
alias Shift73k.Accounts
alias Shift73k.Accounts.User

View file

@ -1,6 +1,6 @@
<div>
<.form let={f} for={@changeset} phx-change="validate" phx-submit="save" phx-target={@myself} id="shift_template-form">
<.form :let={f} for={@changeset} phx-change="validate" phx-submit="save" phx-target={@myself} id="shift_template-form">
<div class="modal-body">

View file

@ -6,7 +6,7 @@
</h2>
<p class="lead">Create an account to manage your work shifts with us.</p>
<.form let={f} for={@changeset} phx-change="validate" phx-submit="save" novalidate id="reg_form">
<.form :let={f} for={@changeset} phx-change="validate" phx-submit="save" novalidate id="reg_form">
<%= label f, :email, class: "form-label" %>
<div class="inner-addon left-addon mb-3" phx-feedback-for={input_id(f, :email)}>

View file

@ -6,7 +6,7 @@
</h2>
<p class="lead">Hi <%= @user.email %> &mdash; tell us your new password, please.</p>
<.form let={f} for={@changeset} phx-change="validate" phx-submit="save" novalidate id="pw_reset_form">
<.form :let={f} for={@changeset} phx-change="validate" phx-submit="save" novalidate id="pw_reset_form">
<%= label f, :password, "New password", class: "form-label" %>
<div class="inner-addon left-addon mb-3" phx-feedback-for={input_id(f, :password)}>

View file

@ -243,7 +243,7 @@
<%# page buttons %>
<%= for page_num <- generate_page_list(@page.page_number, @page.total_pages) do %>
<%= cond do %>
<%= page_num < 1 -> %>
<% page_num < 1 -> %>
<li class="page-item disabled">
<span class="page-link" aria-hidden="true">&hellip;</span>
<span class="visually-hidden" role="img" aria-label="ellipses">&hellip;</span>