Skip to content
Open

done #45

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion views/drones/list.hbs
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
<h2>Available drones</h2>
<h1>Drones List</h1>
<a href="/drones/create"><button class="btn btn-success">Add New Drone</button></a>
<ul class="list-group mt-3">
{{#each drones}}
<li class="list-group-item">
<h3>{{this.name}}</h3>
<p>Propellers: {{this.propellers}}</p>
<p>Max Speed: {{this.maxSpeed}} m/s</p>
<a href="/drones/{{this._id}}/edit" class="btn btn-warning">Edit</a>
<form action="/drones/{{this._id}}/delete" method="POST" style="display:inline;">
<button class="btn btn-danger">Delete</button>
</form>
</li>
{{/each}}
</ul>