Add alerts for unconfirmed enterprises to overview page

This commit is contained in:
Rob Harrington
2014-10-15 15:46:21 +11:00
parent c76a3815c0
commit c59662758c
3 changed files with 25 additions and 10 deletions

View File

@@ -0,0 +1,10 @@
.alert
border: 3px solid #DA5354
border-radius: 6px
margin-bottom: 20px
color: #DA5354
padding: 5px 10px
h6
color: #DA5354
.message
font-weight: bold

View File

@@ -0,0 +1,4 @@
- @enterprises.unconfirmed.each do |enterprise|
.alert
%h6= "Action Required: Please confirm the email address for #{enterprise.name}."
%span.message= "We've sent a confirmation email to #{enterprise.email}, so please check there for further instructions. Thanks!"

View File

@@ -1,17 +1,18 @@
%h1{ :style => 'margin-bottom: 30px'} Dashboard
- if @enterprises.empty?
- if @enterprises.unconfirmed.any?
= render partial: "spree/admin/overview/enterprises"
= render partial: "spree/admin/overview/unconfirmed"
- else
- if can? :admin, Spree::Product
= render partial: "spree/admin/overview/products"
%hr
%div.two.columns
 
- if can? :admin, Spree::Product
= render partial: "spree/admin/overview/products"
- if can? :admin, OrderCycle
= render partial: "spree/admin/overview/order_cycles"
%div.two.columns
 
= render partial: "spree/admin/overview/enterprises"
- if can? :admin, OrderCycle
= render partial: "spree/admin/overview/order_cycles"
= render partial: "spree/admin/overview/enterprises"