Make ‘Add new’ buttons sticky on more pages

For consistency with the template management page.
This commit is contained in:
Chris Hill-Scott
2019-02-01 12:36:03 +00:00
parent 02fb5f69dd
commit afdc749e36
5 changed files with 41 additions and 51 deletions

View File

@@ -11,18 +11,9 @@
{% block maincolumn_content %}
<div class="grid-row bottom-gutter">
<div class="column-two-thirds">
<h1 class="heading-large">
Team members
</h1>
</div>
{% if current_user.has_permissions('manage_service') %}
<div class="column-one-third">
<a href="{{ url_for('.invite_user', service_id=current_service.id) }}" class="button align-with-heading">Invite team member</a>
</div>
{% endif %}
</div>
<h1 class="heading-large">
Team members
</h1>
{% if show_search_box %}
<div data-module="autofocus">
@@ -81,4 +72,10 @@
{% endfor %}
</div>
{% if current_user.has_permissions('manage_service') %}
<div class="js-stick-at-bottom-when-scrolling">
<a href="{{ url_for('.invite_user', service_id=current_service.id) }}" class="button-secondary">Invite a team member</a>
</div>
{% endif %}
{% endblock %}