<%= 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.button :submit %>
<% end %>