+
+
+
Automation-Vorlagen
+
Verwalten Sie Ihre Workflow-Vorlagen
+
+
+
+ {canCreate && (
+
+ )}
+
+
+
+
+ {loading && (!templates || templates.length === 0) ? (
+
+ ) : !templates || templates.length === 0 ? (
+
+
+
Keine Vorlagen vorhanden
+
+ Erstellen Sie eine neue Vorlage für Ihre Workflows.
+
+ {canCreate && (
+
+ )}
+
+ ) : (
+
handleDelete(template.id)}
+ hookData={{
+ refetch,
+ handleDelete,
+ attributes,
+ }}
+ emptyMessage="Keine Vorlagen gefunden"
+ />
+ )}
+
+
+ {/* Create Modal */}
+ {showCreateModal && (
+
setShowCreateModal(false)}>
+
e.stopPropagation()}>
+
+
Neue Vorlage
+
+
+
+ {formAttributes.length === 0 ? (
+
+ ) : (
+
setShowCreateModal(false)}
+ submitButtonText="Erstellen"
+ cancelButtonText="Abbrechen"
+ />
+ )}
+
+
+
+ )}
+
+ {/* Edit Modal */}
+ {editingTemplate && (
+
setEditingTemplate(null)}>
+
e.stopPropagation()}>
+
+
Vorlage bearbeiten
+
+
+
+ {formAttributes.length === 0 ? (
+
+ ) : (
+
setEditingTemplate(null)}
+ submitButtonText="Speichern"
+ cancelButtonText="Abbrechen"
+ />
+ )}
+
+
+
+ )}
+
+ );
+};
+
+export default AutomationTemplatesPage;
diff --git a/src/pages/workflows/index.ts b/src/pages/workflows/index.ts
index a54bffb..2c60e26 100644
--- a/src/pages/workflows/index.ts
+++ b/src/pages/workflows/index.ts
@@ -1,3 +1,4 @@
export { PlaygroundPage } from './PlaygroundPage';
export { WorkflowsPage } from './WorkflowsPage';
export { AutomationsPage } from './AutomationsPage';
+export { AutomationTemplatesPage } from './AutomationTemplatesPage';