makes it look like you can add a new invoice.

This commit is contained in:
Bryce Covert
2018-05-22 22:30:54 -07:00
parent 6bb4c6e928
commit 37371024d1
4 changed files with 102 additions and 32 deletions

View File

@@ -125,8 +125,7 @@
[action-modal {:title (str "Edit " (:name (:user editing)))
:id ::edit-user
:action-text "Save"
:save-event [::save]
:editing editing}
:save-event [::save]}
[horizontal-field
[:label.label "Name"]
[bind-field
@@ -139,15 +138,16 @@
[horizontal-field
[:label.label "Role"]
[:div.control
[bind-field
[:select.select {:type "select"
:field [:user :role]
:spec ::entity/name
:event ::change
:subscription editing}
[:option {:value "none"} "None"]
[:option {:value "user"} "User"]
[:option {:value "admin"} "Admin"]]]]]
[:div.select
[bind-field
[:select {:type "select"
:field [:user :role]
:spec ::entity/name
:event ::change
:subscription editing}
[:option {:value "none"} "None"]
[:option {:value "user"} "User"]
[:option {:value "admin"} "Admin"]]]]]]
(when (= "user" (:role (:user editing)))