mirror of
https://github.com/ash-project/ash_admin.git
synced 2024-09-19 12:53:28 +12:00
fix: don't hide fields required for managing relationships
This commit is contained in:
parent
6d4c7ee63e
commit
92bb43d7ed
1 changed files with 2 additions and 1 deletions
|
@ -171,7 +171,7 @@ defmodule AshAdmin.Components.Resource.Form do
|
|||
attributes(@resource, @action, @exactly) %>
|
||||
<div class="grid grid-cols-6 gap-6">
|
||||
<div
|
||||
:for={attribute <- Enum.reject(attributes, &(&1.name in @skip))}
|
||||
:for={attribute <- Enum.reject(attributes, &(is_nil(@exactly) && &1.name in @skip))}
|
||||
class={
|
||||
classes([
|
||||
"col-span-6",
|
||||
|
@ -281,6 +281,7 @@ defmodule AshAdmin.Components.Resource.Form do
|
|||
"""
|
||||
end
|
||||
|
||||
@spec error_tag(any()) :: Phoenix.LiveView.Rendered.t()
|
||||
def error_tag(assigns) do
|
||||
~H"""
|
||||
<p class="mt-3 flex gap-3 text-sm leading-6 text-rose-600 phx-no-feedback:hidden">
|
||||
|
|
Loading…
Reference in a new issue