card editing, keeping order, fixes

This commit is contained in:
2019-12-30 11:43:39 +01:00
parent ed65215723
commit 1f4af57b6e
10 changed files with 323 additions and 83 deletions
+38
View File
@@ -0,0 +1,38 @@
model:
fields:
category:
type: "free_enum"
code:
type: "free_enum"
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"
fixed_tags:
type: "tags"
options:
- aaa
- bbb
- ccc
- ddd
- eee
+5 -32
View File
@@ -1,38 +1,11 @@
model:
fields:
category:
species:
type: "free_enum"
code:
breed:
type: "free_enum"
value:
color:
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:
alive:
type: "bool"
fixed_tags:
type: "tags"
options:
- aaa
- bbb
- ccc
- ddd
- eee
default: true