#96 project line fragment added

This commit is contained in:
Васин Антон 2019-04-17 14:01:45 +03:00
parent ca3e87a8c5
commit a89d93a9b0
3 changed files with 21 additions and 2 deletions

View File

@ -0,0 +1,18 @@
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head th:fragment="headerfiles">
<meta charset="UTF-8"/>
</head>
<body>
<div th:fragment="projectLine (project)" class="row text-left project-row" style="background-color: white;">
<div class="col">
<span/>
<a th:href="@{'project?id='+${project.id}}">
<span class="h6" th:text="${project.title}"/>
<span class="text-muted" th:text="${project.comment}"/>
</a>
<input class="id-class" type="hidden" th:value="${project.id}"/>
</div>
</div>
</body>
</html>

View File

@ -22,6 +22,7 @@
<form id="project-form" method="post" th:action="@{'/projects/project?id='+ *{id == null ? '' : id} + ''}"
th:object="${projectDto}">
<div class="row">
<div class="clearfix"></div>
<div class="col-lg-12">
<div class="form-group">

View File

@ -18,8 +18,8 @@
</div>
<div class="row">
<div class="col-md-9 col-sm-12">
<th:block>
<div/>
<th:block th:each="project : ${projects}">
<div th:replace="projects/fragments/projectLineFragment :: projectLine(project=${project})"/>
</th:block>
</div>
<div class="col-md-3 col-sm-12">