build form from yaml

This commit is contained in:
2019-12-29 22:23:39 +01:00
parent a1b8f5a1a1
commit faa41feaf6
12 changed files with 575 additions and 56 deletions
+32
View File
@@ -0,0 +1,32 @@
model:
fields:
category:
type: "free_enum"
generic_code:
type: "free_enum"
code:
type: "string"
value:
type: "string"
package:
type: "free_enum"
mounting:
type: "enum"
options:
- "SMD"
- "Through-hole"
- "Screw"
quantity:
type: "int"
min: 0
location:
type: "free_enum"
sublocation:
label: "Sub-location"
type: "string"
tags:
type: "free_tags"
note:
type: "text"
checkbox:
type: "bool"