Change customer mobile numbers to general contact numbers #23

This commit is contained in:
Ramon Gutierrez 2018-02-26 18:46:55 +08:00
parent fbd52281e4
commit 6c57325f80
3 changed files with 8 additions and 8 deletions

View file

@ -85,7 +85,7 @@
<div class="m-form__section"> <div class="m-form__section">
<div class="m-form__heading"> <div class="m-form__heading">
<h3 class="m-form__heading-title"> <h3 class="m-form__heading-title">
Mobile Numbers Contact Numbers
</h3> </h3>
</div> </div>
<div class="form-group m-form__group row"> <div class="form-group m-form__group row">
@ -95,12 +95,12 @@
</div> </div>
<div class="form-group m-form__group row"> <div class="form-group m-form__group row">
<div class="col-lg-4"> <div class="col-lg-4">
<input type="text" class="form-control m-input" placeholder="Mobile number" id="mobile-number"> <input type="number" class="form-control m-input" placeholder="Contact number" step="1" min="0" id="mobile-number">
<div class="form-control-feedback hide" data-field="mobile-number"></div> <div class="form-control-feedback hide" data-field="mobile-number"></div>
<span class="m-form__help">Use the format <span class="text-info">63xxxxxxxxxx</span></span> <!--<span class="m-form__help">Use the format <span class="text-info">63xxxxxxxxxx</span></span>-->
</div> </div>
<div class="col-lg-4"> <div class="col-lg-4">
<button type="button" class="btn btn-primary" id="btn-add-mobile-number">Add to List</button> <button type="button" class="btn btn-primary" id="btn-add-mobile-number" maxlength="12">Add to List</button>
</div> </div>
</div> </div>
</div> </div>
@ -579,7 +579,7 @@
}); });
return true; return true;
} else if (id.toString().length != 12) { } else if (id.toString().length > 12) {
swal({ swal({
title: 'Whoops', title: 'Whoops',
text: 'Invalid mobile number specified.', text: 'Invalid mobile number specified.',
@ -917,7 +917,7 @@
columns: [ columns: [
{ {
field: 'id', field: 'id',
title: 'Mobile Number', title: 'Contact Number',
template: function (row, index, datatable) { template: function (row, index, datatable) {
return row.id + '<div class="form-control-feedback hide" data-field="id"></div>'; return row.id + '<div class="form-control-feedback hide" data-field="id"></div>';
} }

View file

@ -97,7 +97,7 @@
}, },
{ {
field: 'mobile_numbers', field: 'mobile_numbers',
title: 'Mobile Numbers', title: 'Contact Numbers',
sortable: false sortable: false
}, },
{ {

View file

@ -70,7 +70,7 @@
</div> </div>
<div class="form-group m-form__group row"> <div class="form-group m-form__group row">
<div class="col-lg-6"> <div class="col-lg-6">
<label data-field="customer_mobile_numbers">Mobile Numbers</label> <label data-field="customer_mobile_numbers">Contact Numbers</label>
<textarea name="customer_mobile_numbers" id="customer-mobile-numbers" class="form-control m-input" placeholder="Select a vehicle first" data-vehicle-field="1" rows="4" disabled>{{ obj.getCustomer ? obj.getCustomer.getMobileNumberList|join("\r\n") }}</textarea> <textarea name="customer_mobile_numbers" id="customer-mobile-numbers" class="form-control m-input" placeholder="Select a vehicle first" data-vehicle-field="1" rows="4" disabled>{{ obj.getCustomer ? obj.getCustomer.getMobileNumberList|join("\r\n") }}</textarea>
<div class="form-control-feedback hide" data-field="customer_mobile_numbers"></div> <div class="form-control-feedback hide" data-field="customer_mobile_numbers"></div>
</div> </div>