update promtion and dining charges
This commit is contained in:
@@ -4,15 +4,52 @@
|
||||
<%= f.error_notification %>
|
||||
|
||||
<div class="form-inputs p-l-15">
|
||||
<%= f.input :item_code, :input_html => { :id => 'item_code' } %>
|
||||
<%= f.input :unit_price, :input_html => { :id => 'unit_price'} %>
|
||||
<%= f.input :taxable %>
|
||||
<%= f.input :charge_type, :collection => [:hr, :day] %>
|
||||
<%= f.input :minimum_free_time %>
|
||||
<%= f.input :charge_block, :input_html => { :id => 'charge_block'} %>
|
||||
<%= f.input :time_rounding, :collection => [:down, :up] %>
|
||||
<%= f.input :time_rounding_block, :input_html => { :id => 'time_rounding_block'} %>
|
||||
<%= f.input :time_rounding_block_price, :input_html => { :id => 'time_rounding_block_price'} %>
|
||||
<%= f.input :item_code, :input_html => { :id => 'item_code',:class=>"col-md-9" } %>
|
||||
<%= f.input :unit_price, :input_html => { :id => 'unit_price',:class=>"col-md-9"} %>
|
||||
<%= f.input :taxable, :input_html => {:class=>"col-md-9"} %>
|
||||
<%= f.input :charge_type, :collection => [:hr, :day], :input_html => {:class=>"col-md-8"} %>
|
||||
<!--<%= f.input :minimum_free_time ,:input_html => { :class => 'timepicker'} %> -->
|
||||
<label class="control-label">* Minimum Free Time</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">
|
||||
<i class="material-icons">access_time</i>
|
||||
</span>
|
||||
<% if !@dining_charge.minimum_free_time.nil?%>
|
||||
<input type="text" name="minimum_free_time" value="<%= @dining_charge.minimum_free_time.utc.strftime('%H:%M') %>" class="timepicker form-control col-md-8" placeholder="Start Time...">
|
||||
<% else %>
|
||||
<input type="text" name="minimum_free_time" class="timepicker form-control col-md-8" placeholder="Start Time...">
|
||||
<% end %>
|
||||
</div>
|
||||
<!--<%= f.input :charge_block, :input_html => { :id => 'charge_block'} %>-->
|
||||
<div class="form-group">
|
||||
<label class="control-label required"> Change Block</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">
|
||||
<i class="material-icons">access_time</i>
|
||||
</span>
|
||||
<% if !@dining_charge.charge_block.nil?%>
|
||||
<input type="text" name="charge_block" value="<%= @dining_charge.charge_block.utc.strftime('%H:%M') %>" class="timepicker form-control col-md-8" placeholder="Start Time...">
|
||||
<% else %>
|
||||
<input type="text" name="charge_block" class="timepicker form-control col-md-8" placeholder="Start Time...">
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<%= f.input :time_rounding, :collection => [:down, :up], :input_html => { :class=>"col-md-8"} %>
|
||||
<!-- <%= f.input :time_rounding_block, :input_html => { :id => 'time_rounding_block'} %>-->
|
||||
<div class="form-group">
|
||||
<label class="control-label required"> Time Rounding Block</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">
|
||||
<i class="material-icons">access_time</i>
|
||||
</span>
|
||||
<% if !@dining_charge.time_rounding_block.nil?%>
|
||||
<input type="text" name="time_rounding_block" value="<%= @dining_charge.time_rounding_block.utc.strftime('%H:%M') %>" class="timepicker form-control col-md-8" placeholder="Start Time...">
|
||||
<% else %>
|
||||
<input type="text" name="time_rounding_block" class="timepicker form-control col-md-8" placeholder="Start Time...">
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<%= f.input :time_rounding_block_price, :input_html => { :id => 'time_rounding_block_price',:class=>"col-md-8"} %>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
|
||||
Reference in New Issue
Block a user