Added a config page
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr" dir="ltr">
|
||||
<head>
|
||||
<div th:replace="~{html-head}"/>
|
||||
<link rel="stylesheet" th:href="@{/css/grid.css}"/>
|
||||
<script th:src="@{/js/jquery-4.0.0.min.js}" type="text/javascript"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/sockjs-client/1.6.1/sockjs.min.js" integrity="sha512-1QvjE7BtotQjkq8PxLeF6P46gEpBRXuskzIVgjFpekzFVF4yjRgrQvTG1MTOJ3yQgvTteKAcO7DSZI92+u/yZw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/stomp.js/2.3.3/stomp.min.js" integrity="sha512-iKDtgDyTHjAitUDdLljGhenhPwrbBfqTKWO1mkhSFH3A7blITC9MhYon6SjnMhp4o0rADGw9yAC6EW4t5a4K3g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||
<script th:src="@{/js/grid.js}" type="text/javascript"></script>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<form method="POST"
|
||||
action="" th:object="${gridConfig}">
|
||||
<ul th:if="${#fields.hasErrors('global')}">
|
||||
<li th:each="error : ${#fields.errors('global')}" th:text="${error}">error</li>
|
||||
</ul>
|
||||
<label th:field="maxHint" for="field-max-hint">Maximum number of hints</label>
|
||||
<input th:field="*{maxHint}" id="field-max-hint"/> <br/>
|
||||
<label th:field="availableHintWordCountStr" for="field-available-hint-word-count">Available hint's word counts<label>
|
||||
<input th:field="*{availableHintWordCountStr}" id="field-available-hint-word-count"/> <br/>
|
||||
<label th:field="oneMoreGuess" for="field-one-more-guess">Can do one more guess than hint word count</label>
|
||||
<input type="checkbox" th:field="*{oneMoreGuess}" id="field-one-more-guess"/> <br/>
|
||||
<label th:field="hintMaxLength" for="field-hint-max-length">Maximum length of hint words</label>
|
||||
<input th:field="*{hintMaxLength}" id="field-hint-max-length"/> <br/>
|
||||
<label th:field="endGuessing" for="field-end-guessing">Can press end guessing before the number of words</label>
|
||||
<input type="checkbox" th:field="*{endGuessing}" id="field-end-guessing"/> <br/>
|
||||
<label th:field="onlyOneGreenGreen" for="field-only-one-green-green">Green-Green cards only have to be pressed by one side</label>
|
||||
<input type="checkbox" th:field="*{onlyOneGreenGreen}" id="field-only-one-green-green"/> <br/>
|
||||
<label th:field="suddenDeath" for="field-sudden-death">Before losing beccause no more hints, goes to sudden death</label>
|
||||
<input type="checkbox" th:field="*{suddenDeath}" id="field-sudden-death"/> <br/>
|
||||
<label th:field="hintsInARow" for="field-hints-in-a-row">Someone can propose two hints in a row</label>
|
||||
<input type="checkbox" th:field="*{hintsInARow}" id="field-hints-in-a-row"/> <br/>
|
||||
<input type="submit" value="Change config" />
|
||||
</form>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user