diff --git a/src-ui/src/app/app-routing.module.ts b/src-ui/src/app/app-routing.module.ts
index 5afebd070..e329b8f00 100644
--- a/src-ui/src/app/app-routing.module.ts
+++ b/src-ui/src/app/app-routing.module.ts
@@ -288,6 +288,18 @@ export const routes: Routes = [
componentName: 'OcrTemplatesComponent',
},
},
+ {
+ path: 'ocr-templates/new',
+ component: OcrTemplateEditorComponent,
+ canActivate: [PermissionsGuard],
+ data: {
+ requiredPermission: {
+ action: PermissionAction.Add,
+ type: PermissionType.OcrTemplate,
+ },
+ componentName: 'OcrTemplateEditorComponent',
+ },
+ },
{
path: 'ocr-templates/:id',
component: OcrTemplateEditorComponent,
diff --git a/src-ui/src/app/components/document-detail/document-detail.component.html b/src-ui/src/app/components/document-detail/document-detail.component.html
index a43ab93ce..069865f15 100644
--- a/src-ui/src/app/components/document-detail/document-detail.component.html
+++ b/src-ui/src/app/components/document-detail/document-detail.component.html
@@ -82,11 +82,20 @@
PDF Editor
-