<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"
             required="" pattern="((?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|
             1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31)))?">
    </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>
