def manage_fields(self, item: SidebarItem) -> None: notetype = self.mw.col.models.get(NotetypeId(item._parent_item.id)) FieldDialog(self.mw, notetype, parent=self, open_at=item.id)
def manage_template(self, item: SidebarItem) -> None: note = Note(self.col, self.col.models.get(NotetypeId(item._parent_item.id))) CardLayout(self.mw, note, ord=item.id, parent=self, fill_empty=True)
def current_notetype(self) -> NotetypeDict: row = self.form.modelsList.currentRow() return self.mm.get(NotetypeId(self.models[row].id))