Skip to content

Commit e9f75d8

Browse files
committed
Adding source files for web app
1 parent 1472665 commit e9f75d8

File tree

7 files changed

+201
-19
lines changed

7 files changed

+201
-19
lines changed
Loading
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!DOCTYPE html>
2+
<html xmlns:th="http://www.thymeleaf.org">
3+
<head lang="en">
4+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
5+
<link href="http://cdn.jsdelivr.net/webjars/bootstrap/3.3.4/css/bootstrap.min.css"
6+
th:href="@{/webjars/bootstrap/3.3.4/css/bootstrap.min.css}"
7+
rel="stylesheet" media="screen"/>
8+
9+
<script src="http://cdn.jsdelivr.net/webjars/jquery/2.1.4/jquery.min.js"
10+
th:src="@{/webjars/jquery/2.1.4/jquery.min.js}"></script>
11+
12+
<link href="../../static/css/guru.css"
13+
th:href="@{css/guru.css}" rel="stylesheet" media="screen"/>
14+
</head>
15+
<body>
16+
17+
<div class="container">
18+
<div th:fragment="header">
19+
<nav class="navbar navbar-default">
20+
<div class="container-fluid">
21+
<div class="navbar-header">
22+
<a class="navbar-brand" href="#" th:href="@{/}">Home</a>
23+
<ul class="nav navbar-nav">
24+
<li><a href="#" th:href="@{/products}">Products</a></li>
25+
<li><a href="#" th:href="@{/products/new}">Create Product</a></li>
26+
</ul>
27+
28+
</div>
29+
</div>
30+
</nav>
31+
32+
<div class="jumbotron">
33+
<div class="row text-center">
34+
<div class="">
35+
<h2>Spring Framework Guru</h2>
36+
37+
<h3>Spring Boot Web App</h3>
38+
</div>
39+
</div>
40+
<div class="row text-center">
41+
<img src="../../static/images/NewBannerBOOTS_2.png" width="400"
42+
th:src="@{/images/NewBannerBOOTS_2.png}"/>
43+
</div>
44+
</div>
45+
</div>
46+
</div>
47+
</body>
48+
</html>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html xmlns:th="http://www.thymeleaf.org">
3+
<head lang="en" th:fragment="head">
4+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
5+
<link href="http://cdn.jsdelivr.net/webjars/bootstrap/3.3.4/css/bootstrap.min.css"
6+
th:href="@{/webjars/bootstrap/3.3.4/css/bootstrap.min.css}"
7+
rel="stylesheet" media="screen" />
8+
9+
<script src="http://cdn.jsdelivr.net/webjars/jquery/2.1.4/jquery.min.js"
10+
th:src="@{/webjars/jquery/2.1.4/jquery.min.js}"></script>
11+
12+
<link href="../static/css/guru.css"
13+
th:href="@{/css/guru.css}" rel="stylesheet" media="screen"/>
14+
</head>
15+
<body>
16+
17+
</body>
18+
</html>
Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,15 @@
11
<!DOCTYPE html>
2-
<html xmlns:th="http://www.thymeleaf.org">
2+
<html>
33
<head lang="en">
44

55
<title>Spring Framework Guru</title>
6-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
76

8-
<link href="http://cdn.jsdelivr.net/webjars/bootstrap/3.3.4/css/bootstrap.min.css"
9-
th:href="@{/webjars/bootstrap/3.3.4/css/bootstrap.min.css}"
10-
rel="stylesheet" media="screen" />
11-
12-
<script src="http://cdn.jsdelivr.net/webjars/jquery/2.1.4/jquery.min.js"
13-
th:src="@{/webjars/jquery/2.1.4/jquery.min.js}"></script>
14-
15-
<link href="../static/css/guru.css"
16-
th:href="@{css/guru.css}" rel="stylesheet" media="screen"/>
7+
<!--/*/ <th:block th:include="fragments/headerinc :: head"></th:block> /*/-->
178
</head>
189
<body>
19-
<div class="container">
20-
<div class="jumbotron">
21-
<img src="../static/images/FBcover1200x628.png" width="1000"
22-
th:src="@{images/FBcover1200x628.png}"/>
23-
<h1>Hello</h1>
2410

25-
<h2>Fellow Spring Framework Gurus!!!</h2>
26-
</div>
11+
<div class="container">
12+
<!--/*/ <th:block th:include="fragments/header :: header"></th:block> /*/-->
2713
</div>
28-
2914
</body>
3015
</html>
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<!DOCTYPE html>
2+
<html xmlns:th="http://www.thymeleaf.org">
3+
<head lang="en">
4+
5+
<title>Spring Framework Guru</title>
6+
7+
<!--/*/ <th:block th:include="fragments/headerinc :: head"></th:block> /*/-->
8+
</head>
9+
<body>
10+
<div class="container">
11+
<!--/*/ <th:block th:include="fragments/header :: header"></th:block> /*/-->
12+
13+
<h2>Product Details</h2>
14+
<div>
15+
<form class="form-horizontal" th:object="${product}" th:action="@{/product}" method="post">
16+
<input type="hidden" th:field="*{id}"/>
17+
<input type="hidden" th:field="*{version}"/>
18+
<div class="form-group">
19+
<label class="col-sm-2 control-label">Product Id:</label>
20+
<div class="col-sm-10">
21+
<input type="text" class="form-control" th:field="*{productId}"/>
22+
</div>
23+
</div>
24+
<div class="form-group">
25+
<label class="col-sm-2 control-label">Description:</label>
26+
<div class="col-sm-10">
27+
<input type="text" class="form-control" th:field="*{description}"/>
28+
</div>
29+
</div>
30+
<div class="form-group">
31+
<label class="col-sm-2 control-label">Price:</label>
32+
<div class="col-sm-10">
33+
<input type="text" class="form-control" th:field="*{price}"/>
34+
</div>
35+
</div>
36+
<div class="form-group">
37+
<label class="col-sm-2 control-label">Image Url:</label>
38+
<div class="col-sm-10">
39+
<input type="text" class="form-control" th:field="*{imageUrl}"/>
40+
</div>
41+
</div>
42+
<div class="row">
43+
<button type="submit" class="btn btn-default">Submit</button>
44+
</div>
45+
</form>
46+
</div>
47+
</div>
48+
49+
</body>
50+
</html>
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<!DOCTYPE html>
2+
<html xmlns:th="http://www.thymeleaf.org">
3+
<head lang="en">
4+
5+
<title>Spring Framework Guru</title>
6+
7+
<!--/*/ <th:block th:include="fragments/headerinc :: head"></th:block> /*/-->
8+
</head>
9+
<body>
10+
<div class="container">
11+
<!--/*/ <th:block th:include="fragments/header :: header"></th:block> /*/-->
12+
<div th:if="${not #lists.isEmpty(products)}">
13+
<h2>Product List</h2>
14+
<table class="table table-striped">
15+
<tr>
16+
<th>Id</th>
17+
<th>Product Id</th>
18+
<th>Description</th>
19+
<th>Price</th>
20+
<th>View</th>
21+
<th>Edit</th>
22+
</tr>
23+
<tr th:each="product : ${products}">
24+
<td th:text="${product.id}"><a href="/product/${product.id}">Id</a></td>
25+
<td th:text="${product.productId}">Product Id</td>
26+
<td th:text="${product.description}">descirption</td>
27+
<td th:text="${product.price}">price</td>
28+
<td><a th:href="${ '/product/' + product.id}">View</a></td>
29+
<td><a th:href="${'/product/edit/' + product.id}">Edit</a></td>
30+
</tr>
31+
</table>
32+
33+
</div>
34+
</div>
35+
36+
</body>
37+
</html>
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<!DOCTYPE html>
2+
<html xmlns:th="http://www.thymeleaf.org">
3+
<head lang="en">
4+
5+
<title>Spring Framework Guru</title>
6+
7+
<!--/*/ <th:block th:include="fragments/headerinc :: head"></th:block> /*/-->
8+
</head>
9+
<body>
10+
<div class="container">
11+
<!--/*/ <th:block th:include="fragments/header :: header"></th:block> /*/-->
12+
13+
<h2>Product Details</h2>
14+
<div>
15+
<form class="form-horizontal">
16+
<div class="form-group">
17+
<label class="col-sm-2 control-label">Product Id:</label>
18+
<div class="col-sm-10">
19+
<p class="form-control-static" th:text="${product.id}">Product Id</p></div>
20+
</div>
21+
<div class="form-group">
22+
<label class="col-sm-2 control-label">Description:</label>
23+
<div class="col-sm-10">
24+
<p class="form-control-static" th:text="${product.description}">description</p>
25+
</div>
26+
</div>
27+
<div class="form-group">
28+
<label class="col-sm-2 control-label">Price:</label>
29+
<div class="col-sm-10">
30+
<p class="form-control-static" th:text="${product.price}">Priceaddd</p>
31+
</div>
32+
</div>
33+
<div class="form-group">
34+
<label class="col-sm-2 control-label">Image Url:</label>
35+
<div class="col-sm-10">
36+
<p class="form-control-static" th:text="${product.imageUrl}">url....</p>
37+
</div>
38+
</div>
39+
</form>
40+
</div>
41+
</div>
42+
43+
</body>
44+
</html>

0 commit comments

Comments
 (0)