<!doctype html>
<html lang="es" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
 <head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>Meetup</title>
	<link href="/dist/css/bootstrap.min.css" rel="stylesheet">    
</head>
<body>
	<header>
	  <div class="collapse bg-dark" id="navbarHeader">
	    <div class="container">
	    </div>
	  </div>
	  <div class="navbar navbar-dark bg-dark shadow-sm">
	    <div class="container">
	    	<div class="dropdown">
			  <button th:text="#{index.lang}" class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false"></button>
			  <ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
			    <li><a class="dropdown-item" href="/?lang=en">EN</a></li>
			    <li><a class="dropdown-item" href="/?lang=es">ES</a></li>
			  </ul>
			</div>
	    </div>
	  </div>
	</header>
	<main>
		<section class="py-5 text-center container">
		  <div class="row py-lg-5">
		    <div class="col-lg-6 col-md-8 mx-auto">
		      <h1 class="fw-light" th:text="#{index.title}">Meetup</h1>
		      <p>
		        <span class="btn btn-primary my-2" data-bs-toggle="modal" data-bs-target="#newMeetingModal" th:text="#{index.btn.add}">Add Meeting</span>
		      </p>
		    </div>
		  </div>
		</section>

	  <div class="container">
	    <h3>Welcome Administrator</h3>
	     
	     <br><br>
	     <p>Some important (or not) stuff that only admins can see</p>
	  </div>

	</main>
	
	<div class="modal fade" id="newMeetingModal" role="dialog" aria-labelledby="newMeetingModal" aria-hidden="true">
	  <div class="modal-dialog modal-lg">
	    <div class="modal-content">
		    <div class="modal-header">
		        <h5 class="modal-title">New Meeting</h5>
		        <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
		        	<span aria-hidden="true">&times;</span>
		        </button>
	        </div>
	        <div class="modal-body">
	        	<div class="container-fluid">
			    	<form id="newMeetingForm" enctype='multipart/form-data' method="POST" action="/" style="margin-top:25px;">
						<div class="form-group">
							<label>Subject</label>
							<input class="form-control" type="text" value="" name="subject">
						</div>
						<div class="form-group">
							<label>Date</label>
							<input class="form-control" type="text" value="" name="date" placeholder="DD/MM/YYYY HH:MM">
						</div>
					</form>
				</div>
			</div>
			<div class="modal-footer">
		        <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
		        <button class="btn btn-success" type="submit" form="newMeetingForm">Confirm</button>
	        </div>
	    </div>
	  </div>
	</div>
	
    <script src="/dist/js/bootstrap.bundle.min.js"></script>   
</body>
</html>

