Fixed empty orders message

react_convert
Mark Moffat 2018-01-07 14:16:31 +01:00
parent 45c4a25bc6
commit 7400b4ffe1
2 changed files with 13 additions and 5 deletions

View File

@ -32,7 +32,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="col-lg-12 top-pad-10"> <div class="col-lg-12 top-pad-10">
<ul class="list-group"> <ul class="list-group">
<li class="list-group-item"> <li class="list-group-item">
@ -42,6 +42,7 @@
<strong>Recent orders</strong> <strong>Recent orders</strong>
{{/if}} {{/if}}
</li> </li>
{{#if orders}}
{{#each orders}} {{#each orders}}
<li class="list-group-item"> <li class="list-group-item">
<h4 class="pull-right" style="padding-left: 10px;"> <h4 class="pull-right" style="padding-left: 10px;">
@ -53,6 +54,13 @@
</h5> </h5>
</li> </li>
{{/each}} {{/each}}
{{else}}
<li class="list-group-item">
<h4 class="text-center">
No orders found
</h4>
</li>
{{/if}}
</ul> </ul>
</div> </div>
</div> </div>

View File

@ -3,12 +3,12 @@
<div class="row"> <div class="row">
<div class="col-md-10"> <div class="col-md-10">
<form method="post" id="settingsForm" action="/admin/settings/update" data-toggle="validator"> <form method="post" id="settingsForm" action="/admin/settings/update" data-toggle="validator">
<h2 class="clearfix">General Settings <div class="pull-right"><button type="submit" id="btnSettingsUpdate" class="btn btn-success">Update</button></h2> <h2 class="clearfix">General Settings <div class="pull-right"><button type="submit" id="btnSettingsUpdate" class="btn btn-success">Update</button></h2>
<div class="form-group"> <div class="form-group">
<label>Cart name *</label> <label>Cart name *</label>
<input type="text" class="form-control" name="cartTitle" value="{{config.cartTitle}}" required> <input type="text" class="form-control" name="cartTitle" value="{{config.cartTitle}}" required>
<p class="help-block"> <p class="help-block">
This element is critical for search engine optimisation. Cart title is displayed if your logo is hidden. This element is critical for search engine optimisation. Cart title is displayed if your logo is hidden.
</p> </p>
</div> </div>
<div class="form-group"> <div class="form-group">
@ -83,7 +83,7 @@
<div class="checkbox"> <div class="checkbox">
<label><input class="settingsMenuEnabled" type="checkbox" {{checkedState config.menuEnabled}} id="menuEnabled" name="menuEnabled"></label> <label><input class="settingsMenuEnabled" type="checkbox" {{checkedState config.menuEnabled}} id="menuEnabled" name="menuEnabled"></label>
</div> </div>
<p class="help-block">If a menu is set (<a href="/admin/settings/menu">here</a>) you can enable it.</p> <p class="help-block">If a menu is set you can set it up <a href="/admin/settings/menu">here</a>.</p>
</div> </div>
<div class="form-group"> <div class="form-group">
<label>Menu header</label> <label>Menu header</label>