Fix locale and warnings

This commit is contained in:
Alex
2023-04-20 17:28:39 +02:00
parent 197c1bbc84
commit 5724263a83
12 changed files with 557 additions and 511 deletions

View File

@@ -36,3 +36,4 @@ _Security updates_
- Migrate to Phoenix 1.7
- Migrate to Liveview 0.18
- Add multiple choice poll

View File

@@ -45,7 +45,7 @@ defmodule ClaperWeb do
def live_view do
quote do
use Phoenix.LiveView,
layout: {ClaperWeb.LayoutView, "live.html"}
layout: {ClaperWeb.LayoutView, :live}
unquote(view_helpers())
end

View File

@@ -151,7 +151,7 @@
<% end %>
<.form
let={f}
:let={f}
for={@changeset}
id="event-form"
phx-target={@myself}

View File

@@ -63,7 +63,7 @@
</div>
<.form
let={f}
:let={f}
for={@post_changeset}
id="post-form"
class="fixed bottom-12 w-full lg:w-1/3 lg:mx-auto"

View File

@@ -1,6 +1,6 @@
<div>
<.form
let={f}
:let={f}
for={@changeset}
id="form-form"
phx-target={@myself}

View File

@@ -1,6 +1,6 @@
<div>
<.form
let={f}
:let={f}
for={@changeset}
id="poll-form"
phx-target={@myself}
@@ -13,7 +13,7 @@
<div class="flex gap-x-2 mb-5">
<%= checkbox f, :multiple, class: "h-5 w-5" %>
<%= label f, :multiple, gettext("Multiple answer"), class: "text-sm font-medium" %>
<%= label f, :multiple, gettext("Multiple answers"), class: "text-sm font-medium" %>
</div>
<%= inputs_for f, :poll_opts, fn i -> %>

View File

@@ -19,7 +19,7 @@
return_to={Routes.user_settings_show_path(@socket, :show)}>
<div>
<.form let={f} for={@email_changeset} phx-submit="save" id="update_email" class="mt-5 md:flex md:items-end">
<.form :let={f} for={@email_changeset} phx-submit="save" id="update_email" class="mt-5 md:flex md:items-end">
<%= hidden_input f, :action, name: "action", value: "update_email" %>
@@ -41,7 +41,7 @@
return_to={Routes.user_settings_show_path(@socket, :show)}>
<div>
<.form let={f} for={@password_changeset} phx-submit="save" id="update_password" class="mt-5 md:flex md:items-end gap-x-2">
<.form :let={f} for={@password_changeset} phx-submit="save" id="update_password" class="mt-5 md:flex md:items-end gap-x-2">
<%= hidden_input f, :action, name: "action", value: "update_password" %>

View File

@@ -14,7 +14,7 @@
</h2>
</div>
<.form let={f} for={@changeset} action={Routes.user_registration_path(@conn, :create)} class="mt-8 space-y-6">
<.form :let={f} for={@changeset} action={Routes.user_registration_path(@conn, :create)} class="mt-8 space-y-6">
<%= if @changeset.action do %>
<ClaperWeb.Component.Alert.error message={gettext "Oops, check that all fields are filled in correctly."} stick={true} />
<% end %>

View File

@@ -26,7 +26,7 @@
</div>
<div class="flex flex-row justify-center items-center space-x-3"></div>
<.form let={f} for={@conn} action={Routes.user_session_path(@conn, :create)} as={:user} class="mt-12 mb-4">
<.form :let={f} for={@conn} action={Routes.user_session_path(@conn, :create)} as={:user} class="mt-12 mb-4">
<%= if @error_message do %>
<ClaperWeb.Component.Alert.error message={@error_message} stick={true} />
<% end %>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff