-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnew.handlebars
37 lines (34 loc) · 2.3 KB
/
new.handlebars
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!-- ./views/new.handlebars -->
<form action="/restaurants" method="POST" class="mt-4 ml-4 text-secondary">
{{#if error}}
<p class="w4 mb-1 f2" style="color: red;">{{{error}}}</p>
{{/if}}
<div class="w20"><label for="name" class="f2 name"> <i class="fas fa-home"></i> 餐廳名稱</label>
<input type="text" class="f3" value="{{{name}}}" name="name"></div>
<div class="w20"><label for="name_en" class="f2 name_en"><i class="fas fa-home"></i> 餐廳英文名稱</label>
<input type="text" class="f3" value="{{{name_en}}}" name="name_en">
</div>
<div class="w20">
<label for="category" class="f2 category"> <i class="fas fa-utensils"></i> 分類</label>
<input type="text" class="f2" value="{{{category}}}" name="category">
</div>
<div class="w20"><label for="image" class="f2 image"><i class="far fa-images"></i> 照片連結上傳</label>
<input type="text" class="f12" value="{{{image}}}" name="image"></div>
<div class="w20"><label for="location" class="f2 location"><i class="fas fa-map-marker-alt"></i> 地址</label>
<input type="text" class="f12" value="{{{location}}}" name="location">
</div>
<div class="w20"> <label for="phone" class="f2 phone"> <i class="fas fa-mobile pr-1"></i> 電話</label>
<input type=" text" class="f3" value="{{{phone}}}" name="phone"></div>
<div class="w20"><label for="google_map" class="f2 google_map"> <i class="fas fa-map-marker-alt"></i>
GoogleMap網址</label>
<input type="text" class="f12" value="{{{google_map}}}" name="google_map"></div>
<div class="w20"><label for="rating" class="f2 rating"><i class="far fa-thumbs-up"></i> 評價(1-5顆星)</label>
<input type="text" class="f2" style="width:30px; height: 25px; text-align:center" value="{{{rating}}}"
name="rating"></div>
<div class="w20"><label for="description" class="f2 description"><i class="far fa-sticky-note"></i> 介紹</label>
<input type="text" class="f15" value="{{{description}}}" name="description"></div>
<div class="w20"><label for="done" class="f2">Visisted</label>
<input type="checkbox" class="f2" style="width:45px; height: 25px; margin-left: -6px" name="done" </div>
<div class="w20"><button class="mt-2 btn btn-outline-info rounded-circle" type="submit"
onclick="return confirm(`確定要新增?`)">Create</button></div>
</form>