cleanup views

This commit is contained in:
vabene1111
2023-05-06 17:40:39 +02:00
parent e3921cd6a8
commit 763f71a05c
3 changed files with 25 additions and 6 deletions

View File

@ -83,6 +83,10 @@
"Update_Existing_Data": "Update Existing Data",
"Use_Metric": "Use Metric Units",
"Learn_More": "Learn More",
"converted_unit": "Converted Unit",
"converted_amount": "Converted Amount",
"base_unit": "Base Unit",
"base_amount": "Base Amount",
"Datatype": "Datatype",
"Number of Objects": "Number of Objects",
"Add_Step": "Add Step",

View File

@ -617,7 +617,7 @@ export class Models {
field: "base_unit",
list: "UNIT",
list_label: "name",
label: "Base Unit",
label: "base_unit",
multiple: false,
},
converted_amount: {
@ -633,7 +633,7 @@ export class Models {
field: "converted_unit",
list: "UNIT",
list_label: "name",
label: "Converted Unit",
label: "converted_unit",
multiple: false,
},
food: {
@ -641,7 +641,7 @@ export class Models {
type: "lookup",
field: "food",
list: "FOOD",
list_label: "Food",
list_label: "name",
label: "Food",
multiple: false,
},
@ -671,7 +671,7 @@ export class Models {
create: {
params: [['name', 'icon', 'unit', 'description']],
form: {
show_help: true,
name: {
form_field: true,
type: "text",
@ -700,6 +700,14 @@ export class Models {
label: "Description",
placeholder: "",
},
open_data_slug: {
form_field: true,
type: "text",
field: "open_data_slug",
disabled: true,
label: "Open_Data_Slug",
help_text: "open_data_help_text",
},
},
},