Merge pull request 'gui: Updated skill-add' (#32) from 2021323/Backend:main into main

Reviewed-on: Maradona/Backend#32
pull/1/head
Piotr Jakubiak 2024-11-04 15:57:53 +01:00
commit 18c5718a7e
2 changed files with 46 additions and 45 deletions

View File

@ -2,7 +2,6 @@
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>Add Skill</title>
<!-- never remove this metadata -->
<div th:replace="~{_metadata :: metadata}"></div>
<link rel="stylesheet" href="/skills.css" />
</head>
@ -17,50 +16,52 @@
method="post"
class="project-card"
>
<div class="form-group">
<label for="primarySkill">Primary Skill</label>
<select
id="primarySkill"
name="primarySkillId"
class="form-control"
th:field="*{primarySkillId}"
>
<option
th:each="primarySkill : ${primarySkills}"
th:value="${primarySkill.psid}"
th:text="${primarySkill.description}"
></option>
</select>
<div class="card-body">
<div class="form-group">
<label for="primarySkill">Primary Skill</label>
<select
id="primarySkill"
name="primarySkillId"
class="form-control"
th:field="*{primarySkillId}"
>
<option
th:each="primarySkill : ${primarySkills}"
th:value="${primarySkill.psid}"
th:text="${primarySkill.description}"
></option>
</select>
</div>
<div class="form-group">
<label for="secondarySkill">Secondary Skill</label>
<select
id="secondarySkill"
name="secondarySkillId"
class="form-control"
th:field="*{secondarySkillId}"
>
<option value="" disabled selected>
Select a secondary skill
</option>
</select>
</div>
<div class="form-group">
<label for="level">Level</label>
<select
id="level"
name="level"
class="form-control"
th:field="*{level}"
>
<option
th:each="level : ${#numbers.sequence(1, 5)}"
th:value="${level}"
th:text="${level}"
></option>
</select>
</div>
<button type="submit" class="btn-create-project">Add Skill</button>
</div>
<div class="form-group">
<label for="secondarySkill">Secondary Skill</label>
<select
id="secondarySkill"
name="secondarySkillId"
class="form-control"
th:field="*{secondarySkillId}"
>
<option value="" disabled selected>
Select a secondary skill
</option>
</select>
</div>
<div class="form-group">
<label for="level">Level</label>
<select
id="level"
name="level"
class="form-control"
th:field="*{level}"
>
<option
th:each="level : ${#numbers.sequence(1, 5)}"
th:value="${level}"
th:text="${level}"
></option>
</select>
</div>
<button type="submit" class="btn-create-project">Add Skill</button>
</form>
</div>
<div th:replace="~{_footer :: footer}"></div>

View File

@ -1,8 +1,8 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<div th:replace="~{_metadata :: metadata}"></div>
<title>Create Skill</title>
<div th:replace="~{_metadata :: metadata}"></div>
<link rel="stylesheet" href="/skills.css" />
</head>
<body>