#96 project line fragment added
This commit is contained in:
parent
ca3e87a8c5
commit
a89d93a9b0
@ -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>
|
@ -22,6 +22,7 @@
|
|||||||
<form id="project-form" method="post" th:action="@{'/projects/project?id='+ *{id == null ? '' : id} + ''}"
|
<form id="project-form" method="post" th:action="@{'/projects/project?id='+ *{id == null ? '' : id} + ''}"
|
||||||
th:object="${projectDto}">
|
th:object="${projectDto}">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-9 col-sm-12">
|
<div class="col-md-9 col-sm-12">
|
||||||
<th:block>
|
<th:block th:each="project : ${projects}">
|
||||||
<div/>
|
<div th:replace="projects/fragments/projectLineFragment :: projectLine(project=${project})"/>
|
||||||
</th:block>
|
</th:block>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3 col-sm-12">
|
<div class="col-md-3 col-sm-12">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user