Applies all of the feedback for the new page
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
"hx-target" "#user-table"
|
||||
"hx-indicator" "#user-table"}
|
||||
|
||||
[:fieldset.space-y-6
|
||||
[:fieldset.space-y-6
|
||||
(com/field {:label "Name"}
|
||||
(com/text-input {:name "name"
|
||||
:id "name"
|
||||
@@ -57,6 +57,16 @@
|
||||
:placeholder "Johnny Testerson"
|
||||
:size :small}))
|
||||
|
||||
(com/field {:label "Client"}
|
||||
(com/typeahead {:name "client"
|
||||
:placeholder "Search..."
|
||||
:url (bidi/path-for ssr-routes/only-routes
|
||||
:company-search)
|
||||
:id (str "client-search")
|
||||
:value (:client (:parsed-query-params request))
|
||||
:value-fn :db/id
|
||||
:content-fn :client/name}))
|
||||
|
||||
(com/field {:label "Email"}
|
||||
(com/text-input {:name "email"
|
||||
:id "email"
|
||||
@@ -66,31 +76,22 @@
|
||||
:size :small}))
|
||||
|
||||
(com/field {:label "Role"}
|
||||
(com/radio-card {:size :small
|
||||
:name "role"
|
||||
:options [{:value ""
|
||||
:content "All"}
|
||||
{:value "admin"
|
||||
:content "Admin"}
|
||||
{:value "power-user"
|
||||
:content "Power user"}
|
||||
{:value "manager"
|
||||
:content "Manager"}
|
||||
{:value "user"
|
||||
:content "User"}
|
||||
{:value "read-only"
|
||||
:content "Read Only"}
|
||||
{:value "none"
|
||||
:content "None"}]}))
|
||||
(com/field {:label "Client"}
|
||||
(com/typeahead {:name "client"
|
||||
:placeholder "Search..."
|
||||
:url (bidi/path-for ssr-routes/only-routes
|
||||
:company-search)
|
||||
:id (str "client-search")
|
||||
:value (:client (:parsed-query-params request))
|
||||
:value-fn :db/id
|
||||
:content-fn :client/name}))]])
|
||||
(com/radio-card {:size :small
|
||||
:name "role"
|
||||
:options [{:value ""
|
||||
:content "All"}
|
||||
{:value "admin"
|
||||
:content "Admin"}
|
||||
{:value "power-user"
|
||||
:content "Power user"}
|
||||
{:value "manager"
|
||||
:content "Manager"}
|
||||
{:value "user"
|
||||
:content "User"}
|
||||
{:value "read-only"
|
||||
:content "Read Only"}
|
||||
{:value "none"
|
||||
:content "None"}]}))]])
|
||||
|
||||
(def default-read '[:db/id
|
||||
:user/name
|
||||
|
||||
Reference in New Issue
Block a user