<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
	xmlns="http://www.w3.org/1999/xhtml" layout:decorator="lecturer/index">
<body>

<main layout:fragment="main">

	<div class="container">
		<h2 th:text="#{lecturer.nav.subjects}"></h2>

		<div th:if="${not #lists.isEmpty(ownedSubjects)}">
			<ul class="collection">
				<li class="collection-item" th:each="subject : ${ownedSubjects}">
					<div class="title" th:text="${subject.name}"></div>
					<div
							th:text="${subject.ects} + ' ECTS'"></div>
				</li>
			</ul>
		</div>

		<div th:if="${#lists.isEmpty(ownedSubjects)}">
			<p th:text="#{lecturer.subjects.nofound}"></p>
		</div>
	</div>

	</main>

</body>
</html>
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
	xmlns="http://www.w3.org/1999/xhtml" layout:decorator="lecturer/index">
<body>

<main layout:fragment="main">

	<div class="container">
		<h2 th:text="#{lecturer.nav.subjects}"></h2>

		<div th:if="${not #lists.isEmpty(ownedSubjects)}">
			<ul class="collection">
				<li class="collection-item" th:each="subject : ${ownedSubjects}">
					<a th:href="@{/lecturer/addCourse(subjectId=__${subject.id}__)}" class="secondary-content"><i class="material-icons">add</i></a>
					<div class="title" th:text="${subject.name}"></div>
					<div th:text="${subject.ects} + ' ECTS'"></div>
				</li>
			</ul>
		</div>

		<div th:if="${#lists.isEmpty(ownedSubjects)}">
			<p th:text="#{lecturer.subjects.nofound}"></p>
		</div>
	</div>

	</main>

</body>
</html>
Connect add course to subject
Connect add course to subject

