|
|
@ -1,15 +1,15 @@
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html xmlns:th="http://www.thymeleaf.org">
|
|
|
|
<html xmlns:th="http://www.thymeleaf.org">
|
|
|
|
<head th:replace="fragments :: head(title=~{::title/text()})">
|
|
|
|
<head th:replace="fragments :: head(title=~{::title/text()})">
|
|
|
|
<title>Messages : Create</title>
|
|
|
|
<title th:text="#{form.title}">Messages : Create</title>
|
|
|
|
</head>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
|
|
|
<div class="container">
|
|
|
|
<div th:replace="fragments :: navbar"></div>
|
|
|
|
<div th:replace="fragments :: navbar"></div>
|
|
|
|
<div class="float-right mt-2">
|
|
|
|
<div class="float-right mt-2">
|
|
|
|
<a class="btn btn-primary btn-sm" th:href="@{/}" href="messages.html"> Messages </a>
|
|
|
|
<a class="btn btn-primary btn-sm" th:href="@{/}" href="messages.html" th:text="#{form.messages}"> Messages </a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<h4 class="float-left mt-2">Messages : Create</h4>
|
|
|
|
<h4 class="float-left mt-2" th:text="#{form.title}">Messages : Create</h4>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
<form id="messageForm" th:action="@{/(form)}" th:object="${message}" action="#" method="post">
|
|
|
|
<form id="messageForm" th:action="@{/(form)}" th:object="${message}" action="#" method="post">
|
|
|
|
<div th:if="${#fields.hasErrors('*')}" class="alert alert-danger" role="alert">
|
|
|
|
<div th:if="${#fields.hasErrors('*')}" class="alert alert-danger" role="alert">
|
|
|
@ -17,14 +17,14 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<input type="hidden" th:field="*{id}" th:class="${'form-control' + (#fields.hasErrors('id') ? ' is-invalid' : '')}"/>
|
|
|
|
<input type="hidden" th:field="*{id}" th:class="${'form-control' + (#fields.hasErrors('id') ? ' is-invalid' : '')}"/>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="summary">Summary</label>
|
|
|
|
<label for="summary" th:text="#{form.summary}">Summary</label>
|
|
|
|
<input type="text" th:field="*{summary}" th:class="${'form-control' + (#fields.hasErrors('summary') ? ' is-invalid' : '')}">
|
|
|
|
<input type="text" th:field="*{summary}" th:class="${'form-control' + (#fields.hasErrors('summary') ? ' is-invalid' : '')}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="text">Message</label>
|
|
|
|
<label for="text" th:text="#{form.message}">Message</label>
|
|
|
|
<textarea th:field="*{text}" th:class="${'form-control' + (#fields.hasErrors('text') ? ' is-invalid' : '')}"></textarea>
|
|
|
|
<textarea th:field="*{text}" th:class="${'form-control' + (#fields.hasErrors('text') ? ' is-invalid' : '')}"></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-primary">Submit</button>
|
|
|
|
<button type="submit" class="btn btn-primary" th:text="#{form.submit}">Submit</button>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</body>
|
|
|
|