64 lines
2.6 KiB
Plaintext
Executable File
64 lines
2.6 KiB
Plaintext
Executable File
<div class="row">
|
|
<div class="col-xs-12 col-sm-12 col-md-8 col-lg-8">
|
|
<%= simple_form_for([:settings,@zone,@settings_table]) do |f| %>
|
|
<%= f.error_notification %>
|
|
|
|
<div class="form-inputs p-l-15">
|
|
<%= f.input :name %>
|
|
<%= f.input :status %>
|
|
<%= f.input :seater %>
|
|
<%= f.input :order_by %>
|
|
<%= f.input :is_active %>
|
|
<% if @settings_table.dining_charges.length == 0 %>
|
|
<% if @settings_table.id != nil %>
|
|
<div class="div-border">
|
|
<div class="col-md-10">
|
|
<%= link_to 'Add For Extra Charges', new_settings_zone_table_dining_charge_path(@zone,@settings_table),:class => 'btn btn-primary' %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
<% else %>
|
|
<% @settings_table.dining_charges.each do |dc| %>
|
|
<div class="div-border">
|
|
<div class="col-md-10"><b><u>Dining Charge</u></b></div>
|
|
<div class="col-md-10">item code : <%= dc.item_code %></div>
|
|
<div class="col-md-10">Unit price : <%= dc.unit_price %></div>
|
|
<div class="col-md-10">Charge type : <%= dc.charge_type %></div>
|
|
<div class="col-md-10">
|
|
<%= link_to 'Edit Charges', edit_settings_zone_table_dining_charge_path(@zone,@settings_table,dc),:class => 'btn btn-primary' %>
|
|
<!-- <button class="btn btn-primary" src="<%= edit_settings_zone_table_dining_charge_path(@zone,@settings_table,dc) %>">Edit Charge</button> -->
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="form-actions">
|
|
<%= f.submit "Submit",:class => 'btn btn-primary btn-lg waves-effect' %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
|
|
<div class="card">
|
|
<div class="body">
|
|
<h5><i class="material-icons md-18">view_headline PAGE DETAIL</i></h5>
|
|
<p>
|
|
1) Name - to write table name <br>
|
|
2) Status - to write is available or not <br>
|
|
3) Seater - to write seat for table <br>
|
|
4) Order by - to write order for table <br>
|
|
5) Is active - checkbox for is active or not <br>
|
|
</p>
|
|
<h5><i class="material-icons md-18">list BUTTON LISTS</i> </h5>
|
|
<p>
|
|
1) ADD FOR EXTRA CHARGES - to add for extra charges <br>
|
|
2) CREATE - to create table <br>
|
|
</p>
|
|
<h5><i class="material-icons md-18">list LINK LISTS</i> </h5>
|
|
<p>1) Home / Back - go to dashboard</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|