aboutsummaryrefslogtreecommitdiffstats
path: root/views/index.handlebars
blob: 26f79ffe2fefb7d9f7dd7bf3f34b039ab8923f08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<h1 class="text-center mb-3">{{title}}</h1>

<form action="/nodejs/api/members" method="POST" class="mb-4">
  <div class="form-group">
    <label for="name">Name</label>
    <input type="text" name="name" class="form-control">
  </div>
  <div class="form-group">
    <label for="email">E-mail</label>
    <input type="email" name="email" class="form-control">
  </div>
  <input type="submit" value="Add Member" class="btn btn-primary btn-block">
</form>
<h4>Members</h4>
<ul class="list-group">
 {{#each members}}
   <li class="list-group-item">{{this.name}}: {{this.email}}</li> 
 {{/each}}
</ul>

<a href="/nodejs/api/members" class="btn btn-light mt-4">Visit API</a>