Merge pull request 'gui: Create skill button' (#27) from 3002833/Backend:main into main

Reviewed-on: Maradona/Backend#27
pull/1/head
David Hess 2024-11-03 18:55:58 +01:00
commit 4058c61315
2 changed files with 20 additions and 5 deletions

Binary file not shown.

View File

@ -24,7 +24,12 @@
</div>
<div class="d-flex justify-content-between align-items-center mb-4">
<h2 class="mb-0">Skills</h2>
<a th:href="@{/skills/add}" class="btn-create-project">Add Skill</a>
<div>
<a th:href="@{/skills/add}" class="btn-create-project">Add Skill</a>
<a th:href="@{/skills/create}" class="btn-create-project"
>Create Skill</a
>
</div>
</div>
<div class="row">
<div class="col-12" th:each="skillDto : ${skillData}">
@ -40,10 +45,20 @@
<div class="card-text">
<ul>
<li th:each="pair : ${skillDto.secondarySkills}">
<span th:text="${pair.first.description}">Secondary Skill</span>
<span th:text="${pair.first.description}"
>Secondary Skill</span
>
<span class="stars">
<span th:each="i : ${#numbers.sequence(1, pair.second)}" class="star">&#9733;</span>
<span th:each="i : ${#numbers.sequence(pair.second + 1, 5)}" class="star">&#9734;</span>
<span
th:each="i : ${#numbers.sequence(1, pair.second)}"
class="star"
>&#9733;</span
>
<span
th:each="i : ${#numbers.sequence(pair.second + 1, 5)}"
class="star"
>&#9734;</span
>
</span>
</li>
</ul>
@ -69,4 +84,4 @@
<div th:replace="~{_footer :: footer}"></div>
</div>
</body>
</html>
</html>