aboutsummaryrefslogtreecommitdiff
path: root/juick-spring-www/src/main/webapp/WEB-INF/templates/views/partial/blog_postform.html
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-12-12 22:41:10 +0700
committerGravatar Vitaly Takmazov2016-12-12 22:49:47 +0300
commitc0831038bd7bde32df5af8fb851d210daeccc853 (patch)
tree7a29aec0a4620e5d6b3cfd733f2219f09da6e5f6 /juick-spring-www/src/main/webapp/WEB-INF/templates/views/partial/blog_postform.html
parent353bfb2556ab2288126e448668839cf8b8434fc1 (diff)
i18n for pages
Diffstat (limited to 'juick-spring-www/src/main/webapp/WEB-INF/templates/views/partial/blog_postform.html')
-rw-r--r--juick-spring-www/src/main/webapp/WEB-INF/templates/views/partial/blog_postform.html24
1 files changed, 13 insertions, 11 deletions
diff --git a/juick-spring-www/src/main/webapp/WEB-INF/templates/views/partial/blog_postform.html b/juick-spring-www/src/main/webapp/WEB-INF/templates/views/partial/blog_postform.html
index 804605dd..df2caf7b 100644
--- a/juick-spring-www/src/main/webapp/WEB-INF/templates/views/partial/blog_postform.html
+++ b/juick-spring-www/src/main/webapp/WEB-INF/templates/views/partial/blog_postform.html
@@ -1,12 +1,14 @@
-<form action="/post" method="post" enctype="multipart/form-data">
- <section id="newmessage">
- <textarea name="body" placeholder="Новое сообщение..."></textarea>
- <div>
- <input type="text" class="img" name="img" placeholder="Ссылка на изображение (JPG/PNG, до 10Мб)" style="margin-bottom: 8pt"/> или <a
- href="#">загрузить</a><br/>
+<div th:if="${#authorization.expression('hasRole(''ROLE_USER'')')}" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
+ <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="Теги (через пробел)"/><br/>
- <input type="submit" class="subm" value="Отправить"/>
- </div>
- </section>
-</form> \ No newline at end of file
+ <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> \ No newline at end of file