This commit is contained in:
richonguzman 2024-09-30 17:18:23 -03:00
parent 04635cff57
commit cf506ee058
7 changed files with 36 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -110,6 +110,42 @@ function loadSettings(settings) {
value="${beacons.comment}">
<label for="beacons.${index}.comment">Comment</label>
</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);
});

Binary file not shown.

Binary file not shown.