-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
root
authored and
root
committed
Oct 12, 2020
1 parent
4995182
commit 3f08eaa
Showing
7 changed files
with
1,594 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,35 @@ | ||
|
||
<!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> | ||
<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> | ||
<a type="button" href="/workshop" class="btn btn-success btn-lg">Create new workshop</a> | ||
<a type="button" href="/update-workshop" class="btn btn-success btn-lg">Update</a> | ||
|
||
<ul class="list-unstyled"></ul> | ||
<% workshops.forEach(function(workshop) { %> | ||
<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> | ||
<%= workshop.description %> | ||
</div> | ||
</li> | ||
<% }); %> | ||
</ul> | ||
<% }); %> | ||
</ul> | ||
|
||
<footer> | ||
<% include ./footer %> | ||
</footer> | ||
<footer> | ||
<% include ./footer %> | ||
</footer> | ||
|
||
</body> | ||
</html> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<% include ./head %> | ||
</head> | ||
|
||
<body class="container"> | ||
|
||
<form action="/update-workshop" method="post"> | ||
<div class="form-group"> | ||
<label for="oldName">Old Name</label> | ||
<input type="text" name="oldName" class="form-control" id="oldName" placeholder="Workshop Name" required> | ||
</div> | ||
<div class="form-group"> | ||
<label for="name">Name</label> | ||
<input type="text" name="name" class="form-control" id="name" placeholder="Workshop Name" 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es2021: true | ||
}, | ||
extends: [ | ||
'standard' | ||
], | ||
parserOptions: { | ||
ecmaVersion: 12, | ||
sourceType: 'module' | ||
}, | ||
rules: { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.