| 
									
										
										
										
											2017-05-12 10:17:27 +02:00
										 |  |  | <h1> | 
					
						
							|  |  |  |   {{obj.title}} | 
					
						
							|  |  |  |   <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> | 
					
						
							|  |  |  | </h1> | 
					
						
							| 
									
										
										
										
											2017-04-07 15:05:56 +02:00
										 |  |  | <table class="ui table very basic"> | 
					
						
							|  |  |  |   <tr> | 
					
						
							| 
									
										
										
										
											2017-05-12 10:17:27 +02:00
										 |  |  |     <td>Product ID</td> | 
					
						
							|  |  |  |     <td>{{obj.id}}</td> | 
					
						
							|  |  |  |   </tr> | 
					
						
							|  |  |  |   <tr> | 
					
						
							|  |  |  |     <td>Count</td> | 
					
						
							| 
									
										
										
										
											2017-04-07 15:05:56 +02:00
										 |  |  |     <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> | 
					
						
							| 
									
										
										
										
											2017-05-12 11:54:59 +02:00
										 |  |  | <div class="ui warning message"  ng-if="list.length <= 0"> | 
					
						
							|  |  |  |   <p>There are no goods for this product.</p> | 
					
						
							|  |  |  | </div> | 
					
						
							| 
									
										
										
										
											2017-04-07 15:05:56 +02:00
										 |  |  | <table class="ui table list" ng-if="list.length > 0"> | 
					
						
							|  |  |  |   <thead> | 
					
						
							|  |  |  |     <tr> | 
					
						
							| 
									
										
										
										
											2017-05-19 09:20:50 +02:00
										 |  |  |       <th>Status of Freshness</th> | 
					
						
							| 
									
										
										
										
											2017-05-12 10:17:27 +02:00
										 |  |  |       <th>Location</th> | 
					
						
							|  |  |  |       <th>Comment</th> | 
					
						
							|  |  |  |       <th></th> | 
					
						
							| 
									
										
										
										
											2017-04-07 15:05:56 +02:00
										 |  |  |     </tr> | 
					
						
							|  |  |  |   </thead> | 
					
						
							|  |  |  |   <tbody> | 
					
						
							|  |  |  |     <tr ng-repeat="item in list"> | 
					
						
							| 
									
										
										
										
											2017-05-19 09:20:50 +02:00
										 |  |  |       <td><img class="icon" ng-src="{{'/api/good/freshness/'+item.id| reloadSrc}}"/></td> | 
					
						
							| 
									
										
										
										
											2017-05-12 10:17:27 +02:00
										 |  |  |       <td>{{item.position}}</td> | 
					
						
							|  |  |  |       <td>{{item.comment}}</td> | 
					
						
							| 
									
										
										
										
											2017-05-19 11:02:19 +02:00
										 |  |  |       <td><a class="ui icon button mini" ng-click="delete(item.id)"><i class="trash icon"></i></a></td> | 
					
						
							| 
									
										
										
										
											2017-04-07 15:05:56 +02:00
										 |  |  |     </tr> | 
					
						
							|  |  |  |   </tbody> | 
					
						
							|  |  |  | </table> |