40 lines
1.6 KiB
HTML
40 lines
1.6 KiB
HTML
<!-- show details of a single Person (editing also take place here) -->
|
|
<div class="container">
|
|
<form ng-model="persondetails" ng-submit="save()">
|
|
<div class="input-group input-group-lg">
|
|
<span class="input-group-addon">Name</span>
|
|
<input type="text" class="form-control" placeholder="Name" ng-model="person.name" ng-required="1">
|
|
</div>
|
|
|
|
<div class="input-group input-group-lg top5">
|
|
<span class="input-group-addon">Surname</span>
|
|
<input type="text" class="form-control" placeholder="Surname" ng-model="person.surname">
|
|
</div>
|
|
|
|
<div class="input-group top5">
|
|
<span class="input-group-addon">Email</span>
|
|
<input type="email" name="email" class="form-control" placeholder="root@example.com" ng-model="person.email">
|
|
</div>
|
|
|
|
<input type="submit" style="position: absolute; left: -9999px; width: 1px; height: 1px;"/>
|
|
</form>
|
|
|
|
<div class="panel panel-primary table-striped top5">
|
|
<div class="panel-heading">Events</div>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Event</th>
|
|
<th>Attended</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr ng-repeat="event in events">
|
|
<td><a href="/#/events/{{event._id}}">{{event.title}}</a></td>
|
|
<td><span class="glyphicon {{(event.person_data && event.person_data.attended) && 'glyphicon-ok-sign' || 'glyphicon-remove-sign'}}"></span></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|