Add link to edit postage to view_template page

This commit is contained in:
Pea Tyczynska
2019-01-29 16:12:54 +00:00
parent db5378bac2
commit e85678fa69
2 changed files with 7 additions and 0 deletions

View File

@@ -39,3 +39,9 @@
top: 400px; // aligns to top of subject
left: -5px;
}
.edit-template-link-letter-postage {
@extend %edit-template-link;
top: -20px; // aligns to top of subject
left: -5px;
}

View File

@@ -50,6 +50,7 @@
</div>
<div class="column-whole template-container">
{% if current_user.has_permissions('manage_templates') and template.template_type == 'letter' %}
<a href="{{ url_for(".edit_template_postage", service_id=current_service.id, template_id=template.id) }}" class="edit-template-link-letter-postage">Edit</a>
<a href="{{ url_for(".edit_service_template", service_id=current_service.id, template_id=template.id) }}" class="edit-template-link-letter-body">Edit</a>
<a href="{{ url_for(".set_template_sender", service_id=current_service.id, template_id=template.id) }}" class="edit-template-link-letter-contact">Edit</a>
{% endif %}