{% extends 'tour/tour_base.html' %} {% import 'macros/form.html' as form %} {% set bool_options = [ {"value": "true", "text": _("Enabled")}, {"value": "false", "text": _("Disabled")}, ] %} {% block breadcrumb_content %}
  • {% link_for _("Tour list"), named_route='tour.list' %}
  • {% link_for _("Tour settings"), named_route='tour.config' %}
  • {% endblock breadcrumb_content %} {% block page_content %}

    {{ _("Tour settings") }}

    {% if error_summary %}

    {{ _('The form contains invalid entries:') }}

    {% endif %}
    {{ h.csrf_input() }} {% call form.select( "ckanext.tour.launcher_position", label=_("Launcher position"), options=[ {"value": "bottom-right", "text": _("Bottom right")}, {"value": "bottom-left", "text": _("Bottom left")}, ], selected=data["ckanext.tour.launcher_position"], error=errors.get("ckanext.tour.launcher_position") ) %} {{ form.info(_("Where the floating \"Start tour\" button sits on pages that have a tour")) }} {% endcall %} {% call form.select( "ckanext.tour.collapse_steps", label=_("Collapse steps"), options=bool_options, selected=data["ckanext.tour.collapse_steps"] | string | lower, error=errors.get("ckanext.tour.collapse_steps") ) %} {{ form.info(_("If enabled, the tour steps will be collapsed on edit/create")) }} {% endcall %}
    {% endblock page_content %}