Added view for error page.

This commit is contained in:
Alexey Zinchenko 2019-05-27 10:33:24 +03:00
parent c9860f2e15
commit 3b5da6ff81
4 changed files with 26 additions and 0 deletions

View File

@ -48,3 +48,6 @@ common.deleteConfirmation.label = Are you sure to delete?
error.finishedOn.finishedBeforeStarted = value must be after starting date
error.finishedOn.incompatibleStatus = order cannot be finished until it isn't accepted by client
error.orderStatus.acceptedButNotFinished = order cannot be accepter until it isn't finished
http.error.title = Something went wrong.
http.error.message = Please, go to the home page or contact administrator.

View File

@ -48,3 +48,6 @@ common.deleteConfirmation.label = Are you sure to delete?
error.finishedOn.finishedBeforeStarted = value must be after starting date
error.finishedOn.incompatibleStatus = order cannot be finished until it isn't accepted by client
error.orderStatus.acceptedButNotFinished = order cannot be accepter until it isn't finished
http.error.title = Something went wrong.
http.error.message = Please, go to the home page or contact administrator.

View File

@ -48,3 +48,6 @@ common.deleteConfirmation.label = Вы действительно хотите
error.finishedOn.finishedBeforeStarted = дата окончания должна быть после даты начала
error.finishedOn.incompatibleStatus = заказ не может быть закончен если клиент еще не принял его
error.orderStatus.acceptedButNotFinished = заказ не может быть принят пока он не закончен
http.error.title = Что-то пошло не так.
http.error.message = Пожалуйста, вернитесь на домашнюю страницу или обратитесь к администратору.

View File

@ -0,0 +1,17 @@
<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{main}">
<head>
<title th:text="#{default.title}"></title>
</head>
<body>
<div layout:fragment="header">
<h1 th:text="#{home.title.label}"></h1>
</div>
<div layout:fragment="content">
<h2 th:text="#{http.error.title}">404 Not Found</h2>
<p th:text="#{http.error.message}"></p>
</div>
</body>
</html>