-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Looks like interrupted work, intending to use STORE objects to write data back. Let's how that pans out.
- Loading branch information
1 parent
13610a1
commit 5fb454f
Showing
4 changed files
with
60 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
(fn autoform-value (schema v) | ||
(| v schema.default "")) | ||
(| v | ||
(awhen schema | ||
!.default) | ||
"")) | ||
|
||
(def-autoform-widget (store name schema v) | ||
[identity t] | ||
`(pre :class "autoform-field-generic" | ||
,(autoform-value schema v))) | ||
|
||
(fn set-schema-items (value what schema &rest fields) | ||
(@ (i (| fields (keys schema.properties)) schema) | ||
(= (ref (ref schema i) what) value))) | ||
|
||
(fn make-schema-editable (schema &rest fields) | ||
(*> #'set-schema-items t "is_editable" schema fields)) |