From e85678fa695ffce9eaeed7a5a2ff17f6ab343d1b Mon Sep 17 00:00:00 2001 From: Pea Tyczynska Date: Tue, 29 Jan 2019 16:12:54 +0000 Subject: [PATCH] Add link to edit postage to view_template page --- app/assets/stylesheets/views/template.scss | 6 ++++++ app/templates/views/templates/_template.html | 1 + 2 files changed, 7 insertions(+) diff --git a/app/assets/stylesheets/views/template.scss b/app/assets/stylesheets/views/template.scss index 8e8c891ad..261e171c8 100644 --- a/app/assets/stylesheets/views/template.scss +++ b/app/assets/stylesheets/views/template.scss @@ -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; +} diff --git a/app/templates/views/templates/_template.html b/app/templates/views/templates/_template.html index ad56f8911..a5422ead6 100644 --- a/app/templates/views/templates/_template.html +++ b/app/templates/views/templates/_template.html @@ -50,6 +50,7 @@
{% if current_user.has_permissions('manage_templates') and template.template_type == 'letter' %} + Edit Edit Edit {% endif %}