Adding link to user guide to enterprises index and dashboard

This commit is contained in:
Rob Harrington
2015-06-12 12:31:57 +08:00
parent 775718c776
commit 1fb1733644
4 changed files with 10 additions and 1 deletions

View File

@@ -2,6 +2,8 @@
Enterprises
- content_for :page_actions do
= render 'admin/shared/user_guide_link'
- if spree_current_user.can_own_more_enterprises?
%li#new_product_link
= button_link_to "New Enterprise", main_app.new_admin_enterprise_path, :icon => 'icon-plus', :id => 'admin_new_enterprise_link'

View File

@@ -0,0 +1 @@
= button_link_to "User Guide", "http://global.openfoodnetwork.org/platform/user-guide/", :icon => 'icon-external-link', :id => 'user_guide_link', target: '_blank'

View File

@@ -1,3 +1,7 @@
- content_for :page_actions do
= render 'admin/shared/user_guide_link'
%h1{ :style => 'margin-bottom: 30px'} Dashboard
- if @enterprises.unconfirmed.any?
@@ -21,4 +25,4 @@
- if can? :admin, OrderCycle
= render partial: "order_cycles"
= render partial: "enterprises"
= render partial: "enterprises"

View File

@@ -5,6 +5,8 @@
= "(#{enterprise_type_name(@enterprise)})"
- content_for :page_actions do
= render 'admin/shared/user_guide_link'
:javascript
function toggleType(){
if( $('#package_selection').is(":visible") ){