add edit pet link

This commit is contained in:
Dapeng 2016-09-21 12:36:55 +08:00
parent 8d1efb240b
commit 3c4d95edcf

View file

@ -30,7 +30,9 @@
<h2>Pets and Visits</h2>
<div ng-repeat="pet in $ctrl.owner.pets">
<h3>{{pet.name}}</h3>
<h3>
<a href="#!/owners/{{$ctrl.owner.id}}/pets/{{pet.id}}">{{pet.name}}</a>
</h3>
<p>
{{pet.birthDate | date:'yyyy MMM dd'}} - {{pet.type.name}} -
<a href="#!/owners/{{$ctrl.owner.id}}/pets/{{pet.id}}/visits">Add Visit</a>