From dc5f46448d602f1ca2d4937f8d521a0e682ccc20 Mon Sep 17 00:00:00 2001 From: Jesse Vickery Date: Mon, 24 Jun 2024 15:14:59 +0000 Subject: [PATCH] fix(templates): group humanization; - Fixed group humanization labels. --- .../templates/scheming/group/group_form.html | 18 +++++++++++++++++- .../scheming/organization/group_form.html | 4 ++-- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/ckanext/scheming/templates/scheming/group/group_form.html b/ckanext/scheming/templates/scheming/group/group_form.html index b3cf2c9b..a964508f 100644 --- a/ckanext/scheming/templates/scheming/group/group_form.html +++ b/ckanext/scheming/templates/scheming/group/group_form.html @@ -29,6 +29,22 @@ {% endif %} {% endif %} {% endblock %} - + 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 -%}