mirror of
https://github.com/zadam/trilium.git
synced 2025-10-27 01:06:13 +08:00
feat(views/board): add preset notes
This commit is contained in:
parent
af797489e8
commit
b7b0b39afc
2 changed files with 39 additions and 1 deletions
|
|
@ -319,6 +319,12 @@
|
||||||
"geolocation": "Geolocation",
|
"geolocation": "Geolocation",
|
||||||
"built-in-templates": "Built-in templates",
|
"built-in-templates": "Built-in templates",
|
||||||
"board": "Board",
|
"board": "Board",
|
||||||
"status": "Status"
|
"status": "Status",
|
||||||
|
"board_note_first": "First note",
|
||||||
|
"board_note_second": "Second note",
|
||||||
|
"board_note_third": "Third note",
|
||||||
|
"board_status_todo": "To Do",
|
||||||
|
"board_status_progress": "In Progress",
|
||||||
|
"board_status_done": "Done"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -196,6 +196,38 @@ export default function buildHiddenSubtreeTemplates() {
|
||||||
value: `promoted,alias=${t("hidden_subtree_templates.status")},single,text`,
|
value: `promoted,alias=${t("hidden_subtree_templates.status")},single,text`,
|
||||||
isInheritable: true
|
isInheritable: true
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
id: "_template_board_first",
|
||||||
|
title: t("hidden_subtree_templates.board_note_first"),
|
||||||
|
attributes: [{
|
||||||
|
name: "status",
|
||||||
|
value: t("hidden_subtree_templates.board_status_todo"),
|
||||||
|
type: "label"
|
||||||
|
}],
|
||||||
|
type: "text"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "_template_board_second",
|
||||||
|
title: t("hidden_subtree_templates.board_note_second"),
|
||||||
|
attributes: [{
|
||||||
|
name: "status",
|
||||||
|
value: t("hidden_subtree_templates.board_status_progress"),
|
||||||
|
type: "label"
|
||||||
|
}],
|
||||||
|
type: "text"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "_template_board_third",
|
||||||
|
title: t("hidden_subtree_templates.board_note_third"),
|
||||||
|
attributes: [{
|
||||||
|
name: "status",
|
||||||
|
value: t("hidden_subtree_templates.board_status_done"),
|
||||||
|
type: "label"
|
||||||
|
}],
|
||||||
|
type: "text"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue