Commit 605fb694 authored by ourfbht's avatar ourfbht
Browse files

fixed an issue with 'your propositions'

parent 25259540
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@
                            <p th:text="${help.comment}"></p>
                            <p th:text="${#dates.format(help.dateBegin, 'dd-MM-yyyy HH:mm')}"></p>
                            <p th:text="${#dates.format(help.dateEnd, 'dd-MM-yyyy HH:mm')}"></p>
                            <p th:text="${help.mentor.firstName}"></p>
                            <p th:text="${help.mentor.id}"></p>
                            <p th:if="${help.poulain != null}" th:text=" ${help.poulain.id}"></p>
                            <p th:unless="${help.poulain != null}">Personne</p>
                        </div>
+0 −31
Original line number Diff line number Diff line
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

    <head>
        <meta charset="ISO-8859-1">
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/css/materialize.min.css">
        <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/js/materialize.min.js"></script>
        <title>MentorArc</title>
    </head>

    <body>
        <header th:insert="fragments/nav.html :: header"> </header>

        <table class="table">
            <thead>
                <tr>
                    <th scope="col">Id</th>
                    <th scope="col">FirstName</th>
                    <th scope="col">LastName</th>
                </tr>
            </thead>
            <tbody>
                <tr th:each="mentor: ${mentors}">
                    <td th:text="${mentor.id}" />
                    <td th:text="${mentor.lastName}" />
                    <td th:text="${mentor.firstName}" />
                </tr>
            </tbody>
        </table>
    </body>
</html>
+0 −42
Original line number Diff line number Diff line
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

    <head>
        <meta charset="ISO-8859-1">
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/css/materialize.min.css">
        <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/js/materialize.min.js"></script>
        <title>MentorArc</title>
    </head>

    <body>

    <header th:insert="fragments/nav.html :: header"> </header>

    <h1>All Poulain</h1>
        <table class="table">
            <thead>
                <tr>
                    <th scope="col">Id</th>
                    <th scope="col">FirstName</th>
                    <th scope="col">LastName</th>
                    <th scope="col">helpRequest</th>
                    <th scope="col">IdHelpRequests</th>
                </tr>
            </thead>
            <tbody>
                <tr th:each="poulain: ${poulains}">
                    <td th:text="${poulain.id}"/>
                    <td th:text="${poulain.firstName}" />
                    <td th:text="${poulain.lastName}" />
                    <td th:text="${poulain.helpRequests}" />
                    <div th:if="${not #sets.isEmpty(poulain.helpRequests)}">	
                        <td th:each="help :${poulain.helpRequests}">
                            <p th:text="${help.id}"/>		
                        </td>	
                    </div>
                </tr>
            </tbody>
        </table>
    </body>

</html>
+0 −19
Original line number Diff line number Diff line
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="ISO-8859-1">
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/css/materialize.min.css">
        <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/js/materialize.min.js"></script>
        <title>MentorArc</title>
    </head>
    <body>
        <header th:insert="fragments/nav.html :: header"> </header>

        <h1>Form Poulain</h1>
        <form action="#" th:action="@{/insertPoulain}" th:object="${poulain}" method="post">
            <p>Poulain Firstname: <input type="text" th:field="*{firstName}" /></p>
            <p>Poulain Lastname: <input type="text" th:field="*{lastName}" /></p>
            <p><input type="submit" value="Submit" /> <input type="reset" value="Reset" /></p>
        </form>
    </body>
</html>