<%= simple_form_for([:settings,@zone,@settings_table]) do |f| %> <%= f.error_notification %>
<%= 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 %>
<%= link_to 'Add For Extra Charges', new_settings_zone_table_dining_charge_path(@zone,@settings_table),:class => 'btn btn-primary' %>
<% end %> <% else %> <% @settings_table.dining_charges.each do |dc| %>
Dining Charge
item code : <%= dc.item_code %>
Unit price : <%= dc.unit_price %>
Charge type : <%= dc.charge_type %>
<%= link_to 'Edit Charges', edit_settings_zone_table_dining_charge_path(@zone,@settings_table,dc),:class => 'btn btn-primary' %>
<% end %> <% end %>
<%= f.submit "Submit",:class => 'btn btn-primary btn-lg waves-effect' %>
<% end %>
view_headline PAGE DETAIL

1) Name - to write table name
2) Status - to write is available or not
3) Seater - to write seat for table
4) Order by - to write order for table
5) Is active - checkbox for is active or not

list BUTTON LISTS

1) ADD FOR EXTRA CHARGES - to add for extra charges
2) CREATE - to create table

list LINK LISTS

1) Home / Back - go to dashboard