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:
Leo Hemsted
2019-02-07 11:39:23 +00:00
parent 7590b3dba9
commit f83910599c
10 changed files with 16 additions and 72 deletions
+2 -2
View File
@@ -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,
)