eventman/angular_app/person-info.html

58 lines
2.6 KiB
HTML
Raw Normal View History

2015-03-22 09:08:38 +01:00
<!-- show details of a single Person (editing also take place here) -->
<div class="container">
2015-03-21 16:48:00 +01:00
<form ng-model="persondetails" ng-submit="save()">
<div class="input-group input-group-lg">
2015-03-23 23:06:44 +01:00
<span class="input-group-addon">Name</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-03-23 23:06:44 +01:00
<span class="input-group-addon">Surname</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-03-23 23:06:44 +01:00
<span class="input-group-addon">Email</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 class="panel panel-primary table-striped top5">
<div class="panel-heading">Events</div>
2015-04-05 00:55:59 +02:00
<div class="panel-body">
<form class="form-inline">
<div class="form-group">
<label for="query-persons">Search:</label>
<input type="text" id="query-persons" class="form-control" placeholder="Name or email" ng-model="query">
</div>
<div class="form-group">
<label for="events-order">Sort by:</label>
<select id="events-order" class="form-control" ng-model="orderProp">
<option value="name" ng-selected="selected">Alphabetical</option>
<option value="date">Date</option>
</select>
</div>
</form>
<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>
<button class="btn btn-link" name="switch-attended" ng-click="updateAttendee(event, !event.person_data.attended)"><span class="glyphicon {{(event.person_data.attended) && 'glyphicon-ok-sign text-success' || 'glyphicon-remove-sign text-danger'}}"></span></button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
2015-03-21 16:48:00 +01:00
</div>