genofire/hs_monolith
genofire
/
hs_monolith
Archived
1
0
Fork 0
This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
hs_monolith/webroot/static/html/item.html

38 lines
1.1 KiB
HTML
Raw Normal View History

2017-05-12 10:17:27 +02:00
<h1>
{{obj.name}}
<img class="icon" src="/api/good/availablity/{{obj.id}}"/>
<a class="ui icon button mini right floated" ui-sref="item-add({productid: obj.id})"><i class="icon plus"></i></a>
2017-05-12 10:17:27 +02:00
</h1>
<table class="ui table very basic">
<tr>
<td>Product ID</td>
<td>{{obj.id}}</td>
</tr>
<tr>
<td>Count</td>
<td>{{list.length}}</td>
</tr>
2017-05-03 08:56:35 +02:00
</table>
2017-05-12 10:17:27 +02:00
<h2>Goods of this product</h2>
<div class="ui warning message" ng-if="list.length <= 0">
<p>There are no goods for this product.</p>
2017-05-12 11:54:59 +02:00
</div>
<table class="ui table list" ng-if="list.length > 0">
<thead>
<tr>
<th>Status of Freshness</th>
<th>Location</th>
<th>Comment</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in list">
<td><img class="icon" ng-src="{{'/api/good/freshness/'+item.id| reloadSrc}}"/></td>
<td>{{item.position}}</td>
<td>{{item.comment}}</td>
<td><a class="ui icon button mini" ng-click="delete(item.id)"><i class="trash icon"></i></a></td>
</tr>
</tbody>
</table>