2015-03-22 09:08:38 +01:00
|
|
|
<!-- show details of a single Person (editing also take place here) -->
|
2015-03-22 17:17:51 +01:00
|
|
|
<div class="container">
|
2015-04-05 17:36:29 +02:00
|
|
|
<h1>{{person.name}} {{person.surname}}
|
|
|
|
<button ng-if="person._id" ng-click="$state.go('person.info', {id: person._id})" class="btn btn-success">
|
|
|
|
<span class="glyphicon glyphicon-plus-sign"></span>
|
|
|
|
{{'Info' | translate}}
|
|
|
|
</button>
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
<form name="personForm" ng-model="persondetails" ng-submit="save()">
|
|
|
|
<alert class="clearfix">
|
|
|
|
<button type="button" class="btn btn-default pull-right" ng-click="save($event)" ng-disabled="!personForm.$dirty">{{'save' | translate}}</button>
|
|
|
|
</alert>
|
|
|
|
|
2015-03-21 16:48:00 +01:00
|
|
|
<div class="input-group input-group-lg">
|
2015-04-05 17:36:29 +02:00
|
|
|
<span class="input-group-addon">{{'Name' | translate}}</span>
|
2015-03-30 21:31:09 +02:00
|
|
|
<input type="text" class="form-control" placeholder="Name" ng-model="person.name" ng-required="1">
|
2015-03-21 16:48:00 +01:00
|
|
|
</div>
|
2015-03-15 23:05:59 +01:00
|
|
|
|
2015-03-21 16:48:00 +01:00
|
|
|
<div class="input-group input-group-lg top5">
|
2015-04-05 17:36:29 +02:00
|
|
|
<span class="input-group-addon">{{'Surname' | translate}}</span>
|
2015-03-30 21:31:09 +02:00
|
|
|
<input type="text" class="form-control" placeholder="Surname" ng-model="person.surname">
|
2015-03-21 16:48:00 +01:00
|
|
|
</div>
|
2015-03-15 23:05:59 +01:00
|
|
|
|
2015-03-21 16:48:00 +01:00
|
|
|
<div class="input-group top5">
|
2015-04-05 17:36:29 +02:00
|
|
|
<span class="input-group-addon">{{'Email' | translate}}</span>
|
2015-03-30 21:31:09 +02:00
|
|
|
<input type="email" name="email" class="form-control" placeholder="root@example.com" ng-model="person.email">
|
2015-03-21 16:48:00 +01:00
|
|
|
</div>
|
2015-03-15 23:05:59 +01:00
|
|
|
|
2015-03-21 16:48:00 +01:00
|
|
|
<input type="submit" style="position: absolute; left: -9999px; width: 1px; height: 1px;"/>
|
|
|
|
</form>
|
|
|
|
</div>
|
2015-03-31 23:35:56 +02:00
|
|
|
|