myMedisys/tomcatfiles/mymedisys-frontend/WEB-INF/classes/templates/layouts/page-layout.html
2023-09-06 05:56:42 +05:30

99 lines
5.5 KiB
HTML

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
th:with="baseUrl=${@webHelper.baseUrl()}">
<head><th:block th:include="layouts/common/header_style" /></head>
<body class="sidebar-collapse">
<header class="topbar">
<nav class="navbar top-navbar navbar-expand-md navbar-light" id="sectionsNav">
<!-- ============================================================== -->
<!-- Logo -->
<!-- ============================================================== -->
<div class="navbar-header">
<a class="navbar-brand" th:href="@{/}">
<!-- Logo icon --><b>
<!--You can put here icon as well // <i class="wi wi-sunset"></i> //-->
<!-- Dark Logo icon -->
<img th:src="${baseUrl}+@{/images/logo/icon_mymedisys.png}" alt="homepage" class="dark-logo header-icon" />
<!-- Light Logo icon -->
<!-- <img th:src="${baseUrl}+@{/images/logo/logo_mysp.png}" alt="homepage" class="light-logo" /> -->
</b>
<!--End Logo icon -->
<!-- Logo text --><span>
<!-- dark Logo text -->
<img th:src="${baseUrl}+@{/images/logo/text_mymedisys.png}" class="dark-logo header-logo" />
<!-- Light Logo text -->
<!-- <img th:src="${baseUrl}+@{/images/logo/logo_mysp.png}" class="light-logo" alt="homepage" /></span> </a> -->
</div>
<!-- ============================================================== -->
<!-- End Logo -->
<!-- ============================================================== -->
<div class="navbar-collapse">
<!-- ============================================================== -->
<!-- toggle and nav items -->
<!-- ============================================================== -->
<ul class="navbar-nav mr-auto">
<!-- This is -->
<li class="nav-item"> <a class="nav-link hidden-sm-down waves-effect waves-dark" href="#"></a> </li>
</ul>
<!-- ============================================================== -->
<!-- User profile and search -->
<!-- ============================================================== -->
<ul class="navbar-nav my-lg-0">
<th:block sec:authorize="isAnonymous()">
<li class="nav-item dropdown align-self-center">
<a th:href="@{/register}" class="hidden-md-down text-light">
<span class="hidden-md-down text-light">
<i class="material-icons align-text-bottom">how_to_reg</i> MC Registration
</span>
</a>
</li>
<li class="nav-item dropdown align-self-center">
<a th:href="@{/register?registrationType=SCA}" class="hidden-md-down text-light">
<span class="hidden-md-down text-light">
<i class="material-icons align-text-bottom">how_to_reg</i> SCA Registration
</span>
</a>
</li>
<a th:href="@{#{url.login}}" type="button" class="btn waves-effect waves-light btn-rounded btn-primary ml-2 mr-5">Login</a>
</th:block>
<th:block sec:authorize="isAuthenticated()">
<!-- ============================================================== -->
<!-- Profile -->
<!-- ============================================================== -->
<li class="nav-item dropdown u-pro">
<a class="nav-link dropdown-toggle waves-effect waves-dark profile-pic" href="" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><img th:src="${baseUrl}+@{/images/users/user.png}" alt="user" class="" />
<span class="hidden-md-down"><th:block th:text="${#authentication.principal?.profile?.firstName}"></th:block> &nbsp;<i class="fa fa-angle-down"></i></span> </a>
<div class="dropdown-menu dropdown-menu-right animated flipInY">
<ul class="dropdown-user">
<li>
<div class="dw-user-box">
<div class="u-img"><img th:src="${baseUrl}+@{/images/users/user.png}" alt="user"></div>
<div class="u-text">
<h4 th:text="${#authentication.principal?.profile?.userId}"></h4>
<p class="text-muted"><th:block th:text="${#authentication.principal?.profile?.email}"></th:block></p>
<th:block sec:authorize="hasAnyAuthority('MC_ADMIN')" th:if="${#authentication.principal?.profile?.status} == A">
<a class="btn btn-rounded btn-danger btn-sm" th:href="@{/profile}">View Profile</a>
</th:block>
</div>
</div>
</li>
<li class="button-container nav-item iframe-extern"><a th:href="@{#{url.logout}}"><i class="fa fa-power-off"></i> Logout</a></li>
</ul>
</div>
</li>
</th:block>
</ul>
</div>
</nav></header>
<section id="wrapper">
<div class="login-register">
<div layout:fragment="page_content"></div>
</div>
</section>
<th:block th:include="layouts/common/footer" />
<th:block th:include="layouts/common/footer_script" />
</body>
</html>