change UI for all settings module
This commit is contained in:
@@ -61,23 +61,33 @@
|
||||
</table>
|
||||
<% @table.dining_charges.each do |dc| %>
|
||||
<div class="card">
|
||||
<h4 class="card-title">Dining Charge</h4>
|
||||
<div class="">
|
||||
<div class="body">
|
||||
<h4 class="card-title">Dining Charge</h4>
|
||||
<table class="table">
|
||||
|
||||
<tr>
|
||||
<td class="align-right">Item code :</td>
|
||||
<td class="align-left"><%= dc.item_code %></td>
|
||||
<td class="align-right">Unit price : </td>
|
||||
<td class="align-left"><%= dc.unit_price %></td>
|
||||
<td class="align-right">Charge type : </td>
|
||||
<td class="align-left"><%= dc.charge_type %></td>
|
||||
<td><%= link_to 'Edit Charges', edit_settings_zone_table_dining_charge_path(@zone,@settings_table,dc),:class => 'btn bg-deep-purple' %>
|
||||
<!-- <button class="btn btn-primary" src="<%= edit_settings_zone_table_dining_charge_path(@zone,@settings_table,dc) %>">Edit Charge</button> --></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<thead>
|
||||
<th>Item Code</th>
|
||||
<th>Unit Price</th>
|
||||
<th>Charge Type</th>
|
||||
<th>Free Time</th>
|
||||
<th>Charges Block</th>
|
||||
<th>Time Rounding</th>
|
||||
<th>Actions</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><%= dc.item_code %></td>
|
||||
<td><%= dc.unit_price %></td>
|
||||
<td><%= dc.charge_type %></td>
|
||||
<td><%= (dc.minimum_free_time).utc.strftime("%H:%M") %></td>
|
||||
<td><%= (dc.charge_block).utc.strftime("%H:%M") %></td>
|
||||
<td><%= dc.time_rounding %></td>
|
||||
<td><%= link_to 'Edit Charges', edit_settings_zone_table_dining_charge_path(@zone,@settings_table,dc),:class => 'btn bg-deep-purple' %>
|
||||
<!-- <button class="btn btn-primary" src="<%= edit_settings_zone_table_dining_charge_path(@zone,@settings_table,dc) %>">Edit Charge</button> -->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user