Merge pull request #8712 from Matt-Yorkley/oc-mails

OC notifications
This commit is contained in:
Filipe
2022-01-17 20:30:40 +00:00
committed by GitHub
9 changed files with 76 additions and 32 deletions

View File

@@ -2,12 +2,12 @@
- content_for :page_actions do
- if can? :notify_producers, @order_cycle
%li
- processed = @order_cycle.processed_at.present?
- mails_sent = @order_cycle.mails_sent?
- url = main_app.notify_producers_admin_order_cycle_path
- confirm_msg = "#{t('.notify_producers_tip')} #{t(:are_you_sure)}"
%a.button.icon-email.with-tip{ href: url, data: { method: 'post', confirm: confirm_msg }, 'data-powertip': t('.notify_producers_tip') }
= processed ? t('.re_notify_producers') : t(:notify_producers)
- if processed
= mails_sent ? t('.re_notify_producers') : t(:notify_producers)
- if mails_sent
.badge.icon-ok.success
- content_for :page_title do