|
| 1 | +<%@ page session="false" %> |
1 | 2 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
2 | 3 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
3 | 4 | <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> |
|
11 | 12 |
|
12 | 13 | <div class="jumbotron"> |
13 | 14 | <div class="container"> |
14 | | - <div class="shadow"> |
15 | | - <h3><spring:message code="meals.title"/></h3> |
| 15 | + <h3><spring:message code="meals.title"/></h3> |
16 | 16 |
|
17 | | - <div class="view-box"> |
18 | | - <div class="row"> |
19 | | - <div class="col-sm-7"> |
| 17 | + <div class="row"> |
| 18 | + <div class="col-sm-7"> |
20 | 19 | <div class="panel panel-default"> |
21 | 20 | <div class="panel-body"> |
22 | 21 | <form class="form-horizontal" id="filter"> |
|
61 | 60 | </a> |
62 | 61 | </div> |
63 | 62 | </div> |
64 | | - </div> |
65 | | - </div> |
66 | | - <a class="btn btn-primary" onclick="add()"> |
67 | | - <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> |
68 | | - <spring:message code="common.add"/> |
69 | | - </a> |
70 | | - <table class="table table-striped display" id="datatable"> |
71 | | - <thead> |
72 | | - <tr> |
73 | | - <th><spring:message code="meals.dateTime"/></th> |
74 | | - <th><spring:message code="meals.description"/></th> |
75 | | - <th><spring:message code="meals.calories"/></th> |
76 | | - <th></th> |
77 | | - <th></th> |
78 | | - </tr> |
79 | | - </thead> |
80 | | - <c:forEach items="${meals}" var="meal"> |
81 | | - <jsp:useBean id="meal" scope="page" type="ru.javawebinar.topjava.to.MealWithExceed"/> |
82 | | - <tr class="${meal.exceed ? 'exceeded' : 'normal'}"> |
83 | | - <td> |
84 | | - <%--<fmt:parseDate value="${meal.dateTime}" pattern="y-M-dd'T'H:m" var="parsedDate"/>--%> |
85 | | - <%--<fmt:formatDate value="${parsedDate}" pattern="yyyy.MM.dd HH:mm" />--%> |
86 | | - ${fn:formatDateTime(meal.dateTime)} |
87 | | - </td> |
88 | | - <td>${meal.description}</td> |
89 | | - <td>${meal.calories}</td> |
90 | | - <td><a> |
91 | | - <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> |
92 | | - </a></td> |
93 | | - <td><a onclick="deleteRow(${meal.id})"> |
94 | | - <span class="glyphicon glyphicon-remove" aria-hidden="true"></span> |
95 | | - </a></td> |
96 | | - </tr> |
97 | | - </c:forEach> |
98 | | - </table> |
99 | 63 | </div> |
100 | 64 | </div> |
| 65 | + <a class="btn btn-primary" onclick="add()"> |
| 66 | + <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> |
| 67 | + <spring:message code="common.add"/> |
| 68 | + </a> |
| 69 | + <table class="table table-striped display" id="datatable"> |
| 70 | + <thead> |
| 71 | + <tr> |
| 72 | + <th><spring:message code="meals.dateTime"/></th> |
| 73 | + <th><spring:message code="meals.description"/></th> |
| 74 | + <th><spring:message code="meals.calories"/></th> |
| 75 | + <th></th> |
| 76 | + <th></th> |
| 77 | + </tr> |
| 78 | + </thead> |
| 79 | + <c:forEach items="${meals}" var="meal"> |
| 80 | + <jsp:useBean id="meal" scope="page" type="ru.javawebinar.topjava.to.MealWithExceed"/> |
| 81 | + <tr class="${meal.exceed ? 'exceeded' : 'normal'}"> |
| 82 | + <td> |
| 83 | + <%--<fmt:parseDate value="${meal.dateTime}" pattern="y-M-dd'T'H:m" var="parsedDate"/>--%> |
| 84 | + <%--<fmt:formatDate value="${parsedDate}" pattern="yyyy.MM.dd HH:mm" />--%> |
| 85 | + ${fn:formatDateTime(meal.dateTime)} |
| 86 | + </td> |
| 87 | + <td>${meal.description}</td> |
| 88 | + <td>${meal.calories}</td> |
| 89 | + <td><a> |
| 90 | + <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> |
| 91 | + </a></td> |
| 92 | + <td><a onclick="deleteRow(${meal.id})"> |
| 93 | + <span class="glyphicon glyphicon-remove" aria-hidden="true"></span> |
| 94 | + </a></td> |
| 95 | + </tr> |
| 96 | + </c:forEach> |
| 97 | + </table> |
101 | 98 | </div> |
102 | 99 | </div> |
103 | 100 | <jsp:include page="fragments/footer.jsp"/> |
|
0 commit comments