Adds support for more than one email address.

This commit is contained in:
2022-03-24 15:45:49 -07:00
parent 5d17091847
commit 1e7f8f9b0a
9 changed files with 58 additions and 16 deletions

View File

@@ -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"]