Skip to content

Commit

Permalink
update: update templates to follow new block name
Browse files Browse the repository at this point in the history
  • Loading branch information
mutantsan committed Aug 24, 2023
1 parent fb98a7a commit 20ade0b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions ckanext/tour/templates/tour/tour_404.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<li>{% link_for _("Tour 404"), named_route='tour.list' %}</li>
{% endblock breadcrumb_content %}

{% block ap_content %}
{% block ap_primary %}
<p style="font-size: 70px">TOUR NOT FOUND - 404</p>
{% endblock ap_content %}
{% endblock ap_primary %}

{% block scripts %}
{{ super() }}
Expand Down
4 changes: 2 additions & 2 deletions ckanext/tour/templates/tour/tour_add.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<li>{% link_for _("Tour add"), named_route='tour.add' %}</li>
{% endblock breadcrumb_content %}

{% block ap_content %}
{% block ap_primary %}
<form action="{{ h.url_for("tour.add") }}" method="POST" enctype="multipart/form-data">
{% call form.input("title", label=_("Tour title"), value=data.title, attrs={'required': 1, 'class': 'form-control'}) %}
{{ form.info(_("A tour title to explain what is it for")) }}
Expand Down Expand Up @@ -53,7 +53,7 @@ <h3>{{ _("Tour steps:") }}</h3>
<button class="btn btn-primary" type="submit">{{ _("Create tour") }}</button>
</div>
</form>
{% endblock ap_content %}
{% endblock ap_primary %}

{% block scripts %}
{{ super() }}
Expand Down
4 changes: 2 additions & 2 deletions ckanext/tour/templates/tour/tour_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<li>{% link_for _("Tour edit"), named_route='tour.edit', tour_id=tour.id %}</li>
{% endblock breadcrumb_content %}

{% block ap_content %}
{% block ap_primary %}
<form action="{{ h.url_for('tour.edit', tour_id=tour.id) }}" method="POST" enctype="multipart/form-data">
{% call form.input("title", label=_("Tour title"), value=tour.title, attrs={'required': 1, 'class': 'form-control'}) %}
{{ form.info(_("A tour title to explain what is it for")) }}
Expand Down Expand Up @@ -51,7 +51,7 @@ <h3>{{ _("Tour steps:") }}</h3>
<button class="btn btn-primary" type="submit">{{ _("Update tour") }}</button>
</div>
</form>
{% endblock ap_content %}
{% endblock ap_primary %}

{% block scripts %}
{{ super() }}
Expand Down
4 changes: 2 additions & 2 deletions ckanext/tour/templates/tour/tour_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<li>{% link_for _("Tour list"), named_route='tour.list' %}</li>
{% endblock breadcrumb_content %}

{% block ap_content %}
{% block ap_primary %}
<h1>{{ _("Tour list") }}</h1>

<div class="row g-3">
Expand Down Expand Up @@ -52,4 +52,4 @@ <h1>{{ _("Tour list") }}</h1>
</table>
</form>
</div> <!-- row -->
{% endblock ap_content %}
{% endblock ap_primary %}

0 comments on commit 20ade0b

Please sign in to comment.