Skip to content

Build your personal knowledge base with Trilium Notes

feat(views/board): add preset notes

Elian Doranb7b0b39afc07
diff --git a/apps/server/src/assets/translations/en/server.json b/apps/server/src/assets/translations/en/server.json
index 7a097b92c8..3f1553d6b4 100644
--- a/apps/server/src/assets/translations/en/server.json
+++ b/apps/server/src/assets/translations/en/server.json
@@ -319,6 +319,12 @@
"geolocation": "Geolocation",
"built-in-templates": "Built-in templates",
"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"
}
}
diff --git a/apps/server/src/services/hidden_subtree_templates.ts b/apps/server/src/services/hidden_subtree_templates.ts
index 06c7dd612c..105ddeb5fd 100644
--- a/apps/server/src/services/hidden_subtree_templates.ts
+++ b/apps/server/src/services/hidden_subtree_templates.ts
@@ -196,6 +196,38 @@ export default function buildHiddenSubtreeTemplates() {
value: `promoted,alias=${t("hidden_subtree_templates.status")},single,text`,
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"
+ }
]
},
]