Skip to content
Snippets Groups Projects
Commit 4b023ccc authored by Thorge Petersen's avatar Thorge Petersen
Browse files

Fixed display of package delete button (removed block markup)

parent 008b0665
Branches
Tags
No related merge requests found
......@@ -26,11 +26,11 @@
<div class="form-actions">
<div class="row-fluid">
<div class="span6">
<!-- {% 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 dataset_type ~ '.delete', id=data.id %}" data-module="confirm-action" data-module-content="{{ h.humanize_entity_type('package', dataset_type, 'delete confirmation') or _('Are you sure you want to delete this dataset?') }}">{% block delete_button_text %}{{ _('Delete') }}{% endblock %}</a>
{% endif %}
<!-- {% endblock %} -->
{% if h.check_access('package_delete', {'id': data.id}) and not data.state == 'deleted' %}
<a class="btn btn-danger pull-left" href="{% url_for 'dataset.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 %}
{% block save_button %}
<button class="btn btn-primary btn-arrow-right" type="submit" name="save">
{% block save_button_text %}{{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment