Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Thymeleaf MVC fragments master template
<!DOCTYPE html>
<html lang="en" xmlns:th="http://thymeleaf.org">
<head lang="en" th:fragment="head">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html"; charset="UTF-8">
<link rel="stylesheet" href="/webjars/bootswatch/3.3.7/flatly/bootstrap.min.css">
<link rel="stylesheet" href="/webjars/toastr/2.1.0/toastr.min.css">
</head>
<body>
<div class="container">
<div th:fragment="header">
<!--Bootstrap navigation top menu starts-->
<!--Bootstrap navigation menu begins-->
<nav class="navbar navbar-default unselectable">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
data-target="#bs-example-navbar-collapse-1"
aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">Epidemics</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active">
<a href="/person/list">Patients
<span class="sr-only">(current)</span>
</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="/help/index">Help</a>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
<!--Bootstrap navigation top menu ends-->
</div>
</div>
<div th:fragment="scripts">
<script type="text/javascript" src="/webjars/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript" src="/webjars/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/webjars/toastr/2.1.0/toastr.min.js"></script>
<script type="text/javascript" src="/webjars/jquery-validation/1.17.0/dist/jquery.validate.min.js"></script>
<script type="text/javascript" src="/webjars/jquery-validation/1.17.0/dist/additional-methods.min.js"></script>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment