To add only Other Payment Name beside SX Resturant

This commit is contained in:
San Wai Lwin
2018-03-06 18:24:19 +06:30
parent 80a0cba537
commit 6cc2ba5110
14 changed files with 25 additions and 16 deletions

View File

@@ -23,6 +23,11 @@
<img src="<%= asset_path('SX-Logo-small.png') %>" width="40" height="40" alt="Logo" />
<span class="navbar-brand-txt">SX Restaurant</span>
</a>
<% if @payment_method_setting_nav.present? %>
<span class="navbar-brand m-0">/ &nbsp;
<span id="otherPayment"></span>&nbsp; Payment
</span>
<% end %>
</div>
<!-- Start Shop Info -->
@@ -73,4 +78,8 @@
</a> -->
</div>
</div>
</nav>
</nav>
<script type="text/javascript">
var otherPayment = location.href.split('/')[location.href.split('/').length -1 ];
document.getElementById("otherPayment").innerHTML = otherPayment;
</script>