improve invite styling

This commit is contained in:
shibao 2023-02-26 00:37:48 -05:00
parent 6b7abdb3e1
commit 4f0f3ec610
8 changed files with 20 additions and 7 deletions

View File

@ -25,6 +25,9 @@
<%= label(f, :uses_left, gettext("Uses left"), class: "title text-lg text-primary-600") %>
<%= number_input(f, :uses_left, min: 0, class: "input input-primary col-span-2") %>
<%= error_tag(f, :uses_left, "col-span-3") %>
<span class="col-span-3 text-primary-400 italic text-center">
<%= gettext(~s/Leave "Uses left" blank to make invite unlimited/) %>
</span>
<%= submit(dgettext("actions", "Save"),
class: "mx-auto btn btn-primary col-span-3",

View File

@ -17,7 +17,7 @@
</.link>
<% end %>
<div class="w-full flex flex-row flex-wrap justify-center items-center">
<div class="w-full flex flex-row flex-wrap justify-center items-stretch">
<.invite_card :for={invite <- @invites} invite={invite} current_user={@current_user}>
<:code_actions>
<form phx-submit="copy_to_clipboard">
@ -86,7 +86,7 @@
<%= gettext("Admins") %>
</h1>
<div class="w-full flex flex-row flex-wrap justify-center items-center">
<div class="w-full flex flex-row flex-wrap justify-center items-stretch">
<.user_card :for={admin <- @admins} user={admin}>
<.link
href="#"
@ -114,7 +114,7 @@
<%= gettext("Users") %>
</h1>
<div class="w-full flex flex-row flex-wrap justify-center items-center">
<div class="w-full flex flex-row flex-wrap justify-center items-stretch">
<.user_card :for={user <- @users} user={user}>
<.link
href="#"

View File

@ -88,7 +88,7 @@ msgstr ""
msgid "Invite someone new!"
msgstr ""
#: lib/lokal_web/live/invite_live/form_component.html.heex:29
#: lib/lokal_web/live/invite_live/form_component.html.heex:32
#, elixir-autogen, elixir-format
msgid "Save"
msgstr ""

View File

@ -300,3 +300,8 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Password"
msgstr ""
#: lib/lokal_web/live/invite_live/form_component.html.heex:29
#, elixir-autogen, elixir-format
msgid "Leave \"Uses left\" blank to make invite unlimited"
msgstr ""

View File

@ -88,7 +88,7 @@ msgstr ""
msgid "Invite someone new!"
msgstr ""
#: lib/lokal_web/live/invite_live/form_component.html.heex:29
#: lib/lokal_web/live/invite_live/form_component.html.heex:32
#, elixir-autogen, elixir-format
msgid "Save"
msgstr ""

View File

@ -300,3 +300,8 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Password"
msgstr ""
#: lib/lokal_web/live/invite_live/form_component.html.heex:29
#, elixir-autogen, elixir-format
msgid "Leave \"Uses left\" blank to make invite unlimited"
msgstr ""

View File

@ -81,7 +81,7 @@ msgstr ""
msgid "Copied to clipboard"
msgstr ""
#: lib/lokal_web/live/invite_live/form_component.html.heex:31
#: lib/lokal_web/live/invite_live/form_component.html.heex:34
#, elixir-autogen, elixir-format
msgid "Saving..."
msgstr ""

View File

@ -81,7 +81,7 @@ msgstr ""
msgid "Copied to clipboard"
msgstr ""
#: lib/lokal_web/live/invite_live/form_component.html.heex:31
#: lib/lokal_web/live/invite_live/form_component.html.heex:34
#, elixir-autogen, elixir-format
msgid "Saving..."
msgstr ""