mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-18 11:32:25 -05:00
6f08d5e422
School now optional N/A placeholder on district field and don't save it if it's n/a Updating required field error UI a bit, and there is some larger refactoring needed here later. NCES phone number for district only entries will currently be a child school, will fix later. Closes #3818
54 lines
1.8 KiB
Text
54 lines
1.8 KiB
Text
extends /templates/base
|
|
|
|
block content
|
|
|
|
if !me.isAdmin()
|
|
div You must be logged in as an admin to view this page.
|
|
|
|
else
|
|
h2 Teacher Demo Requests
|
|
|
|
if view.trialRequests.models.length < 1
|
|
h4 Fetching trial requests...
|
|
else
|
|
h3 Incoming Rate
|
|
table.table.table-condensed
|
|
thead
|
|
tr
|
|
th Day
|
|
th Count
|
|
th 7-day Average
|
|
tbody
|
|
each dayCount in view.dayCounts
|
|
tr
|
|
td= dayCount.day
|
|
td= dayCount.count
|
|
td= dayCount.sevenAverage
|
|
|
|
h3 Student Counts
|
|
table.table.table-condensed
|
|
thead
|
|
tr
|
|
th Created
|
|
th School Name
|
|
th School District
|
|
th.number NCES District Schools
|
|
th.number NCES District Students
|
|
th.number NCES School Students
|
|
th.number School Students
|
|
th.number Teacher Students
|
|
th Site Origin
|
|
tbody
|
|
each trialRequest in view.trialRequests.models
|
|
if trialRequest.get('type') !== 'course'
|
|
- continue;
|
|
tr
|
|
td.created= trialRequest.get('created').substring(0, 10)
|
|
td= trialRequest.get('properties').nces_name || trialRequest.get('properties').organization || ''
|
|
td= trialRequest.get('properties').nces_district || trialRequest.get('properties').district || ''
|
|
td= trialRequest.get('properties').nces_district_schools || ''
|
|
td= trialRequest.get('properties').nces_district_students || ''
|
|
td= trialRequest.get('properties').nces_students || ''
|
|
td= trialRequest.get('properties').numStudentsTotal || ''
|
|
td= trialRequest.get('properties').numStudents || ''
|
|
td= trialRequest.get('properties').siteOrigin
|