Skip to content
Snippets Groups Projects
Commit ee2807c7 authored by Antoine Rey's avatar Antoine Rey
Browse files

UI design

parent 26118e66
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,11 @@
<body class="container">
<layout-nav></layout-nav>
<div ng-view></div>
<div class="container-fluid">
<div class="container xd-container">
<div ng-view></div>
</div>
</div>
<layout-footer></layout-footer>
</body>
......
......@@ -19,36 +19,53 @@
</tr>
<tr>
<td>
<a class="btn btn-info" href="#!/owners/{{$ctrl.owner.id}}/edit">Edit Owner</a>
<a class="btn btn-default" href="#!/owners/{{$ctrl.owner.id}}/edit">Edit Owner</a>
</td>
<td>
<a href="#!/owners/{{$ctrl.owner.id}}/new-pet" class="btn btn-success">Add New Pet</a>
<a href="#!/owners/{{$ctrl.owner.id}}/new-pet" class="btn btn-default">Add New Pet</a>
</td>
</tr>
</table>
<h2>Pets and Visits</h2>
<div ng-repeat="pet in $ctrl.owner.pets">
<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>
</p>
<h4>Visits</h4>
<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>
<table class="table table-striped">
<tr ng-repeat="pet in $ctrl.owner.pets">
<td valign="top">
<dl class="dl-horizontal">
<dt>Name</dt>
<dd><a href="#!/owners/{{$ctrl.owner.id}}/pets/{{pet.id}}">{{pet.name}}</a></dd>
<dt>Birth Date</dt>
<dd>{{pet.birthDate | date:'yyyy MMM dd'}}</dd>
<dt>Type</dt>
<dd>{{pet.type.name}}</dd>
</dl>
</td>
<td valign="top">
<table class="table-condensed">
<thead>
<tr>
<th>Visit Date</th>
<th>Description</th>
</tr>
</thead>
<tr ng-repeat="visit in pet.visits">
<td>{{visit.date | date:'yyyy MMM dd'}}</td>
<td>{{visit.description}}</td>
</tr>
<tr>
<td>
<a href="#!/owners/{{$ctrl.owner.id}}/pets/{{pet.id}}">Edit Pet</a>
</td>
<td>
<a href="#!/owners/{{$ctrl.owner.id}}/pets/{{pet.id}}/visits">Add Visit</a>
</td>
</tr>
</table>
</td>
<p ng-if="pet.visits.length == 0">
No visit yet
</p>
</tr>
</table>
<hr/>
</div>
......@@ -32,7 +32,7 @@
</div>
<div class="form-group">
<button class="btn btn-primary" type="submit">Submit</button>
<button class="btn btn-default" type="submit">Submit</button>
</div>
</form>
......@@ -35,7 +35,7 @@
<div class="form-group">
<div class="col-sm-6 col-sm-offset-2">
<button class="btn btn-primary" type="submit">
<button class="btn btn-default" type="submit">
Submit
</button>
</div>
......
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