Skip to content

Commit

Permalink
json schema: use the select menu with order
Browse files Browse the repository at this point in the history
* Updates JSON schema form to use the new select menu with order.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
  • Loading branch information
Garfield-fr committed Jul 21, 2020
1 parent 3891f73 commit e1f6c42
Show file tree
Hide file tree
Showing 14 changed files with 333 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@
],
"default": "in progress",
"form": {
"type": "selectWithSort",
"wrappers": [
"form-field-horizontal"
],
"options": [
{
"value": "in_progress",
Expand All @@ -145,7 +149,12 @@
"value": "deleted",
"label": "Deleted"
}
]
],
"templateOptions": {
"selectWithSortOptions": {
"order": "label"
}
}
}
},
"invoice_date": {
Expand Down Expand Up @@ -192,6 +201,10 @@
"miscellaneous"
],
"form": {
"type": "selectWithSort",
"wrappers": [
"form-field-horizontal"
],
"options": [
{
"value": "shipping_and_handling",
Expand All @@ -205,7 +218,12 @@
"value": "miscellaneous",
"label": "Miscellaneous"
}
]
],
"templateOptions": {
"selectWithSortOptions": {
"order": "label"
}
}
}
},
"amount": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
],
"default": "pending",
"form": {
"type": "selectWithSort",
"wrappers": [
"form-field-horizontal"
],
"options": [
{
"value": "approved",
Expand All @@ -73,7 +77,12 @@
"value": "received",
"label": "Received"
}
]
],
"templateOptions": {
"selectWithSortOptions": {
"order": "label"
}
}
}
},
"quantity": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@
],
"default": "monograph",
"form": {
"type": "selectWithSort",
"wrappers": [
"form-field-horizontal"
],
"options": [
{
"value": "monograph",
Expand All @@ -91,7 +95,12 @@
"value": "multi_volume",
"label": "Multi-volume"
}
]
],
"templateOptions": {
"selectWithSortOptions": {
"order": "label"
}
}
}
},
"description": {
Expand All @@ -112,6 +121,10 @@
],
"default": "pending",
"form": {
"type": "selectWithSort",
"wrappers": [
"form-field-horizontal"
],
"options": [
{
"value": "approved",
Expand All @@ -137,7 +150,12 @@
"value": "received",
"label": "Received"
}
]
],
"templateOptions": {
"selectWithSortOptions": {
"order": "label"
}
}
}
},
"currency": {
Expand All @@ -148,6 +166,17 @@
"EUR",
"USD"
],
"form": {
"type": "selectWithSort",
"wrappers": [
"form-field-horizontal"
],
"templateOptions": {
"selectWithSortOptions": {
"order": "label"
}
}
},
"default": "CHF"
},
"order_date": {
Expand Down
Loading

0 comments on commit e1f6c42

Please sign in to comment.