edit files
This commit is contained in:
@@ -17,3 +17,9 @@ CREATE TABLE IF NOT EXISTS spbu (
|
||||
|
||||
ALTER TABLE spbu
|
||||
MODIFY status ENUM('yes','no') NOT NULL DEFAULT 'no';
|
||||
|
||||
-- Insert Dummy Data for Testing
|
||||
INSERT INTO spbu (nama_spbu, no_wa, status, latitude, longitude) VALUES
|
||||
('SPBU Ahmad Yani', '081234567890', 'yes', -0.026300, 109.342500),
|
||||
('SPBU Tanjungpura', '089876543210', 'no', -0.018500, 109.331500),
|
||||
('SPBU Sungai Jawi', '085211223344', 'yes', -0.011200, 109.320500);
|
||||
|
||||
+2
-2
@@ -148,7 +148,7 @@ map.on('click', function(e) {
|
||||
const lat = e.latlng.lat;
|
||||
const lng = e.latlng.lng;
|
||||
|
||||
const form =
|
||||
const form = `
|
||||
<form id="formInput">
|
||||
Nama SPBU:<br>
|
||||
<input type="text" name="nama_spbu" required><br>
|
||||
@@ -167,7 +167,7 @@ map.on('click', function(e) {
|
||||
|
||||
<button type="submit">Simpan</button>
|
||||
</form>
|
||||
;
|
||||
`;
|
||||
|
||||
L.popup().setLatLng(e.latlng).setContent(form).openOn(map);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user