-
Notifications
You must be signed in to change notification settings - Fork 0
/
add_person.twig
76 lines (76 loc) · 3.28 KB
/
add_person.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<html>
<head>
<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css'>
<title>Welcome To Your Page</title>
</head>
<body class="container">
<div class="well well-sm" style="text-align:center">
<h1>{{ user.getUsername }}</h1>
{% if is_admin == 1 %}
<form class="btn-group" action="/add_person" method="get">
<button class="btn btn-default btn-md">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>Add Attendee
</button>
</form>
<form class="btn-group" action="/attendees" method="get">
<button class="btn btn-default btn-md">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span> View All
</button>
</form>
{% endif %}
</div>
<h1>Add an Attendee</h1>
{% if is_admin == 1 %}
<form class="form-inline" action="\attendees" method="post">
<div class="form-group">
<label class="col-sm-3 control-label">Email</label>
<div class="col-sm-4">
<input type="email" class="form-control" name="email" placeholder="Email">
</div>
</div>
<div class="form-group">
<label for="name" class="col-sm-3 control-label">First Name</label>
<div class="col-sm-4">
<input type="text" class="form-control" name="fname" placeholder="First Name">
</div>
</div>
<div class="form-group">
<label for="name" class="col-sm-3 control-label">Last Name</label>
<div class="col-sm-4">
<input type="text" class="form-control" name="lname" placeholder="Last Name">
</div>
</div>
<select name="type" class="form-control">
<option value="0">Cash</option>
<option value="1">Online</option>
</select>
<div class="form-group">
<label class="sr-only" for="exampleInputAmount">Amount Paid (in dollars)</label>
<div class="input-group">
<div class="input-group-addon">$</div>
<input type="text" name="amount" class="form-control" id="exampleInputAmount" placeholder="Amount Paid(in dollars)">
<div class="input-group-addon">.00</div>
</div>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
{% endif %}
<footer id="footer" class="navbar navbar-fixed-bottom">
<div class="well well-sm" style="text-align:center">
<p>You are logged in as {{ user.getUsername }}</p>
<!-- home -->
<form class="btn-group inline" action="/" method="get">
<button class="btn btn-default btn-md">
<span class="glyphicon glyphicon-home"></span> Home
</button>
</form>
<!-- Sign out -->
<form class="btn-group" action="/logout" method="post">
<button class="btn btn-default btn-md">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Sign Out
</button>
</form>
</div>
</footer>
</body>
</html>