mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 14:18:24 -04:00
Merge pull request #3622 from alphagov/searchbox-make-autofocus-optional
Autofocus off by default on live-search
This commit is contained in:
@@ -2,15 +2,16 @@
|
||||
{% from "components/live-search.html" import live_search %}
|
||||
|
||||
{% extends "withnav_template.html" %}
|
||||
{% set page_title = "Copy an existing template" %}
|
||||
|
||||
{% block service_page_title %}
|
||||
Copy an existing template
|
||||
{{ page_title }}
|
||||
{% endblock %}
|
||||
|
||||
{% block maincolumn_content %}
|
||||
|
||||
<div class="bottom-gutter-1-2">
|
||||
<h1 class="heading-large">Copy an existing template</h1>
|
||||
<h1 class="heading-large">{{ page_title }}</h1>
|
||||
{{ copy_folder_path(template_folder_path, current_service.id, from_service, current_user) }}
|
||||
</div>
|
||||
{% if not services_templates_and_folders.templates_to_show %}
|
||||
@@ -18,7 +19,12 @@
|
||||
This folder is empty
|
||||
</p>
|
||||
{% else %}
|
||||
{{ live_search(target_selector='#template-list .template-list-item', show=True, form=search_form) }}
|
||||
{{ live_search(
|
||||
target_selector='#template-list .template-list-item',
|
||||
show=True,
|
||||
form=search_form,
|
||||
autofocus=True
|
||||
) }}
|
||||
<nav id="template-list">
|
||||
{% for item in services_templates_and_folders %}
|
||||
<div class="template-list-item {% if item.ancestors %}template-list-item-hidden-by-default{% endif %} {% if not item.ancestors %}template-list-item-without-ancestors{% endif %}">
|
||||
|
||||
Reference in New Issue
Block a user