forked from johntdyer/sms_raffle_application
/
users.haml
47 lines (44 loc) · 852 Bytes
/
users.haml
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
%h1#registrations_title
All Users
%table#registrations
%thead
%tr
%th
Name
%th
Phone
%th
Email
%th
Has Won?
%tbody
-@registrations.each do |each|
%tr
%td
=each["doc"]["user_name"]
%td
=each["doc"]["phone_number"]
%td
=each["doc"]["email"]
%td
=has_already_won(each["doc"]["has_won"])
%h1#winner_title
%input{:id=>"pick_winner", :type => "button", :value=>"Pick Winner"}/
#results
%table
%thead
%tr
%th
Name
%th
Phone
%th
Email
%tbody
%tr#the_winner
%td#user_name
%td#phone
%td#email
%input{:id=>"send_notification",:type => "button", :value=>"Send Notification"}/
#footer
=$config["tropo"]["app_number"]