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

Fixed blocks

parent 41f8bcfb
No related branches found
No related tags found
2 merge requests!41Version 2.0.0,!38Merge py3 into dev
......@@ -2,7 +2,8 @@
{% set action = c.form_action or '' %}
{% set form_style = c.form_style or c.action %}
<form id="dataset-edit" class="dataset-form {% if(form_style=='edit') %} dataset-edit-form {%endif%} " method="post" action="{{ action }}" data-module="basic-form" novalidate>
<form id="dataset-edit" class="dataset-form {% if(form_style=='edit') %} dataset-edit-form {%endif%} " method="post"
action="{{ action }}" data-module="basic-form" novalidate>
{% block stages %}
{{ h.snippet('package/snippets/stages.html', stages=stage) }}
{% endblock %}
......@@ -28,8 +29,8 @@
{% 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='dataset', 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>
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 %}
......@@ -37,9 +38,9 @@
{% block save_button_text %}{{
_('Next: Add Data')
}}{% endblock %}</button>
{% endblock %}
</div>
</div>
{% endblock %}
</div>
{% endblock %}
<span class='required-text'>*{{ _('Required information') }}</span>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment