This commit is contained in:
2022-07-25 22:04:10 -04:00
parent 8f23a6bccb
commit c6e6154689
30 changed files with 270 additions and 1617 deletions

View File

@ -1,5 +1,5 @@
<div>
<h2 class="mb-8 text-center title text-xl text-primary-600">
<h2 class="mb-8 text-center title text-xl text-primary-400">
<%= @title %>
</h2>
<.form
@ -17,11 +17,11 @@
</div>
<% end %>
<%= label(f, :name, gettext("Name"), class: "title text-lg text-primary-600") %>
<%= label(f, :name, gettext("Name"), class: "title text-lg text-primary-400") %>
<%= text_input(f, :name, class: "input input-primary col-span-2") %>
<%= error_tag(f, :name, "col-span-3") %>
<%= label(f, :uses_left, gettext("Uses left"), class: "title text-lg text-primary-600") %>
<%= label(f, :uses_left, gettext("Uses left"), class: "title text-lg text-primary-400") %>
<%= number_input(f, :uses_left, min: 0, class: "input input-primary col-span-2") %>
<%= error_tag(f, :uses_left, "col-span-3") %>

View File

@ -4,7 +4,7 @@
</h1>
<%= if @invites |> Enum.empty?() do %>
<h1 class="title text-xl text-primary-600">
<h1 class="title text-xl text-primary-400">
<%= gettext("No invites 😔") %>
</h1>
@ -34,13 +34,13 @@
</form>
</:code_actions>
<%= live_patch to: Routes.invite_index_path(Endpoint, :edit, invite),
class: "text-primary-600 link",
class: "text-primary-400 link",
data: [qa: "edit-#{invite.id}"] do %>
<i class="fa-fw fa-lg fas fa-edit"></i>
<% end %>
<%= link to: "#",
class: "text-primary-600 link",
class: "text-primary-400 link",
phx_click: "delete_invite",
phx_value_id: invite.id,
data: [
@ -85,7 +85,7 @@
<%= unless @admins |> Enum.empty?() do %>
<hr class="hr" />
<h1 class="title text-2xl text-primary-600">
<h1 class="title text-2xl text-primary-400">
<%= gettext("Admins") %>
</h1>
@ -93,7 +93,7 @@
<%= for admin <- @admins do %>
<.user_card user={admin}>
<%= link to: "#",
class: "text-primary-600 link",
class: "text-primary-400 link",
phx_click: "delete_user",
phx_value_id: admin.id,
data: [
@ -114,7 +114,7 @@
<%= unless @users |> Enum.empty?() do %>
<hr class="hr" />
<h1 class="title text-2xl text-primary-600">
<h1 class="title text-2xl text-primary-400">
<%= gettext("Users") %>
</h1>
@ -122,7 +122,7 @@
<%= for user <- @users do %>
<.user_card user={user}>
<%= link to: "#",
class: "text-primary-600 link",
class: "text-primary-400 link",
phx_click: "delete_user",
phx_value_id: user.id,
data: [