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:
Chris Hill-Scott
2019-04-30 11:32:36 +01:00
parent 9e238a4f87
commit 3cfe4740fb
2 changed files with 4 additions and 2 deletions

View File

@@ -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 %}

View File

@@ -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')