Skip to content

Commit

Permalink
Created the index page for viewing the different Authors
Browse files Browse the repository at this point in the history
  • Loading branch information
barhouum7 committed Oct 4, 2020
1 parent 22c9ab9 commit 18de052
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion views/authors/index.ejs
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
All Authors
<!-- Creating the index page
for viewing the different Authors -->
<h2>Search Authors</h2>
<form action="/authors" method="GET">
<label>Name:</label>
<input type="text" name="name">
<button type="submit">Search</button>
</form>
<br />
<% authors.forEach(author => { %>
<div><%= author.name %></div>
<% }) %>

0 comments on commit 18de052

Please sign in to comment.