added workfile_template_profiles to settings

This commit is contained in:
iLLiCiTiT 2021-08-26 15:03:54 +02:00
parent ada23f369b
commit a06ab7e0ef
3 changed files with 38 additions and 1 deletions

View file

@ -249,6 +249,13 @@
]
},
"Workfiles": {
"workfile_template_profiles": [
{
"task_types": [],
"hosts": [],
"workfile_template": "work"
}
],
"last_workfile_on_startup": [
{
"hosts": [],

View file

@ -522,7 +522,6 @@ class AnatomyTemplatesEnumEntity(BaseEnumEntity):
enum_items_list = []
for key, value in templates_entity.items():
print(key, value)
enum_items_list.append(
{key: key})
valid_keys.add(key)

View file

@ -65,6 +65,37 @@
"key": "Workfiles",
"label": "Workfiles",
"children": [
{
"type": "list",
"key": "workfile_template_profiles",
"label": "Workfile template profiles",
"use_label_wrap": true,
"object_type": {
"type": "dict",
"children": [
{
"key": "task_types",
"label": "Task types",
"type": "task-types-enum"
},
{
"type": "hosts-enum",
"key": "hosts",
"label": "Hosts",
"multiselection": true
},
{
"type": "splitter"
},
{
"key": "workfile_template",
"label": "Workfile template",
"type": "anatomy-templates-enum",
"multiselection": false
}
]
}
},
{
"type": "list",
"key": "last_workfile_on_startup",