From 522e646b367c7c111ab18f0d8a11ad4a25378d23 Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Thu, 8 Dec 2016 11:51:17 +1100 Subject: [PATCH] Adding tooltips to standing order index actions --- app/views/admin/standing_orders/_table.html.haml | 8 ++++---- config/locales/en.yml | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/views/admin/standing_orders/_table.html.haml b/app/views/admin/standing_orders/_table.html.haml index f6b10f2c80..3feed5a5c9 100644 --- a/app/views/admin/standing_orders/_table.html.haml +++ b/app/views/admin/standing_orders/_table.html.haml @@ -51,9 +51,9 @@ %td.payment_method{ ng: { show: 'columns.payment_method.visible', bind: '::paymentMethodsByID[standingOrder.payment_method_id].name' } } %td.shipping_method{ ng: { show: 'columns.shipping_method.visible', bind: '::shippingMethodsByID[standingOrder.shipping_method_id].name' } } %td.actions - %a.edit-standing-order.icon-edit.no-text{ ng: { href: '{{standingOrder.edit_path}}'} } - %a.pause-standing-order.icon-pause.no-text{ ng: { click: 'standingOrder.pause()', hide: '!!standingOrder.paused_at' } } - %a.unpause-standing-order.icon-play.no-text{ ng: { click: 'standingOrder.unpause()', show: '!!standingOrder.paused_at' } } - %a.cancel-standing-order.icon-remove.no-text{ ng: { click: 'standingOrder.cancel()'} } + %a.edit-standing-order.icon-edit.no-text{ ng: { href: '{{standingOrder.edit_path}}'}, 'ofn-with-tip' => t('.edit_standing_order') } + %a.pause-standing-order.icon-pause.no-text{ ng: { click: 'standingOrder.pause()', hide: '!!standingOrder.paused_at' }, 'ofn-with-tip' => t('.pause_standing_order') , href: 'javascript:void(0)' } + %a.unpause-standing-order.icon-play.no-text{ ng: { click: 'standingOrder.unpause()', show: '!!standingOrder.paused_at' }, 'ofn-with-tip' => t('.unpause_standing_order') , href: 'javascript:void(0)' } + %a.cancel-standing-order.icon-remove.no-text{ ng: { click: 'standingOrder.cancel()'}, 'ofn-with-tip' => t('.cancel_standing_order') , href: 'javascript:void(0)' } %tr.panel-row{ object: "standingOrder", panels: "{products: 'standing_order_products', orders: 'standing_order_orders'}" } diff --git a/config/locales/en.yml b/config/locales/en.yml index cf578d6e11..a08d13ab59 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -801,6 +801,10 @@ en: create: Create Standing Order index: please_select_a_shop: Please select a shop + edit_standing_order: Edit Standing Order + pause_standing_order: Pause Standing Order + unpause_standing_order: Unpause Standing Order + cancel_standing_order: Cancel Standing Order steps: details: 1. Basic Details address: 2. Address