casi1
This commit is contained in:
parent
04635cff57
commit
cf506ee058
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -110,6 +110,42 @@ function loadSettings(settings) {
|
||||||
value="${beacons.comment}">
|
value="${beacons.comment}">
|
||||||
<label for="beacons.${index}.comment">Comment</label>
|
<label for="beacons.${index}.comment">Comment</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-floating col-6 col-md-3 px-1 mb-2">
|
||||||
|
<label for="beacons.${index}.gpsEcoMode">GPS Eco Mode</label>
|
||||||
|
<div class="form-check form-switch">
|
||||||
|
<input
|
||||||
|
class="form-check-input"
|
||||||
|
type="checkbox"
|
||||||
|
name="beacons.${index}.gpsEcoMode"
|
||||||
|
id="beacons.${index}.gpsEcoMode"
|
||||||
|
${beacons.gpsEcoMode ? 'checked' : ''}>
|
||||||
|
<label class="form-check-label" for="beacons.${index}.gpsEcoMode"></label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- Switch for Smart Beacon Active -->
|
||||||
|
<div class="form-floating col-6 col-md-3 px-1 mb-2">
|
||||||
|
<label for="beacons.${index}.smartBeaconActive">Smart Beacon Active</label>
|
||||||
|
<div class="form-check form-switch">
|
||||||
|
<input
|
||||||
|
class="form-check-input"
|
||||||
|
type="checkbox"
|
||||||
|
name="beacons.${index}.smartBeaconActive"
|
||||||
|
id="beacons.${index}.smartBeaconActive"
|
||||||
|
${beacons.smartBeaconActive ? 'checked' : ''}>
|
||||||
|
<label class="form-check-label" for="beacons.${index}.smartBeaconActive"></label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Switch for Smart Beacon Setting -->
|
||||||
|
<div class="form-floating col-6 col-md-3 px-1 mb-2">
|
||||||
|
<label for=beacons.${index}.smartBeaconSetting class="form-label">Smart Beacon Setting</label>
|
||||||
|
<select name="beacons.${index}.smartBeaconSetting" id="beacons.${index}.smartBeaconSetting" class="form-control">
|
||||||
|
<option value="0">Human/Runner (Slow Speed)</option>
|
||||||
|
<option value="1">Bicicle (Mid Speed)</option>
|
||||||
|
<option value="2">Car/Motorcycle (Fast Speed)</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
`;
|
`;
|
||||||
beaconContainer.appendChild(beaconElement);
|
beaconContainer.appendChild(beaconElement);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue