Add custom marker for destination on job orders

This commit is contained in:
Ramon Gutierrez 2018-01-30 18:40:36 +08:00
parent 4db255d2f6
commit f125d50778
2 changed files with 12 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

@ -71,6 +71,11 @@
<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>
<div class="col-lg-6">
<label data-field="customer_customer_notes">Customer Notes:</label>
<textarea name="customer_customer_notes" id="customer-customer-notes" class="form-control m-input" placeholder="Select a vehicle first" data-vehicle-field="1" rows="4" disabled>{{ obj.getCustomer ? obj.getCustomer.getCustomerNotes }}</textarea>
<div class="form-control-feedback hide" data-field="customer_customer_notes"></div>
</div>
</div>
</div>
<div class="m-form__section">
@ -403,7 +408,8 @@ $(function() {
map.setCenter(lat, lng);
map.addMarker({
lat: lat,
lng: lng
lng: lng,
icon: '/assets/images/icon-destination.png'
});
// set value in hidden input
@ -462,7 +468,10 @@ $(function() {
omap.addMarker({
lat: {{ obj.getCoordinates.getLatitude }},
lng: {{ obj.getCoordinates.getLongitude }}
lng: {{ obj.getCoordinates.getLongitude }},
icon: '/assets/images/icon-destination.png',
title: "Destination",
content: "Destination"
});
{% for outlet in outlets %}
@ -593,6 +602,7 @@ $(function() {
$("#customer-first-name").val(vdata.customer.first_name);
$("#customer-last-name").val(vdata.customer.last_name);
$("#customer-mobile-numbers").val(vdata.customer.mobile_numbers.join("\r\n"));
$("#customer-customer-notes").val(vdata.customer.customer_notes);
$("#vmfg").val(vdata.vehicle.mfg_name);
$("#vehicle-make").val(vdata.vehicle.make);
$("#vehicle-year").val(vdata.vehicle.model_year);