-
Notifications
You must be signed in to change notification settings - Fork 0
/
trankListe.html
50 lines (49 loc) · 1.28 KB
/
trankListe.html
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
38
39
40
41
42
43
44
45
46
47
48
49
50
<div class="page-header">
<h1>
Trankliste
<button class="btn btn-primary pull-right"
data-toggle="modal" href="#trankNameModal">
Neuer Trank
</button>
</h1>
</div>
<table class="table table-hover">
<thead>
<tr>
<th>#</th>
<th>Trank</th>
<th>Zutaten</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in traenke">
<td>{{$index+1}}</td>
<td><a href="#/trank/{{item.id}}">{{item.id}}</a></td>
<td>{{item.value || 0}}</td>
</tr>
</tbody>
</table>
<div class="modal fade" id="trankNameModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">
×
</button>
<h4>Name des neuen Trankes</h4>
</div>
<form ng-submit="createTrank()">
<div class="modal-body">
<input type="text" class="form-control" placeholder="Name"
ng-model="newTrankName">
</div>
<div class="modal-footer">
<button class="btn btn-default" type="button" data-dismiss="modal">
Abbrechen
</button>
<button class="btn btn-primary" type="submit">Neuer Trank</button>
</div>
</form>
</div>
</div>
</div>