Commit 33aab3c6 authored by sapn1s's avatar sapn1s
Browse files

Edited welcome page design

parent 6f100c33
......@@ -2,16 +2,26 @@
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>Welcome</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>
<h2>Lets create your first calendar!</h2>
<body>
<form action="#" th:action="@{/welcome}" th:object="${calendar}" method="post">
Title:
<div class="form-group" th:classappend="${#fields.hasErrors('*')} ? 'has-error' : ''">
<input type="text" th:field="*{name}" />
<p class="alert alert-danger" th:if="${#fields.hasErrors('name')}" th:errors="*{name}"></p>
</div>
<button class="btn btn-lg btn-primary btn-block" type="submit">Add</button><br>
</form>
<div class="container w-50 ">
<br><br><br> <form action="#" th:action="@{/welcome}" th:object="${calendar}" method="post">
<h2 class="form-signin-heading text-center">Lets create your first calendar!</h2><br>
<h6 class="text-center"> Enter the name of your first calendar:</h6>
<div class="form-group" th:classappend="${#fields.hasErrors('*')} ? 'has-error' : ''">
<input name="name" placeholder="Title" type="text" th:field="*{name}" class="form-control" autofocus="true"/><br>
<p class="alert alert-danger" th:if="${#fields.hasErrors('name')}" th:errors="*{name}"></p>
</div>
<button class="btn btn-lg btn-primary btn-block" type="submit">Add</button><br>
</form>
</div>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment