fixing little compile bugs

This commit is contained in:
Adam Piontek 2021-03-05 11:01:54 -05:00
parent bca47c3ac7
commit cd1064d011
3 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
defmodule Bones73kWeb.UserManagement.FormComponent do
use Bones73kWeb, :live_component
alias Bones73k.{Repo, Accounts}
alias Bones73k.Accounts
alias Bones73k.Accounts.User
alias Bones73kWeb.Roles

View file

@ -30,7 +30,7 @@
<span class="input-group-text">
<%= icon_div @socket, "bi-shield-shaded", [class: "icon"] %>
</span>
<%= select f, :role, Enum.map(User.roles(), fn {k, v} -> {String.capitalize(Atom.to_string(k)), k} end), class: "form-select" %>
<%= select f, :role, Enum.map(User.roles(), fn {k, _v} -> {String.capitalize(Atom.to_string(k)), k} end), class: "form-select" %>
<span class="valid-feedback text-primary" style="display: block;">
<%= role_description(input_value(f, :role)) %>
</span>

View file

@ -166,11 +166,11 @@
<span class="page-link" aria-hidden="true">&hellip;</span>
<span class="visually-hidden" role="img" aria-label="ellipses">&hellip;</span>
</li>
<%= page_num == @page.page_number -> %>
<% page_num == @page.page_number -> %>
<li class="page-item active" aria-current="page">
<span class="page-link"><%= page_num %></a>
</li>
<%= true -> %>
<% true -> %>
<li class="page-item">
<a class="page-link" href="#" phx-value-page_number="<%= page_num %>" phx-click="page-change"><%= page_num %></a>
</li>