add shop info in split bill

This commit is contained in:
phyusin
2018-02-09 14:19:53 +06:30
parent 9f6505fd95
commit 4c563e23bf
2 changed files with 9 additions and 1 deletions

View File

@@ -206,4 +206,10 @@ class Origami::SplitBillController < BaseOrigamiController
end end
end end
#Shop Name in Navbor
helper_method :shop_detail
def shop_detail
@shop = Shop.first
end
end end

View File

@@ -40,14 +40,16 @@
<% end %> <% end %>
</a> </a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<%if current_login_employee.role =="administrator" %>
<li> <li>
<p class="waves-effect waves-block p-l-30 m-b-5"> <p class="waves-effect waves-block p-l-30 m-b-5">
<a href="/settings/shops/1" style="text-decoration: none;"> <a href="<%= settings_shops_path %>" style="text-decoration: none;">
<i class="material-icons font-7 logout_icon shopinfo">info</i> <i class="material-icons font-7 logout_icon shopinfo">info</i>
<span class="font-15 shopinfo" >Shop Info</span> <span class="font-15 shopinfo" >Shop Info</span>
</a> </a>
</p> </p>
</li> </li>
<% end %>
<li> <li>
<!-- <%if current_login_employee.role !="waiter" %> --> <!-- <%if current_login_employee.role !="waiter" %> -->
<!-- <%end%> --> <!-- <%end%> -->