Skip to content
Snippets Groups Projects
Commit bd5dd27f authored by Dapeng's avatar Dapeng
Browse files

redesign ui layout for owner details for pet's visits

parent a849f8ef
No related branches found
No related tags found
No related merge requests found
......@@ -38,12 +38,13 @@
<a href="#!/owners/{{$ctrl.owner.id}}/pets/{{pet.id}}/visits">Add Visit</a>
</p>
<h4>Visits</h4>
<p style="margin-left: 2em;" ng-repeat="visit in pet.visits">
<span style="font-style: italic; margin-right: 1em;">{{visit.date | date:'yyyy MMM dd'}}</span>
{{visit.description}}
</p>
<p style="margin-left: 2em;" ng-if="pet.visits.length == 0">
<div ng-repeat="visit in pet.visits" style="margin-top: 1em;">
<h5>{{visit.date | date:'yyyy MMM dd'}}</h5>
<p style="white-space: pre-line">{{visit.description}}</p>
</div>
<p ng-if="pet.visits.length == 0">
No visit yet
</p>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment