mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-25 08:44:23 -04:00
Merge pull request #3089 from alphagov/search-services-by-name
Find services by name or partial name
This commit is contained in:
51
app/templates/views/find-services/find-services-by-name.html
Normal file
51
app/templates/views/find-services/find-services-by-name.html
Normal file
@@ -0,0 +1,51 @@
|
||||
{% extends "views/platform-admin/_base_template.html" %}
|
||||
{% from "components/page-footer.html" import page_footer %}
|
||||
{% from "components/form.html" import form_wrapper %}
|
||||
|
||||
{% block per_page_title %}
|
||||
Find services by name
|
||||
{% endblock %}
|
||||
|
||||
{% block platform_admin_content %}
|
||||
|
||||
<h1 class="heading-large">
|
||||
Find services by name
|
||||
</h1>
|
||||
|
||||
|
||||
{% call form_wrapper(
|
||||
action=url_for('.find_services_by_name'),
|
||||
class='grid-row'
|
||||
) %}
|
||||
<div class="column-three-quarters">
|
||||
{{ textbox(
|
||||
form.search,
|
||||
width='1-1',
|
||||
label='Find services by name, or by partial name'
|
||||
) }}
|
||||
</div>
|
||||
<div class="column-one-quarter align-button-with-textbox">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
||||
<button type="submit" class="button">Search</button>
|
||||
</div>
|
||||
{% endcall %}
|
||||
|
||||
{% call form_wrapper(id='search-form' ) %}
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
||||
{% endcall %}
|
||||
|
||||
{% if services_found %}
|
||||
<nav class="browse-list">
|
||||
<ul>
|
||||
{% for service in services_found %}
|
||||
<li class="browse-list-item">
|
||||
<a href="{{url_for('.service_dashboard', service_id=service.id)}}" class="browse-list-link">{{ service.name }}</a>
|
||||
</li>
|
||||
<hr>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
{% elif services_found == [] %}
|
||||
<p class="browse-list-hint">No services found.</p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
@@ -20,6 +20,7 @@
|
||||
('Email branding', url_for('main.email_branding')),
|
||||
('Letter branding', url_for('main.letter_branding')),
|
||||
('Inbound SMS numbers', url_for('main.inbound_sms_admin')),
|
||||
('Find services by name', url_for('main.find_services_by_name')),
|
||||
('Find users by email', url_for('main.find_users_by_email')),
|
||||
('Email Complaints', url_for('main.platform_admin_list_complaints')),
|
||||
('Returned letters', url_for('main.platform_admin_returned_letters')),
|
||||
|
||||
Reference in New Issue
Block a user