mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-13 17:59:45 -04:00
Merge pull request #2564 from alphagov/style-template-management-controls
Style template management controls
This commit is contained in:
@@ -43,7 +43,9 @@
|
||||
this.addCancelButton = function(state) {
|
||||
let $cancel = $('<a></a>')
|
||||
.html('Cancel')
|
||||
.click((event) => {
|
||||
.attr('class', 'page-footer-js-cancel')
|
||||
.attr('tabindex', '0')
|
||||
.on('click keydown', (event) => {
|
||||
event.preventDefault();
|
||||
// clear existing data
|
||||
state.$el.find('input:radio').prop('checked', false);
|
||||
|
||||
@@ -163,5 +163,10 @@
|
||||
|
||||
}
|
||||
|
||||
&-manage-link {
|
||||
display: block;
|
||||
text-align: right;
|
||||
padding: ($gutter - 2px) 0 0 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -86,3 +86,21 @@
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.page-footer-js-cancel {
|
||||
|
||||
text-decoration: underline;
|
||||
color: $govuk-blue;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
color: $link-hover-colour;
|
||||
}
|
||||
|
||||
&:focus,
|
||||
&:active, {
|
||||
background: $yellow;
|
||||
color: $govuk-blue;
|
||||
outline: 3px solid $yellow;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,6 +59,10 @@
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.button-secondary {
|
||||
margin-right: $gutter-half;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.content-fixed,
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
{% else %}
|
||||
|
||||
<div class="grid-row {% if current_service.all_template_folders %}bottom-gutter-1-2{% else %}bottom-gutter-2-3{% endif %}">
|
||||
<div class="column-two-thirds">
|
||||
<div class="{% if can_manage_folders %} column-five-sixths {% else %} column-two-thirds {% endif %}">
|
||||
{{ folder_path(
|
||||
folders=template_folder_path,
|
||||
service_id=current_service.id,
|
||||
@@ -59,14 +59,16 @@
|
||||
) }}
|
||||
</div>
|
||||
{% if current_user.has_permissions('manage_templates') %}
|
||||
<div class="column-one-third">
|
||||
{% if not can_manage_folders %}
|
||||
<a href="{{ url_for('.add_template_by_type', service_id=current_service.id, template_folder_id=current_template_folder_id) }}" class="button align-with-heading">Add new template</a>
|
||||
<div class="column-one-third">
|
||||
<a href="{{ url_for('.add_template_by_type', service_id=current_service.id, template_folder_id=current_template_folder_id) }}" class="button align-with-heading">Add new template</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if can_manage_folders and current_template_folder_id %}
|
||||
<a href="{{ url_for('.manage_template_folder', service_id=current_service.id, template_folder_id=current_template_folder_id) }}" class="align-with-heading">Manage</a>
|
||||
<div class="column-one-sixth">
|
||||
<a href="{{ url_for('.manage_template_folder', service_id=current_service.id, template_folder_id=current_template_folder_id) }}" class="folder-heading-manage-link">Manage</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user