|
|
|
@ -9,7 +9,33 @@ |
|
|
|
|
|
|
|
<!-- head tag --> |
|
|
|
<div th:replace="fragment/Head.html::head"></div> |
|
|
|
<script> |
|
|
|
|
|
|
|
$(document).ready(function(){ |
|
|
|
getMasterName(); |
|
|
|
}); |
|
|
|
//Getting Master Name |
|
|
|
function getMasterName() { |
|
|
|
|
|
|
|
$.ajax({ |
|
|
|
type: "GET", |
|
|
|
url: '/qr-feedback/master/getMasterName', |
|
|
|
dataType: 'json', |
|
|
|
success: function(obj) { |
|
|
|
|
|
|
|
for (var i = 0; i < obj.length; i++) { |
|
|
|
var tempJsonValue = obj[i]['masterId']; |
|
|
|
var tempJsonLabel = obj[i]['masterName']; |
|
|
|
$('#masterName').append("<option value='" + tempJsonValue + "'>" + tempJsonLabel + "</option>"); |
|
|
|
|
|
|
|
} |
|
|
|
}, error: function(e, ts, et) |
|
|
|
{ |
|
|
|
alert(ts) |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
</script> |
|
|
|
<body> |
|
|
|
|
|
|
|
<!-- header tag --> |
|
|
|
@ -44,68 +70,65 @@ |
|
|
|
<div class="row g-3"> |
|
|
|
<div class="col-md-4"> |
|
|
|
<label for="zone" class="form-label">Zone</label> |
|
|
|
<select th:field="*{zoneNo}" id="zoneNo" class="form-select" onchange="getDiv(this);"> |
|
|
|
<select th:field="*{zoneNo}" id="zoneNo" class="form-select" onchange="getDiv(this);" autocomplete="off" required> |
|
|
|
<option th:value="''">---Select Zone---</option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
<div class="col-md-4"> |
|
|
|
<label for="div" class="form-label">Div</label> |
|
|
|
<select th:field="*{divNo}" id="divNo" class="form-select" onchange="getArea(this);"> |
|
|
|
<select th:field="*{divNo}" id="divNo" class="form-select" onchange="getArea(this);" autocomplete="off" required> |
|
|
|
<option th:value="''">---Select Div---</option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
<div class="col-md-4"> |
|
|
|
<label for="assetArea" class="form-label">Area</label> |
|
|
|
<select th:field="*{assetArea}" id="assetArea" class="form-select" onchange="getLocation(this);"> |
|
|
|
<select th:field="*{assetArea}" id="assetArea" class="form-select" onchange="getLocation(this);" autocomplete="off" required> |
|
|
|
<option th:value="''">---Select Area---</option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
<div class="col-md-4"> |
|
|
|
<label for="assetLocation" class="form-label">Locality</label> |
|
|
|
<select th:field="*{assetLocality}" id="assetLocation" class="form-select" onchange="getStreet(this);"> |
|
|
|
<select th:field="*{assetLocality}" id="assetLocation" class="form-select" onchange="getStreet(this);" autocomplete="off" required> |
|
|
|
<option th:value="''">---Select Locality---</option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
<div class="col-md-4"> |
|
|
|
<label for="assetStreet" class="form-label">Street</label> |
|
|
|
<select th:field="*{assetStreet}" id="assetStreet" class="form-select"> |
|
|
|
<select th:field="*{assetStreet}" id="assetStreet" class="form-select" autocomplete="off" required> |
|
|
|
<option th:value="''">---Select Street---</option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
<div class="col-md-4"> |
|
|
|
<label for="assetType" class="form-label">Asset Type</label> |
|
|
|
<select id="assetType" class="form-select" th:field="*{assetType}"> |
|
|
|
<select id="masterName" class="form-select" th:field="*{assetType}" autocomplete="off" required> |
|
|
|
<option th:value="''">---Select Asset Type---</option> |
|
|
|
<option th:value="'Park'">Park</option> |
|
|
|
<option th:value="'Amma Unavangam'">Amma Unavangam</option> |
|
|
|
<option th:value="'Public Toilet'">Public Toilet</option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
<div class="col-md-4"> |
|
|
|
<label for="assetName" class="form-label">Name of the Asset</label> |
|
|
|
<input type="text" class="form-control" id="assetName" th:field="*{assetName}"> |
|
|
|
<input type="text" class="form-control" id="assetName" th:field="*{assetName}" autocomplete="off" required> |
|
|
|
</div> |
|
|
|
<div class="col-md-4"> |
|
|
|
<label for="assetAddress" class="form-label">Address of the Asset</label> |
|
|
|
<input type="text" class="form-control" id="assetAddress" th:field="*{assetAddress}"> |
|
|
|
<input type="text" class="form-control" id="assetAddress" th:field="*{assetAddress}" autocomplete="off" required> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="col-md-4"> |
|
|
|
<label for="assetOpeningTime" class="form-label">Opening Timing</label> |
|
|
|
<input type="time" class="form-control" id="assetOpeningTime" th:field="*{assetOpeningTime}"> |
|
|
|
<input type="time" class="form-control" id="assetOpeningTime" th:field="*{assetOpeningTime}" autocomplete="off" required> |
|
|
|
</div> |
|
|
|
<div class="col-md-4"> |
|
|
|
<label for="assetClosingTime" class="form-label">Closing Timing</label> |
|
|
|
<input type="time" class="form-control" id="assetClosingTime" th:field="*{assetClosingTime}"> |
|
|
|
<input type="time" class="form-control" id="assetClosingTime" th:field="*{assetClosingTime}" autocomplete="off" required> |
|
|
|
</div> |
|
|
|
<div class="col-md-4"> |
|
|
|
<label for="assetGeoLocation" class="form-label">Latitude</label> |
|
|
|
<!-- <input type="text" class="form-control" id="assetLatitude" onclick="getLocation()"> --> |
|
|
|
<input type="text" class="form-control" id="assetLatitude" th:field="*{assetLatitude}" data-bs-toggle="modal" data-bs-target="#largeModal" readonly> |
|
|
|
<input type="text" class="form-control" id="assetLatitude" th:field="*{assetLatitude}" data-bs-toggle="modal" data-bs-target="#largeModal" readonly autocomplete="off" required> |
|
|
|
</div> |
|
|
|
<div class="col-md-4"> |
|
|
|
<label for="assetGeoLocation" class="form-label">Longitude</label> |
|
|
|
<input type="text" class="form-control" id="assetLongitude" th:field="*{assetLongitude}" data-bs-toggle="modal" data-bs-target="#largeModal" readonly> |
|
|
|
<input type="text" class="form-control" id="assetLongitude" th:field="*{assetLongitude}" data-bs-toggle="modal" data-bs-target="#largeModal" readonly autocomplete="off" required> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- Large Modal --> |
|
|
|
|