blob: a9ed9f5d7b0ab83f39c9da073285f7f573e90256 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<div th:if="${#authorization.expression('isAuthenticated()')}" xmlns:th="http://www.thymeleaf.org">
<form action="/post" th:action="@{/post}" method="post" enctype="multipart/form-data">
<section id="newmessage">
<textarea name="body" placeholder="Новое сообщение..." th:placeholder="#{postForm.newMessage}"></textarea>
<div>
<input type="text" class="img" name="img" placeholder="Ссылка на изображение (JPG/PNG, до 10Мб)" th:placeholder="#{postForm.imageLink}" style="margin-bottom: 8pt"/>
[(#{postForm.orImageUpload})]
<input type="text" class="tags" name="tags" placeholder="Теги (через пробел)" th:placeholder="#{postForm.tags}"/><br/>
<input type="submit" class="subm" value="Отправить" th:value="#{button.send}"/>
</div>
</section>
</form>
</div>
|