mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-19 20:52:32 -04:00
Make ‘Add a new service’ a button
This, along with putting it in a sticky footer, makes it consistent with the ‘Add template’ and ‘Invite team member’ buttons.
This commit is contained in:
@@ -36,7 +36,9 @@
|
||||
{% endif %}
|
||||
</ul>
|
||||
{% if can_add_service %}
|
||||
<a href="{{ url_for('.add_service') }}" class="browse-list-link">Add a new service…</a>
|
||||
<div class="js-stick-at-bottom-when-scrolling">
|
||||
<a href="{{ url_for('.add_service') }}" class="button-secondary">Add a new service</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@@ -102,7 +102,7 @@ def test_choose_account_should_show_choose_accounts_page_if_no_services(
|
||||
assert len(links) == 1
|
||||
add_service_link = links[0]
|
||||
assert normalize_spaces(page.h1.text) == 'Choose service'
|
||||
assert normalize_spaces(add_service_link.text) == 'Add a new service…'
|
||||
assert normalize_spaces(add_service_link.text) == 'Add a new service'
|
||||
assert add_service_link['href'] == url_for('main.add_service')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user