{% import 'macros/form.html' as form %} {% if group_type is not defined %} {% set group_type = c.group_type %} {% endif %} {%- if not group_type -%}

group_type not passed to template. your version of CKAN might not be compatible with ckanext-scheming

{%- endif -%}
{%- set schema = h.scheming_get_organization_schema(group_type) -%} {%- for field in schema['fields'] -%} {%- if field.form_snippet is not none -%} {%- snippet 'scheming/snippets/form_field.html', field=field, data=data, errors=errors, licenses=licenses, entity_type='organization', object_type=group_type -%} {%- endif -%} {%- endfor -%}
{% block delete_button %} {% if action == 'edit' %} {% if h.check_access('group_delete', {'id': data.id}) and action=='edit' %} {% set locale = h.dump_json({'content': _('Are you sure you want to delete this Organization?')}) %} {% block delete_button_text %}{{ _('Delete') }}{% endblock %} {% endif %} {% endif %} {% endblock %} {{ form.required_message() }}