Commit a9f64c33612a39d8154742eaa646a0afdb2e6bc0
1 parent
5627e415
Exists in
master
and in
22 other branches
Add manage products button to product catalog
ActionItem896
Showing
2 changed files
with
9 additions
and
0 deletions
Show diff stats
app/views/catalog/index.rhtml
@@ -2,6 +2,11 @@ | @@ -2,6 +2,11 @@ | ||
2 | <% extra_content_list = [] %> | 2 | <% extra_content_list = [] %> |
3 | 3 | ||
4 | <div id="product-catalog"> | 4 | <div id="product-catalog"> |
5 | +<% if !user.nil? && ( user.is_admin?(profile.environment) || user.is_admin?(profile) ) %> | ||
6 | + <div class="product-catalog-ctrl"> | ||
7 | + <%= button :product, _('Manage Products/Services'), :controller => 'manage_products' %> | ||
8 | + </div> | ||
9 | +<% end %> | ||
5 | 10 | ||
6 | <h1><%= _('Products/Services') %></h1> | 11 | <h1><%= _('Products/Services') %></h1> |
7 | 12 |
public/stylesheets/application.css
@@ -2513,6 +2513,10 @@ div#activation_enterprise label, div#activation_enterprise input, div#activation | @@ -2513,6 +2513,10 @@ div#activation_enterprise label, div#activation_enterprise input, div#activation | ||
2513 | text-align: center; | 2513 | text-align: center; |
2514 | } | 2514 | } |
2515 | 2515 | ||
2516 | +.product-catalog-ctrl { | ||
2517 | + float: right; | ||
2518 | +} | ||
2519 | + | ||
2516 | #product-list { | 2520 | #product-list { |
2517 | display: inline-block; | 2521 | display: inline-block; |
2518 | text-align: left; | 2522 | text-align: left; |