Adds support for more than one email address.
This commit is contained in:
@@ -107,7 +107,7 @@
|
||||
{:id (:id new-client-data),
|
||||
:name (:name new-client-data)
|
||||
:code (:code new-client-data) ;; TODO add validation can't change
|
||||
:email (:email new-client-data)
|
||||
:emails (:emails new-client-data)
|
||||
|
||||
:locked-until (cond (not (:locked-until new-client-data))
|
||||
nil
|
||||
@@ -537,10 +537,18 @@
|
||||
:field [:locked-until]}])
|
||||
|
||||
|
||||
(field "Email"
|
||||
[:input.input {:type "email"
|
||||
:field :email
|
||||
:spec ::entity/email}])
|
||||
[:h2.subtitle.is-5 "Emails (address/description)"]
|
||||
[:div.control
|
||||
(raw-field
|
||||
[multi-field {:type "multi-field"
|
||||
:field :emails
|
||||
:template [[:input.input {:type "email"
|
||||
:field [:email]
|
||||
:placeholder "tom@myspace.com"
|
||||
:spec ::entity/email}]
|
||||
[:input.input {:type "text"
|
||||
:placeholder "Manager"
|
||||
:field [:description]}]]}])]
|
||||
|
||||
[:div.field
|
||||
[:p.help "Signature"]
|
||||
|
||||
Reference in New Issue
Block a user