update deps and format
This commit is contained in:
@ -5,7 +5,7 @@ defmodule Cannery.ActivityLog.ShotGroup do
|
||||
|
||||
use Ecto.Schema
|
||||
import Ecto.Changeset
|
||||
alias Cannery.{Accounts.User, Ammo.AmmoGroup, ActivityLog.ShotGroup}
|
||||
alias Cannery.{Accounts.User, ActivityLog.ShotGroup, Ammo.AmmoGroup}
|
||||
alias Ecto.{Changeset, UUID}
|
||||
|
||||
@primary_key {:id, :binary_id, autogenerate: true}
|
||||
|
@ -5,7 +5,7 @@ defmodule CanneryWeb.ContainerLive.Show do
|
||||
|
||||
use CanneryWeb, :live_view
|
||||
import CanneryWeb.Components.{AmmoGroupCard, TagCard}
|
||||
alias Cannery.{Containers, Repo, Tags}
|
||||
alias Cannery.{Accounts.User, Containers, Containers.Container, Repo, Tags}
|
||||
alias CanneryWeb.Endpoint
|
||||
alias Ecto.Changeset
|
||||
alias Phoenix.LiveView.Socket
|
||||
|
@ -5,8 +5,11 @@
|
||||
|
||||
<%= form_for :user,
|
||||
Routes.user_confirmation_path(@conn, :create),
|
||||
[class: "flex flex-col sm:grid sm:grid-cols-3
|
||||
justify-center items-center text-center space-y-4"],
|
||||
[
|
||||
class:
|
||||
"flex flex-col sm:grid sm:grid-cols-3" <>
|
||||
"justify-center items-center text-center space-y-4"
|
||||
],
|
||||
fn f -> %>
|
||||
<%= label(f, :email, class: "title text-lg text-primary-500") %>
|
||||
<%= email_input(f, :email, required: true, class: "input input-primary col-span-2") %>
|
||||
|
@ -5,8 +5,11 @@
|
||||
|
||||
<%= form_for @changeset,
|
||||
Routes.user_registration_path(@conn, :create),
|
||||
[class: "flex flex-col sm:grid sm:grid-cols-3
|
||||
justify-center items-center text-center space-y-4"],
|
||||
[
|
||||
class:
|
||||
"flex flex-col sm:grid sm:grid-cols-3" <>
|
||||
"justify-center items-center text-center space-y-4"
|
||||
],
|
||||
fn f -> %>
|
||||
<%= if @changeset.action && not @changeset.valid? do %>
|
||||
<div class="alert alert-danger col-span-3">
|
||||
|
@ -5,8 +5,11 @@
|
||||
|
||||
<%= form_for @changeset,
|
||||
Routes.user_reset_password_path(@conn, :update, @token),
|
||||
[class: "flex flex-col sm:grid sm:grid-cols-3
|
||||
justify-center items-center text-center space-y-4"],
|
||||
[
|
||||
class:
|
||||
"flex flex-col sm:grid sm:grid-cols-3" <>
|
||||
"justify-center items-center text-center space-y-4"
|
||||
],
|
||||
fn f -> %>
|
||||
<%= if @changeset.action && not @changeset.valid? do %>
|
||||
<div class="alert alert-danger col-span-3">
|
||||
|
@ -5,8 +5,11 @@
|
||||
|
||||
<%= form_for :user,
|
||||
Routes.user_reset_password_path(@conn, :create),
|
||||
[class: "flex flex-col sm:grid sm:grid-cols-3
|
||||
justify-center items-center text-center space-y-4"],
|
||||
[
|
||||
class:
|
||||
"flex flex-col sm:grid sm:grid-cols-3" <>
|
||||
"justify-center items-center text-center space-y-4"
|
||||
],
|
||||
fn f -> %>
|
||||
|
||||
<%= label(f, :email, class: "title text-lg text-primary-500") %>
|
||||
|
@ -5,8 +5,12 @@
|
||||
|
||||
<%= form_for @conn,
|
||||
Routes.user_session_path(@conn, :create),
|
||||
[as: :user, class: "flex flex-col sm:grid sm:grid-cols-3
|
||||
justify-center items-center text-center space-y-4"],
|
||||
[
|
||||
as: :user,
|
||||
class:
|
||||
"flex flex-col sm:grid sm:grid-cols-3" <>
|
||||
"justify-center items-center text-center space-y-4"
|
||||
],
|
||||
fn f -> %>
|
||||
<%= if @error_message do %>
|
||||
<div class="alert alert-danger col-span-3">
|
||||
|
@ -7,8 +7,11 @@
|
||||
|
||||
<%= form_for @email_changeset,
|
||||
Routes.user_settings_path(@conn, :update),
|
||||
[class: "pb-4 flex flex-col sm:grid sm:grid-cols-3
|
||||
justify-center items-center text-center space-y-4"],
|
||||
[
|
||||
class:
|
||||
"pb-4 flex flex-col sm:grid sm:grid-cols-3" <>
|
||||
"justify-center items-center text-center space-y-4"
|
||||
],
|
||||
fn f -> %>
|
||||
<h3 class="title text-primary-500 text-lg col-span-3">
|
||||
<%= dgettext("actions", "Change email") %>
|
||||
|
Reference in New Issue
Block a user