mirror of
https://github.com/ClaperCo/Claper.git
synced 2026-05-18 13:16:18 +02:00
Fix locale and warnings
This commit is contained in:
@@ -36,3 +36,4 @@ _Security updates_
|
||||
|
||||
- Migrate to Phoenix 1.7
|
||||
- Migrate to Liveview 0.18
|
||||
- Add multiple choice poll
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -151,7 +151,7 @@
|
||||
<% end %>
|
||||
|
||||
<.form
|
||||
let={f}
|
||||
:let={f}
|
||||
for={@changeset}
|
||||
id="event-form"
|
||||
phx-target={@myself}
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<div>
|
||||
<.form
|
||||
let={f}
|
||||
:let={f}
|
||||
for={@changeset}
|
||||
id="form-form"
|
||||
phx-target={@myself}
|
||||
|
||||
@@ -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 -> %>
|
||||
|
||||
@@ -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" %>
|
||||
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user