<h1> {{product.title}} <a ui-sref="item({productid:product.id})"> <i class="icon linkify"></i> </a> </h1> <form class="ui form segment" ng-submit="submit()" ng-class="{'top attached':msg.type}"> <div class="field"> <label>Expiration Date</label> <input type="date" name="fouled_at" placeholder="Fouled at date (e.g. 2017-06-30)" ng-model="obj.fouled_at"> </div> <div class="field"> <label>Position</label> <input type="text" name="position" placeholder="Location in Store", ng-model="obj.position"> </div> <div class="field"> <label>Comment</label> <input type="text" name="comment" placeholder="Comment for this good", ng-model="obj.comment"> </div> <div class="field"> <label>Count</label> <input type="number" name="count" ng-model="count" min="1"> </div> <button class="ui button" type="submit">Submit</button> </form> <div class="ui bottom attached message {{msg.type}}" ng-show="msg.type"> {{msg.text}} </div>