diff --git a/app/views/crm/dining_queues/_form.html.erb b/app/views/crm/dining_queues/_form.html.erb index 51e2c097..7c50a06d 100755 --- a/app/views/crm/dining_queues/_form.html.erb +++ b/app/views/crm/dining_queues/_form.html.erb @@ -11,8 +11,8 @@ <%= f.input :queue_no , :class => "dining",:id => "dining", :readonly => true%> <%= f.hidden_field :customer_id %> <%= f.input :name %> - <%= f.input :contact_no %> - <%= f.input :seater %> + <%= f.input :contact_no , input_html: { min: 1, :onkeypress => "return isNumberKey(event);", :onkeyup => "notChar(this.value);" } %> + <%= f.input :seater , input_html: { min: 1, :onkeypress => "return isNumberKey(event);", :onkeyup => "notNegative(this.value);" } %> <%= f.input :remark %>
@@ -111,11 +111,29 @@