Skip to content
Snippets Groups Projects
Select Git revision
  • 991f1455882b07a355f87b04036a9edb09a37151
  • master default protected
  • add-frequency-to-form
  • dev protected
  • ckan-2.11.0
  • add-package-custom-fields
  • fix-adding-datasets-for-users-and-editors
  • add-auth-subroute
  • 71-migrate-custom-fields-to-ckanext-scheming
  • add-author-maintainer-information
  • fix-inline-flex-btns
  • fix-known-spatial-uri-validation
  • py3
  • 47-aktuelle-resource-einer-collection-wird-nicht-mehr-gefunden
  • 10-eingabe-der-dct-accrualperiodicity-in-weboberflache
  • v1.3
  • 2.5.3
  • 2.5.2
  • 2.5.1
  • 2.5.0
  • 2.4.7
  • 2.4.6
  • 2.4.5
  • 2.4.4
  • 2.4.3
  • 2.4.2
  • 2.4.1
  • 2.4.0
  • 2.3.1
  • 2.3.0
  • 2.2.0
  • 2.1.0
  • 2.0.0
  • 1.4.3
  • 1.4.2
  • 1.4.1
36 results

package_form.html

Blame
  • package_form.html 2.02 KiB
    {% import 'macros/form.html' as form %}
    {% set action = c.form_action or '' %}
    
    {# This provides a full page that renders a form for adding a dataset. It can
    then itself be extended to add/remove blocks of functionality. #}
    <form id="dataset-edit" class="dataset-form" method="post" action="{{ action }}" data-module="basic-form" novalidate>
        {% block stages %}
        {{ h.snippet('package/snippets/stages.html', stages=stage) }}
        {% endblock %}
    
        <input type="hidden" name="_ckan_phase" value="dataset_new_1" />
        {# pkg_name used in 3 stage edit #}
        <input type="hidden" name="pkg_name" value="{{ data.id }}" />
        {# {% block errors %}{{ form.errors(error_summary) }}{% endblock %} #}
    
        {% block basic_fields %}
        {% snippet 'package/snippets/package_basic_fields.html', data=data, errors=errors, licenses=c.licenses,
        groups_available=c.groups_available %}
        {% endblock %}
    
        {% block metadata_fields %}
        {% snippet 'package/snippets/package_metadata_fields.html', data=data, errors=errors %}
        {% endblock %}
    
        {% block form_actions %}
        <div class="form-actions">
            {% block delete_button %}
            {% if h.check_access('package_delete', {'id': data.id}) and not data.state == 'deleted' %}
            <a class="btn btn-danger pull-left" href="{% url_for controller='package', action='delete', id=data.id %}"
                data-module="confirm-action" data-module-content="{{ _('Are you sure you want to delete this dataset?') }}">{%
                block delete_button_text %}{{ _('Delete') }}{% endblock %}</a>
            {% endif %}
            {% endblock %}
            {% block save_button %}
            <div class="row-fluid">
                <div class="span6">
                    <button class="btn btn-primary btn-arrow-right" type="submit" name="save">
                        {% block save_button_text %}{{
                        _('Next: Add Data')
                        }}{% endblock %}</button>
                </div>
            </div>
            {% endblock %}
        </div>
        {% endblock %}
        <span class='required-text'>*Pflichtangabe</span>
    </form>