From 1ac88baf32e6d86446fd276d7f15129dde8c5f20 Mon Sep 17 00:00:00 2001 From: Rae Knowler Date: Tue, 27 Aug 2024 17:32:41 +0200 Subject: [PATCH] fix: Add default text to update/edit buttons in group_form --- .../scheming/templates/scheming/organization/group_form.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ckanext/scheming/templates/scheming/organization/group_form.html b/ckanext/scheming/templates/scheming/organization/group_form.html index ebf78de7..b0dcc366 100644 --- a/ckanext/scheming/templates/scheming/organization/group_form.html +++ b/ckanext/scheming/templates/scheming/organization/group_form.html @@ -37,13 +37,13 @@ {% block save_text %} {%- if action == "edit" -%} {%- if 'humanize_entity_type' in h -%} - {{ h.humanize_entity_type('organization', group_type, 'update label') }} + {{ h.humanize_entity_type('organization', group_type, 'update label') or _('Update Organization') }} {%- else -%} {{ _('Update Organization') }} {%- endif -%} {%- else -%} {%- if 'humanize_entity_type' in h -%} - {{ h.humanize_entity_type('organization', group_type, 'create label') }} + {{ h.humanize_entity_type('organization', group_type, 'create label') or _('Create Organization') }} {%- else -%} {{ _('Create Organization') }} {%- endif -%}