Dodal mongoDb in photoController
This commit is contained in:
7
views/photo/list.hbs
Normal file
7
views/photo/list.hbs
Normal file
@@ -0,0 +1,7 @@
|
||||
<h1>Slike:</h1>
|
||||
{{#each photos}}
|
||||
<h2>slika:</h2>
|
||||
<img src="{{path}}" title="{{name}}" width="400"/><br/>
|
||||
Id: <span>{{id}}</span>
|
||||
<hr/>
|
||||
{{/each}}
|
8
views/photo/publish.hbs
Normal file
8
views/photo/publish.hbs
Normal file
@@ -0,0 +1,8 @@
|
||||
<h1>Dodaj sliko</h1>
|
||||
<form action="/photos" method="post" enctype="multipart/form-data">
|
||||
<input type="text" name="name" placeholder="ime slike" required>
|
||||
<input type="file" name="image">
|
||||
<div class="tp">
|
||||
<input type="submit" value="Dodaj">
|
||||
</div>
|
||||
</form>
|
Reference in New Issue
Block a user