-
Notifications
You must be signed in to change notification settings - Fork 4.1k
/
admin.jade
134 lines (121 loc) · 4.83 KB
/
admin.jade
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
extends /templates/base
block content
.form-horizontal
form#espionage-form.form-group
if !me.isAdmin()
.col-sm-2
.col-sm-4
.col-sm-1
else
label.control-label.col-sm-2(for="espionage-name-or-email") Espionage
.col-sm-4
input.form-control#espionage-name-or-email(placeholder="Email, username or id", type="text")
.col-sm-1
button.btn.btn-primary.btn-large#enter-espionage-mode 007
label.control-label.col-sm-5(for="espionage-name-or-email")
em you are currently #{me.get('name') || '(no username)'} at #{me.get('email') || '(no email)'}
if view.amActually
br
em but you are actually #{view.amActually.get('name') || '(no username)'} at #{view.amActually.get('email') || '(no email)'}
br
button#stop-spying-btn.btn.btn-xs Stop Spying
if view.featureMode
br
em and you are viewing feature mode "#{view.featureMode}"
=" "
button#clear-feature-mode-btn.btn.btn-sm Clear Feature Mode
if me.isAdmin()
.form-horizontal
form#user-search-form.form-group
label.control-label.col-sm-2(for="user-search") User Search
.col-sm-4
input.form-control#user-search(placeholder="Email, username, name, whatever", type="text")
a.search-help-toggle(href="#") (search help)
.search-help
h4 Search Syntax
ul
li use <code>role:teacher</code> to limit a search by role
li By default parts of the search are matched exactly.
li <code>*</code> can be used as a wildcard character (ex. '<code>rob*@gmail.com</code>')
li Avoid special charaters and puncuation. Consider replacing them with <code>*</code> in searches.
li
a(href='http://sphinxsearch.com/docs/latest/extended-syntax.html') Complete Syntax Guide
.col-sm-1
button.btn.btn-primary.btn-large#user-search-button Search
#user-search-result
if !me.isAdmin()
div.text-center You must be logged in as an admin to view this page.
else
h4 Entities
ul
li
a(href="/admin/trial-requests") Trial Requests
li
a(href="/admin/user-code-problems") User Code Problems
h4 Analytics
ul
li
a(href="/admin/classrooms-progress?startDay=2017-08-01&endDay=2018-08-01") Classroom Progress vs. Available Content
li
a(href="/admin/classroom-content") Amount of Classroom Content
li
a(href="/admin/classroom-levels") Classroom Levels
li
a(href="/admin/analytics") Dashboard
li
a(href="/admin/level-hints") Level Hints
li
a(href="/admin/school-licenses") School Active Licenses
li
a(href="/admin/school-counts") School Counts
li
a(href="/admin/analytics/subscriptions") Subscriptions
li
a(href="/admin/sub-cancellations") Subscription Cancellations
li
a(href="/admin/demo-requests") Teacher Demo Requests
p
button.classroom-progress-csv.btn.btn-sm.btn-success Classroom Progress CSV
input.classroom-progress-class-code(type=text placeholder="<class code>")
h4 Other
ul
li
a(href="/admin/outcomes-report") Outcomes report
li
a(href="/admin/base") Base (for debugging base.jade)
li
a(href="/admin/clas") CLAs
li
a(href="/admin/pending-patches") Patches
li
a(href="/admin/skipped-contacts") Sales — Contacts skipped by sales automation scripts
hr
h3 Prepaids
a.btn.btn-secondary#create-free-sub-btn Create Free Subscription Link
span.spl.spr
if view.freeSubLink
input#free-sub-input(type="text", readonly, value="#{view.freeSubLink}")
.form-inline
.form-group
label(for="users") Users
input#users.form-control(name="users", type="number", min=1)
.form-group
label(for="months") Months
input#months.form-control(name="months", type="number", min=1)
a#terminal-create.btn.btn-default Create Terminal Subscription Code
hr
h3 Achievements
p This is just some stuff for temporary achievement testing. Should be replaced by a demo system.
input#increment-field(type="text")
a.btn.btn-secondary#increment-button(href="#") Increment
hr
.form-horizontal
h3 PayPal Search
form(action='/db/payments/-/all').form-group
label.control-label.col-sm-2(for="paypal-input") PayPal Search
.col-sm-4
input.form-control#paypal-input(name="payPalResource", placeholder="PayPal Transaction ID")
input(type="hidden", name="project", value="purchaser,recipient,created,service,amount,gems")
input(type="hidden", name="limit", value="10")
.col-sm-1
button.btn.btn-primary(type="submit") Search