Refactor Template Gallery; resolves #38 and #39

- Replace free-text license input with a select box
- Improve visual presentation of modals and enhance keyboard interaction
This commit is contained in:
yu-i-i
2026-07-07 14:42:51 +02:00
parent e6db566a9c
commit bcb5af48ae
35 changed files with 722 additions and 590 deletions
@@ -774,16 +774,11 @@ const _ProjectController = {
)
}
console.log("Features.hasFeature('templates-server-pro') = ", Features.hasFeature('templates-server-pro'))
console.log("Settings.templates?.nonAdminCanManage", Settings.templates?.nonAdminCanManage)
const isAdminOrTemplateOwner =
hasAdminAccess(user) || Settings.templates?.nonAdminCanManage
const showTemplatesServerPro =
Features.hasFeature('templates-server-pro') && isAdminOrTemplateOwner
console.log("showTemplatesServerPro = ", showTemplatesServerPro )
const debugPdfDetach = shouldDisplayFeature('debug_pdf_detach')
const detachRole = req.params.detachRole