mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 16:28:24 -04:00
Make live-search into a component
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{% from "components/table.html" import mapping_table, row, text_field, field, row_heading %}
|
||||
{% from "components/textbox.html" import textbox %}
|
||||
{% from "components/live-search.html" import live_search %}
|
||||
|
||||
{% extends "withoutnav_template.html" %}
|
||||
|
||||
@@ -62,13 +63,7 @@
|
||||
<details>
|
||||
<summary>International text message rates</summary>
|
||||
|
||||
<div class="live-search" data-module="live-search" data-targets="#international-pricing .table-row">
|
||||
{{ textbox(
|
||||
search_form.search,
|
||||
width='1-1',
|
||||
label='Search by country name or code'
|
||||
) }}
|
||||
</div>
|
||||
{{ live_search(target_selector='#international-pricing .table-row', show=True, form=search_form, label='Search by country name or code') }}
|
||||
|
||||
<div id="international-pricing" class="bottom-gutter-3-2">
|
||||
{% call mapping_table(
|
||||
|
||||
Reference in New Issue
Block a user