- Заменил шаблонизатор Mustache на Freemarker.
https://www.youtube.com/watch?v=8MlXahJXLFg&list=PLU2ftbIeotGpAYRP9Iv2KLIwK36-o_qYk&index=7
This commit is contained in:
15
src/main/resources/templates/parts/login.ftl
Normal file
15
src/main/resources/templates/parts/login.ftl
Normal file
@@ -0,0 +1,15 @@
|
||||
<#macro login path>
|
||||
<form action="${path}" method="post">
|
||||
<div><label> User Name : <input type="text" name="username"/> </label></div>
|
||||
<div><label> Password: <input type="password" name="password"/> </label></div>
|
||||
<div><input type="submit" value="Sign in"/></div>
|
||||
<input type="hidden" name="_csrf" value="${_csrf.token}" />
|
||||
</form>
|
||||
</#macro>
|
||||
|
||||
<#macro logout>
|
||||
<form action="/logout" method="post">
|
||||
<input type="hidden" name="_csrf" value="${_csrf.token}" />
|
||||
<input type="submit" value="Sign Out"/>
|
||||
</form>
|
||||
</#macro>
|
||||
Reference in New Issue
Block a user