<!doctype html>
<html th:fragment="layout (template, menu)">

  <head>

    <!-- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1"> -->

    <link rel="shortcut icon" type="image/x-icon" th:href="@{/resources/images/favicon.png}">

    <title>KidClinic :: a Spring Framework demonstration</title>

    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <link rel="stylesheet" th:href="@{/resources/css/petclinic.css}"/>

  </head>

<body>
<h5>
  <nav class="navbar navbar-inverse navbar-fixed-top navbar-right" role="navigation" th:fragment="header">
    
          <div class="navbar-header">
              <!-- <a class="navbar-brand" th:href="@{/}"><span></span></a> -->
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#main-navbar">
                  <span class="icon-bar"></span>
                  <span class="icon-bar"></span>
                  <span class="icon-bar"></span>
              </button>
              
          </div>
          <div class="navbar-collapse collapse" id="main-navbar">
            
              <ul class="nav navbar-nav nav-collapse navbar-right">
                <a class="navbar-brand" href="#" size="5">KidClinic</a>
                <li th:class="${module == 'home' ? 'active' : ''}"><a href="#" th:href="@{/}" ><span class="glyphicon glyphicon-home"> Home</a></li>

                <li th:classappend="${module == 'parents' ? 'active' : ''}"><a href="/parents/find" th:href="@{/parents/find}" ><span class="glyphicon glyphicon-search"> Parents</a></li>
                
                <li th:classappend="${module == 'doctors' ? 'active' : ''}"><a href="/doctors.html" th:href="@{/doctors.html}"><span class="glyphicon glyphicon-th-list"> Doctors</a></li>

                <li th:classappend="${module == 'reviews' ? 'active' : ''}"><a href="/reviews.html" th:href="@{/reviews.html}"><span class="glyphicon glyphicon-star"> Reviews</a></li>
                
                <li th:classappend="${module == 'error' ? 'active' : ''}"><a href="/oops" th:href="@{/oops}"  ><span class="glyphicon glyphicon-warning-sign"> Errors</a></li>
                





                



                  <!-- <li th:fragment="menuItem (path,active,title,glyph,text)" th:class="${active==menu ? 'active' : ''}">
                      <a th:href="@{__${path}__}" th:title="${title}">
                        <span th:class="'glyphicon  glyphicon-'+${glyph}" class="glyphicon glyphicon-home" aria-hidden="false"></span>
                        <span th:text="${text}">Template</span>
                      </a>
                  </li>
  
                  <li th:replace="::menuItem ('/','home','home page','home','Home')">
                      <span class="glyphicon glyphicon-home" aria-hidden="true"></span>
                      <span>Home</span>
                  </li>
  
                  <li th:replace="::menuItem ('/owners/find','owners','Find Parents','search','Find Parents')">
                      <span class="glyphicon glyphicon-search" aria-hidden="true"></span>
                      <span>Find Parents</span>
                  </li>
  
                  <li th:replace="::menuItem ('/vets.html','vets', 'Pediatricians','th-list','Pediatricians')">
                      <span class="glyphicon glyphicon-th-list" aria-hidden="true"></span>
                      <span>Pediatricians</span>
                  </li>
  
                  <li th:replace="::menuItem ('/oups','error','trigger a RuntimeException to see how it is handled','warning-sign','Reviews')">
                      <span class=" glyphicon glyphicon-star-empty" aria-hidden="true"></span>
                      <span>Reviews</span>
                  </li> -->
  
              </ul>
          
      </div>
  </nav>
</h5>
  <div class="container-fluid">
      
  
          <div th:replace="${template}"/>

        <br/>
        <br/>
        
  

  <script th:src="@{/webjars/jquery/jquery.min.js}"></script>
  <script th:src="@{/webjars/jquery-ui/jquery-ui.min.js}"></script>
  <script th:src="@{/webjars/bootstrap/js/bootstrap.min.js}"></script>

</body>

</html>
