Skip to content

Commit

Permalink
fix: show 'Create tour' for creatation form
Browse files Browse the repository at this point in the history
  • Loading branch information
mutantsan committed Apr 29, 2024
1 parent be3c2ac commit b96552b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ckanext/tour/templates/tour/snippets/tour_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{% endcall %}

<div class="form-actions js-form-wrapper form-wrapper">
<button class="btn btn-primary" type="submit">{{ _("Update tour") }}</button>
<button class="btn btn-primary" type="submit">{{ _("Create tour") if is_create else _("Update tour") }}</button>
<button class="btn btn-black btn-collapse-steps" {% if collapse_step %}collapsed=1{% endif %}>
{{ _("Expand all steps") if collapse_step else _("Collapse all steps") }}
</button>
Expand Down
2 changes: 1 addition & 1 deletion ckanext/tour/templates/tour/tour_add.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{% endblock breadcrumb_content %}

{% block ap_content %}
{% snippet 'tour/snippets/tour_form.html', data=data, errors=errors, form_action=h.url_for('tour.add') %}
{% snippet 'tour/snippets/tour_form.html', data=data, errors=errors, form_action=h.url_for('tour.add'), is_create=True %}
{% endblock ap_content %}

{% block scripts %}
Expand Down

0 comments on commit b96552b

Please sign in to comment.