Add single-calc-button for individual players. Add settings modal-html.
This commit is contained in:
47
templates/modals/settings.html
Normal file
47
templates/modals/settings.html
Normal file
@@ -0,0 +1,47 @@
|
||||
{{ define "settings" }}
|
||||
|
||||
<div class="modal fade" id="settingsModal" tabindex="-1">
|
||||
<div class="modal-dialog modal-dialog-centered">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h1 class="modal-title fs-3 text-primary fw-bold" id="settingsModalLabel">Persönliche Einstellungen</h1>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-auto">
|
||||
<label class="col-form-label col-form-label-lg" for="games">Aktuelles Spiel:</label>
|
||||
</div>
|
||||
<div class="col">
|
||||
<select class="form-select form-select-lg" id="games">
|
||||
<!-- fill dynamically with available games -->
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-check form-check-inline mt-3 fs-5">
|
||||
<input class="form-check-input" type="checkbox" id="settingsSquadColors" value="squadColors" checked>
|
||||
<label class="form-check-label" for="settingsSquadColors">Squad-Farben aktivieren</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline mt-3 fs-5">
|
||||
<input class="form-check-input" type="checkbox" id="settingsCalcMedian" value="calcMedian">
|
||||
<label class="form-check-label" for="settingsCalcMedian">Median aktivieren</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline mt-3 fs-5">
|
||||
<input class="form-check-input" type="checkbox" id="settingsUseCache" value="useCache" checked>
|
||||
<label class="form-check-label" for="settingsUseCache">Infantryskill-Cache benutzen (empfohlen)</label>
|
||||
</div>
|
||||
<div class="error-message text-danger fs-5 badge" style="display: none;"></div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="submit" class="btn btn-lg btn-primary">Speichern</button>
|
||||
<button type="button" class="btn btn-lg btn-secondary" data-bs-dismiss="modal">Abbrechen</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script lang="javascript">
|
||||
// TBD
|
||||
</script>
|
||||
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user