eventman/angular_app/person-edit.html

34 lines
1.7 KiB
HTML
Raw Normal View History

2015-04-05 22:16:11 +02:00
<!-- show details of a Person -->
<div class="container">
2015-04-05 18:54:51 +02:00
<h1><span ng-if="!(person.name || person.surname)">{{'New person' | translate}}</span>{{person.name}} {{person.surname}}&nbsp;
2015-04-05 17:36:29 +02:00
<button ng-if="person._id" ng-click="$state.go('person.info', {id: person._id})" class="btn btn-success">
2015-04-06 11:58:44 +02:00
<span class="glyphicon glyphicon-info-sign"></span>
2015-04-05 17:36:29 +02:00
{{'Info' | translate}}
</button>
</h1>
<form name="personForm" ng-model="persondetails" ng-submit="save()">
2015-04-05 20:12:54 +02:00
<div ng-class="{clearfix: true, alert: true, 'alert-success': !personForm.$dirty, 'alert-danger': personForm.$dirty}">
2015-04-05 17:36:29 +02:00
<button type="button" class="btn btn-default pull-right" ng-click="save($event)" ng-disabled="!personForm.$dirty">{{'save' | translate}}</button>
2015-04-05 20:12:54 +02:00
</div>
2015-04-05 17:36:29 +02:00
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-04-05 17:58:39 +02:00
<input type="text" class="form-control" placeholder="{{'Name' | translate}}" 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-04-05 17:58:39 +02:00
<input type="text" class="form-control" placeholder="{{'Surname' | translate}}" 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-04-05 17:58:39 +02:00
<input type="email" name="email" class="form-control" placeholder="{{'name.surname@example.com' | translate}}" 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>