first commit
This commit is contained in:
parent
2430371884
commit
a1c86e9cfb
13 changed files with 669 additions and 0 deletions
0
ejs/footer.ejs
Normal file
0
ejs/footer.ejs
Normal file
5
ejs/head.ejs
Normal file
5
ejs/head.ejs
Normal file
|
@ -0,0 +1,5 @@
|
|||
<meta charset="UTF-8">
|
||||
<title>Workshops</title>
|
||||
|
||||
<!-- CSS (load bootstrap from a CDN) -->
|
||||
<link rel="stylesheet" href="bootstrap.min.css">
|
31
ejs/index.ejs
Normal file
31
ejs/index.ejs
Normal file
|
@ -0,0 +1,31 @@
|
|||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<% include ./head %>
|
||||
</head>
|
||||
<body class="container">
|
||||
|
||||
<div class="jumbotron">
|
||||
<h1>Workshops</h1>
|
||||
<p>here is the list of workshop</p>
|
||||
</div>
|
||||
|
||||
<a type="button" href="/workshop" class="btn btn-success btn-lg">Create new workshop</a>
|
||||
|
||||
<ul class="list-unstyled"></ul>
|
||||
<% workshops.forEach(function(workshop) { %>
|
||||
<li class="media my-4">
|
||||
<div class="media-body">
|
||||
<h5 class="mt-0 mb-1"><%= workshop.name %></h5>
|
||||
<%= workshop.description %> </div>
|
||||
</li>
|
||||
<% }); %>
|
||||
</ul>
|
||||
|
||||
<footer>
|
||||
<% include ./footer %>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
27
ejs/workshop.ejs
Normal file
27
ejs/workshop.ejs
Normal file
|
@ -0,0 +1,27 @@
|
|||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<% include ./head %>
|
||||
</head>
|
||||
<body class="container">
|
||||
|
||||
<form action="/">
|
||||
<div class="form-group">
|
||||
<label for="name">Name</label>
|
||||
<input type="text" class="form-control" id="name" placeholder="Workshop Name" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="description">Description</label>
|
||||
<input type="text" class="form-control" id="description" placeholder="Give a description for your workshop" required>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Save</button>
|
||||
<a type="button" class="btn btn-secondary" href="/">Cancel</a>
|
||||
</form>
|
||||
|
||||
<footer>
|
||||
<% include ./footer %>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue