mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 02:23:19 -04:00
remove option for branding to sometimes not show search
it wouldn't show search if there were under a certain amount of letter or email branding options - however we know there will always be more than that amount so lets remove some complexity. Also, rename the SearchTemplatesForm because it can search anything - it just prompts you to search by name is all.
This commit is contained in:
@@ -6,7 +6,7 @@ from notifications_utils.template import SMSPreviewTemplate
|
||||
|
||||
from app import current_service, notification_api_client, service_api_client
|
||||
from app.main import main
|
||||
from app.main.forms import SearchTemplatesForm
|
||||
from app.main.forms import SearchByNameForm
|
||||
from app.utils import user_has_permissions
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ def conversation_reply(
|
||||
templates=templates,
|
||||
show_search_box=(len(templates) > 7),
|
||||
template_type='sms',
|
||||
search_form=SearchTemplatesForm(),
|
||||
search_form=SearchByNameForm(),
|
||||
notification_id=notification_id,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user