-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathadd.html
127 lines (118 loc) · 5.65 KB
/
add.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html lang="en" th:lang="${#locale.language == 'ru' ? 'ru' : 'en'}"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org"
xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="robots" content="noindex" />
<title th:text="|#{t_my_stamps}: #{t_add_country}|">My stamps: add a country</title>
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.ico" th:href="${FAVICON_ICO}" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" th:href="${BOOTSTRAP_CSS}" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/usrz/bootstrap-languages@3ac2a3d2b27ac43a471cd99e79d378a03b2c6b5f/languages.min.css" th:href="${BOOTSTRAP_LANGUAGE}" />
<link rel="stylesheet" href="../../static/styles/main.css" th:href="${MAIN_CSS}" />
</head>
<body>
<div class="container-fluid">
<div class="row" id="header">
<div id="logo" class="col-sm-9 vcenter">
<a href="../site/index.html" th:href="'/'" th:text="#{t_my_stamps}">My stamps</a>
</div><!--
--><div class="col-sm-1 vcenter"
th:with="lang=${#locale.language == 'en' ? 'ru' : 'en'},langName=${#locale.language == 'en' ? 'Русский' : 'English'}">
<span class="lang-xs" lang="ru"
th:lang="${lang}"></span>
<a href="javascript:void(0)" hreflang="ru"
th:href="|?lang=${lang}|" th:hreflang="${lang}" th:text="${langName}">Русский</a>
</div><!--
--><div id="user_bar" class="col-sm-2 vcenter">
<ul class="list-unstyled">
<li sec:authorize="isAuthenticated()">
<i class="glyphicon glyphicon-user"></i>
<a sec:authentication="principal.userName"
href="../collection/info.html"
title="Open my collection"
th:title="#{t_open_my_collection}"
th:href="@{${INFO_COLLECTION_PAGE}(slug=${#authentication.principal.userCollectionSlug})}">
John Doe
</a>
</li>
<!--/*/
<li sec:authorize="isAnonymous()">
<a href="../account/auth.html" th:href="@{${AUTHENTICATION_PAGE}}" th:text="#{t_enter}">Sign in</a>
</li>
/*/-->
<li sec:authorize="isAuthenticated()">
<form id="logout-form" method="get" action="../site/index.html" class="no-margin" th:method="post" th:action="@{${LOGOUT_PAGE}}">
<i class="glyphicon glyphicon-share"></i> <input type="submit" value="Sign out" class="btn btn-link no-padding" th:value="#{t_logout}" />
</form>
</li>
<!--/*/
<li sec:authorize="isAnonymous()">
<a href="../account/register.html" th:href="@{${REGISTRATION_PAGE}}" th:text="#{t_register}">Register</a>
</li>
/*/-->
</ul>
</div>
</div>
<div class="row">
<div id="content" class="col-sm-6 col-sm-offset-3" th:with="add_country=#{t_add_country}">
<h3 th:text="${#strings.capitalize(add_country)}">
Add country
</h3>
<div class="hint text-center">
<small th:with="redAsterisk='<span class="required_field">*</span>'">
<span class="hint_item" th:utext="#{t_required_fields_legend(${redAsterisk})}">
All fields marked by asterisk (<span class="required_field">*</span>) must be filled.
</span>
</small>
</div>
<form id="add-country-form" method="post" class="form-horizontal" action="info.html"
th:action="@{${ADD_COUNTRY_PAGE}}" th:object="${addCountryForm}">
<div class="form-group" th:classappend="${#fields.hasErrors('name') ? 'has-error' : ''}">
<label for="name" class="control-label col-sm-4">
<span th:remove="tag" th:text="#{t_name_in_english}">
Name (in English)
</span>
<span class="required_field">*</span>
</label>
<div class="col-sm-5">
<input id="name" type="text" class="form-control" required="required" th:field="*{name}" />
<!--/*/
<span id="name.errors" class="help-block" th:if="${#fields.hasErrors('name')}" th:each="error : ${#fields.errors('name')}" th:text="${error}"></span>
/*/-->
</div>
</div>
<div class="form-group" th:classappend="${#fields.hasErrors('nameRu') ? 'has-error' : ''}">
<label for="nameRu" class="control-label col-sm-4" th:text="#{t_name_in_russian}">
Name (in Russian)
</label>
<div class="col-sm-5">
<input id="nameRu" type="text" class="form-control" th:field="*{nameRu}" />
<!--/*/
<span id="nameRu.errors" class="help-block" th:if="${#fields.hasErrors('nameRu')}" th:each="error : ${#fields.errors('nameRu')}" th:text="${error}"></span>
/*/-->
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-4 col-sm-5">
<input type="submit" class="btn btn-primary" value="Add" th:value="#{t_add}" />
</div>
</div>
</form>
</div>
</div>
<div class="row">
<footer class="col-sm-12 text-right">
<i class="glyphicon glyphicon-envelope"></i>
<a href="mailto:[email protected]" title="Write e-mail" th:href="|mailto:#{t_site_author_email}|" th:title="#{t_write_email}" th:text="#{t_site_author_name}">Slava Semushin</a>, 2009-2020
</footer>
</div>
</div>
<!-- Placed at the end of the document so the pages load faster -->
<script src="http://yandex.st/jquery/1.9.1/jquery.min.js" th:src="${JQUERY_JS}"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" th:src="${BOOTSTRAP_JS}"></script>
</body>
</html>