eventman/angular_app/person-edit.html

54 lines
2.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
<div class="input-group top5">
<span class="input-group-addon">{{'Company' | translate}}</span>
<input name="company" class="form-control" placeholder="{{'Acme Corporation' | translate}}" ng-model="person.company">
</div>
2015-04-18 18:26:50 +02:00
<div class="input-group top5">
<span class="input-group-addon">{{'Job' | translate}}</span>
<input name="job" class="form-control" placeholder="{{'Evil Ruler' | translate}}" ng-model="person.job">
</div>
<div class="form-group top5">
<label for="addToEvent">{{'Add to event:' | translate}}</label>
<select class="form-control" id="addToEvent" ng-model="addToEvent">
<option value=""></option>
<option ng-repeat="event in events | eventWithPersonData:false" value="{{event._id}}">{{event.title}}</option>
</select>
<option>
<tr ng-repeat="event in events | splittedFilter:query | orderBy:eventsOrderProp">
</div>
2015-03-21 16:48:00 +01:00
<input type="submit" style="position: absolute; left: -9999px; width: 1px; height: 1px;"/>
</form>
</div>