Compare commits
No commits in common. "889e08e42cec4df84f07aad71399cd9dba058f24" and "9529343a91475f15534022ae7b98a167fa45c37b" have entirely different histories.
889e08e42c
...
9529343a91
@ -1,5 +1,5 @@
|
|||||||
<div>
|
<div>
|
||||||
<h2 class="mb-8 text-center title text-xl text-primary-600">
|
<h2 class="text-center title text-xl text-primary-600">
|
||||||
<%= gettext("Record shots") %>
|
<%= gettext("Record shots") %>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
@ -7,7 +7,7 @@
|
|||||||
let={f}
|
let={f}
|
||||||
for={@changeset}
|
for={@changeset}
|
||||||
id="shot-group-form"
|
id="shot-group-form"
|
||||||
class="flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
class="flex flex-col sm:grid sm:grid-cols-3 justify-center items-center space-y-4"
|
||||||
phx-target={@myself}
|
phx-target={@myself}
|
||||||
phx-change="validate"
|
phx-change="validate"
|
||||||
phx-submit="save"
|
phx-submit="save"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<div class="w-full flex flex-col space-y-8 justify-center items-center">
|
<div class="w-full flex flex-col space-y-8 justify-center items-center">
|
||||||
<h2 class="mb-8 text-center title text-xl text-primary-600">
|
<h2 class="text-center title text-xl text-primary-600">
|
||||||
<%= gettext("Move ammo") %>
|
<%= gettext("Move ammo") %>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<div>
|
<div>
|
||||||
<h2 class="mb-8 text-center title text-xl text-primary-600">
|
<h2 class="text-center title text-xl text-primary-600">
|
||||||
<%= @title %>
|
<%= @title %>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
@ -10,7 +10,7 @@
|
|||||||
phx-target={@myself}
|
phx-target={@myself}
|
||||||
phx-change="validate"
|
phx-change="validate"
|
||||||
phx-submit="save"
|
phx-submit="save"
|
||||||
class="flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
class="flex flex-col sm:grid sm:grid-cols-3 justify-center items-center space-y-4"
|
||||||
>
|
>
|
||||||
<%= if @changeset.action && not @changeset.valid? do %>
|
<%= if @changeset.action && not @changeset.valid? do %>
|
||||||
<div class="invalid-feedback col-span-3 text-center">
|
<div class="invalid-feedback col-span-3 text-center">
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<div>
|
<div>
|
||||||
<h2 class="mb-8 text-center title text-xl text-primary-600">
|
<h2 class="text-center title text-xl text-primary-600">
|
||||||
<%= @title %>
|
<%= @title %>
|
||||||
</h2>
|
</h2>
|
||||||
<.form
|
<.form
|
||||||
@ -9,7 +9,7 @@
|
|||||||
phx-target={@myself}
|
phx-target={@myself}
|
||||||
phx-change="validate"
|
phx-change="validate"
|
||||||
phx-submit="save"
|
phx-submit="save"
|
||||||
class="flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
class="flex flex-col sm:grid sm:grid-cols-3 justify-center items-center space-y-4"
|
||||||
>
|
>
|
||||||
<%= if @changeset.action && not @changeset.valid? do %>
|
<%= if @changeset.action && not @changeset.valid? do %>
|
||||||
<div class="invalid-feedback col-span-3 text-center">
|
<div class="invalid-feedback col-span-3 text-center">
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<div>
|
<div>
|
||||||
<h2 class="mb-8 text-center title text-xl text-primary-600">
|
<h2 class="mb-4 text-center title text-xl text-primary-600">
|
||||||
<%= @title %>
|
<%= @title %>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
@ -7,7 +7,7 @@
|
|||||||
let={f}
|
let={f}
|
||||||
for={:tag}
|
for={:tag}
|
||||||
id="add-tag-to-container-form"
|
id="add-tag-to-container-form"
|
||||||
class="flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
class="flex flex-col sm:grid sm:grid-cols-3 justify-center items-center space-x-2"
|
||||||
phx-target={@myself}
|
phx-target={@myself}
|
||||||
phx-submit="save"
|
phx-submit="save"
|
||||||
>
|
>
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<div>
|
<div>
|
||||||
<h2 class="mb-8 text-center title text-xl text-primary-600">
|
<h2 class="text-center title text-xl text-primary-600">
|
||||||
<%= @title %>
|
<%= @title %>
|
||||||
</h2>
|
</h2>
|
||||||
<.form
|
<.form
|
||||||
let={f}
|
let={f}
|
||||||
for={@changeset}
|
for={@changeset}
|
||||||
id="container-form"
|
id="container-form"
|
||||||
class="flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
class="flex flex-col sm:grid sm:grid-cols-3 justify-center items-center space-y-4"
|
||||||
phx-target={@myself}
|
phx-target={@myself}
|
||||||
phx-change="validate"
|
phx-change="validate"
|
||||||
phx-submit="save"
|
phx-submit="save"
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<div>
|
<div>
|
||||||
<h2 class="mb-8 text-center title text-xl text-primary-600">
|
<h2 class="text-center title text-xl text-primary-600">
|
||||||
<%= @title %>
|
<%= @title %>
|
||||||
</h2>
|
</h2>
|
||||||
<.form
|
<.form
|
||||||
let={f}
|
let={f}
|
||||||
for={@changeset}
|
for={@changeset}
|
||||||
id="invite-form"
|
id="invite-form"
|
||||||
class="flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
class="flex flex-col sm:grid sm:grid-cols-3 justify-center items-center space-y-4"
|
||||||
phx-target={@myself}
|
phx-target={@myself}
|
||||||
phx-change="validate"
|
phx-change="validate"
|
||||||
phx-submit="save"
|
phx-submit="save"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<div>
|
<div>
|
||||||
<h2 class="mb-8 text-center title text-xl text-primary-600">
|
<h2 class="text-center title text-xl text-primary-600">
|
||||||
<%= @title %>
|
<%= @title %>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
@ -7,7 +7,7 @@
|
|||||||
let={f}
|
let={f}
|
||||||
for={@changeset}
|
for={@changeset}
|
||||||
id="shot-group-form"
|
id="shot-group-form"
|
||||||
class="flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
class="flex flex-col sm:grid sm:grid-cols-3 justify-center items-center space-y-4"
|
||||||
phx-target={@myself}
|
phx-target={@myself}
|
||||||
phx-change="validate"
|
phx-change="validate"
|
||||||
phx-submit="save"
|
phx-submit="save"
|
||||||
|
@ -29,14 +29,14 @@ defmodule CanneryWeb.TagLive.FormComponent do
|
|||||||
def render(assigns) do
|
def render(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
<div>
|
<div>
|
||||||
<h2 class="mb-8 text-center title text-xl text-primary-600">
|
<h2 class="text-center title text-xl text-primary-600">
|
||||||
<%= @title %>
|
<%= @title %>
|
||||||
</h2>
|
</h2>
|
||||||
<.form
|
<.form
|
||||||
let={f}
|
let={f}
|
||||||
for={@changeset}
|
for={@changeset}
|
||||||
id="tag-form"
|
id="tag-form"
|
||||||
class="flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
class="flex flex-col sm:grid sm:grid-cols-3 justify-center items-center space-y-4"
|
||||||
phx-target={@myself}
|
phx-target={@myself}
|
||||||
phx-change="validate"
|
phx-change="validate"
|
||||||
phx-submit="save"
|
phx-submit="save"
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
<a style="margin: 1em; color: rgb(31, 31, 31);" href="<%= @url %>"><%= @url %></a>
|
<a style="margin: 1em; color: rgb(31, 31, 31);" href="{@url}"><%= @url %></a>
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
<a style="margin: 1em; color: rgb(31, 31, 31);" href="<%= @url %>"><%= @url %></a>
|
<a style="margin: 1em; color: rgb(31, 31, 31);" href="{@url}"><%= @url %></a>
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
<a style="margin: 1em; color: rgb(31, 31, 31);" href="<%= @url %>"><%= @url %></a>
|
<a style="margin: 1em; color: rgb(31, 31, 31);" href="{@url}"><%= @url %></a>
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div class="mx-auto mb-8 max-w-2xl flex flex-col justify-center items-center space-y-4">
|
<div class="mb-8 flex flex-col justify-center items-center space-y-4">
|
||||||
<h1 class="title text-primary-600 text-xl">
|
<h1 class="title text-primary-600 text-xl">
|
||||||
<%= dgettext("actions", "Resend confirmation instructions") %>
|
<%= dgettext("actions", "Resend confirmation instructions") %>
|
||||||
</h1>
|
</h1>
|
||||||
@ -7,14 +7,15 @@
|
|||||||
Routes.user_confirmation_path(@conn, :create),
|
Routes.user_confirmation_path(@conn, :create),
|
||||||
[
|
[
|
||||||
class:
|
class:
|
||||||
"flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
"flex flex-col sm:grid sm:grid-cols-3" <>
|
||||||
|
"justify-center items-center text-center space-y-4"
|
||||||
],
|
],
|
||||||
fn f -> %>
|
fn f -> %>
|
||||||
<%= label(f, :email, class: "title text-lg text-primary-600") %>
|
<%= label(f, :email, class: "title text-lg text-primary-600") %>
|
||||||
<%= email_input(f, :email, required: true, class: "input input-primary col-span-2") %>
|
<%= email_input(f, :email, required: true, class: "input input-primary col-span-2") %>
|
||||||
|
|
||||||
<%= submit(dgettext("actions", "Resend confirmation instructions"),
|
<%= submit(dgettext("actions", "Resend confirmation instructions"),
|
||||||
class: "mx-auto btn btn-primary col-span-3"
|
class: "mx-auto my-4 btn btn-primary col-span-3"
|
||||||
) %>
|
) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div class="mx-auto mb-8 max-w-2xl flex flex-col justify-center items-center space-y-4">
|
<div class="mb-8 flex flex-col justify-center items-center space-y-4">
|
||||||
<h1 class="title text-primary-600 text-xl">
|
<h1 class="title text-primary-600 text-xl">
|
||||||
<%= dgettext("actions", "Register") %>
|
<%= dgettext("actions", "Register") %>
|
||||||
</h1>
|
</h1>
|
||||||
@ -7,7 +7,8 @@
|
|||||||
Routes.user_registration_path(@conn, :create),
|
Routes.user_registration_path(@conn, :create),
|
||||||
[
|
[
|
||||||
class:
|
class:
|
||||||
"flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
"flex flex-col sm:grid sm:grid-cols-3" <>
|
||||||
|
"justify-center items-center text-center space-y-4"
|
||||||
],
|
],
|
||||||
fn f -> %>
|
fn f -> %>
|
||||||
<%= if @changeset.action && not @changeset.valid? do %>
|
<%= if @changeset.action && not @changeset.valid? do %>
|
||||||
@ -30,7 +31,7 @@
|
|||||||
<%= password_input(f, :password, required: true, class: "input input-primary col-span-2") %>
|
<%= password_input(f, :password, required: true, class: "input input-primary col-span-2") %>
|
||||||
<%= error_tag(f, :password, "col-span-3") %>
|
<%= error_tag(f, :password, "col-span-3") %>
|
||||||
|
|
||||||
<%= submit(dgettext("actions", "Register"), class: "mx-auto btn btn-primary col-span-3") %>
|
<%= submit(dgettext("actions", "Register"), class: "mx-auto my-4 btn btn-primary col-span-3") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<hr class="hr" />
|
<hr class="hr" />
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div class="mx-auto mb-8 max-w-2xl flex flex-col justify-center items-center space-y-4">
|
<div class="mb-8 flex flex-col justify-center items-center space-y-4">
|
||||||
<h1 class="title text-primary-600 text-xl">
|
<h1 class="title text-primary-600 text-xl">
|
||||||
<%= dgettext("actions", "Reset password") %>
|
<%= dgettext("actions", "Reset password") %>
|
||||||
</h1>
|
</h1>
|
||||||
@ -7,7 +7,8 @@
|
|||||||
Routes.user_reset_password_path(@conn, :update, @token),
|
Routes.user_reset_password_path(@conn, :update, @token),
|
||||||
[
|
[
|
||||||
class:
|
class:
|
||||||
"flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
"flex flex-col sm:grid sm:grid-cols-3" <>
|
||||||
|
"justify-center items-center text-center space-y-4"
|
||||||
],
|
],
|
||||||
fn f -> %>
|
fn f -> %>
|
||||||
<%= if @changeset.action && not @changeset.valid? do %>
|
<%= if @changeset.action && not @changeset.valid? do %>
|
||||||
@ -32,7 +33,7 @@
|
|||||||
<%= error_tag(f, :password_confirmation, "col-span-3") %>
|
<%= error_tag(f, :password_confirmation, "col-span-3") %>
|
||||||
|
|
||||||
<%= submit(dgettext("actions", "Reset password"),
|
<%= submit(dgettext("actions", "Reset password"),
|
||||||
class: "mx-auto btn btn-primary col-span-3"
|
class: "mx-auto my-4 btn btn-primary col-span-3"
|
||||||
) %>
|
) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div class="mx-auto mb-8 max-w-2xl flex flex-col justify-center items-center space-y-4">
|
<div class="mb-8 flex flex-col justify-center items-center space-y-4">
|
||||||
<h1 class="title text-primary-600 text-xl">
|
<h1 class="title text-primary-600 text-xl">
|
||||||
<%= dgettext("actions", "Forgot your password?") %>
|
<%= dgettext("actions", "Forgot your password?") %>
|
||||||
</h1>
|
</h1>
|
||||||
@ -7,14 +7,15 @@
|
|||||||
Routes.user_reset_password_path(@conn, :create),
|
Routes.user_reset_password_path(@conn, :create),
|
||||||
[
|
[
|
||||||
class:
|
class:
|
||||||
"flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
"flex flex-col sm:grid sm:grid-cols-3" <>
|
||||||
|
"justify-center items-center text-center space-y-4"
|
||||||
],
|
],
|
||||||
fn f -> %>
|
fn f -> %>
|
||||||
<%= label(f, :email, class: "title text-lg text-primary-600") %>
|
<%= label(f, :email, class: "title text-lg text-primary-600") %>
|
||||||
<%= email_input(f, :email, required: true, class: "input input-primary col-span-2") %>
|
<%= email_input(f, :email, required: true, class: "input input-primary col-span-2") %>
|
||||||
|
|
||||||
<%= submit(dgettext("actions", "Send instructions to reset password"),
|
<%= submit(dgettext("actions", "Send instructions to reset password"),
|
||||||
class: "mx-auto btn btn-primary col-span-3"
|
class: "mx-auto my-4 btn btn-primary col-span-3"
|
||||||
) %>
|
) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div class="mx-auto mb-8 max-w-2xl flex flex-col justify-center items-center space-y-4">
|
<div class="mb-8 flex flex-col justify-center items-center space-y-4">
|
||||||
<h1 class="title text-primary-600 text-xl">
|
<h1 class="title text-primary-600 text-xl">
|
||||||
<%= dgettext("actions", "Log in") %>
|
<%= dgettext("actions", "Log in") %>
|
||||||
</h1>
|
</h1>
|
||||||
@ -8,7 +8,8 @@
|
|||||||
[
|
[
|
||||||
as: :user,
|
as: :user,
|
||||||
class:
|
class:
|
||||||
"flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
"flex flex-col sm:grid sm:grid-cols-3" <>
|
||||||
|
"justify-center items-center text-center space-y-4"
|
||||||
],
|
],
|
||||||
fn f -> %>
|
fn f -> %>
|
||||||
<%= if @error_message do %>
|
<%= if @error_message do %>
|
||||||
@ -30,7 +31,7 @@
|
|||||||
) %>
|
) %>
|
||||||
<%= checkbox(f, :remember_me, class: "checkbox col-span-2") %>
|
<%= checkbox(f, :remember_me, class: "checkbox col-span-2") %>
|
||||||
|
|
||||||
<%= submit(dgettext("actions", "Log in"), class: "mx-auto btn btn-primary col-span-3") %>
|
<%= submit(dgettext("actions", "Log in"), class: "mx-auto my-4 btn btn-primary col-span-3") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<hr class="hr" />
|
<hr class="hr" />
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div class="mx-auto mb-8 max-w-2xl flex flex-col justify-center items-center space-y-4">
|
<div class="mb-8 flex flex-col justify-center items-center space-y-4">
|
||||||
<h1 class="pb-4 title text-primary-600 text-xl">
|
<h1 class="pb-4 title text-primary-600 text-xl">
|
||||||
<%= gettext("Settings") %>
|
<%= gettext("Settings") %>
|
||||||
</h1>
|
</h1>
|
||||||
@ -9,7 +9,8 @@
|
|||||||
Routes.user_settings_path(@conn, :update),
|
Routes.user_settings_path(@conn, :update),
|
||||||
[
|
[
|
||||||
class:
|
class:
|
||||||
"pb-4 text-center flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
"pb-4 flex flex-col sm:grid sm:grid-cols-3" <>
|
||||||
|
"justify-center items-center text-center space-y-4"
|
||||||
],
|
],
|
||||||
fn f -> %>
|
fn f -> %>
|
||||||
<h3 class="title text-primary-600 text-lg col-span-3">
|
<h3 class="title text-primary-600 text-lg col-span-3">
|
||||||
@ -43,7 +44,7 @@
|
|||||||
<%= error_tag(f, :current_password, "col-span-3") %>
|
<%= error_tag(f, :current_password, "col-span-3") %>
|
||||||
|
|
||||||
<%= submit(dgettext("actions", "Change email"),
|
<%= submit(dgettext("actions", "Change email"),
|
||||||
class: "mx-auto btn btn-primary col-span-3"
|
class: "mx-auto my-4 btn btn-primary col-span-3"
|
||||||
) %>
|
) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
@ -53,7 +54,7 @@
|
|||||||
Routes.user_settings_path(@conn, :update),
|
Routes.user_settings_path(@conn, :update),
|
||||||
[
|
[
|
||||||
class:
|
class:
|
||||||
"pb-4 text-center flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
"pb-4 flex flex-col sm:grid sm:grid-cols-3 justify-center items-center text-center space-y-4"
|
||||||
],
|
],
|
||||||
fn f -> %>
|
fn f -> %>
|
||||||
<h3 class="title text-primary-600 text-lg col-span-3">
|
<h3 class="title text-primary-600 text-lg col-span-3">
|
||||||
@ -99,7 +100,7 @@
|
|||||||
<%= error_tag(f, :current_password, "col-span-3") %>
|
<%= error_tag(f, :current_password, "col-span-3") %>
|
||||||
|
|
||||||
<%= submit(dgettext("actions", "Change password"),
|
<%= submit(dgettext("actions", "Change password"),
|
||||||
class: "mx-auto btn btn-primary col-span-3"
|
class: "mx-auto my-4 btn btn-primary col-span-3"
|
||||||
) %>
|
) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user