codecombat/app/templates/courses/teacher-courses-view.jade

86 lines
3 KiB
Text
Raw Normal View History

2016-03-30 16:57:19 -04:00
extends /templates/base-flat
2015-11-03 19:41:06 -05:00
2016-03-30 16:57:19 -04:00
block page_nav
include ./teacher-dashboard-nav.jade
2016-03-30 16:57:19 -04:00
block content
if !me.isTeacher() && view.ownedClassrooms.size()
.alert.alert-danger.text-center
.container
// DNT: Temporary
h3 ATTENTION: Please upgrade your account to a Teacher Account.
p
| We are transitioning to a new improved classroom management system for instructors.
| Please convert your account to ensure you retain access to your classrooms.
a.btn.btn-primary.btn-lg(href="/teachers/convert") Upgrade to teacher account
2016-03-30 16:57:19 -04:00
.container
h1(data-i18n="courses.title")
h2(data-i18n="courses.subtitle")
.courses.container
- var courses = view.courses.models;
- var i = 0;
while i < courses.length
- var course = courses[i];
- i++;
2016-03-30 16:57:19 -04:00
.course.row
.col-sm-9
+course-info(course)
2016-03-30 16:57:19 -04:00
.col-sm-3.hidden
.play-level-form
.form-group
label.control-label
span(data-i18n="courses.select_language")
| :
select.form-control
// TODO: Automate this list @scott
option(value="python")
| Python
option(value="javascript")
| JavaScript
//- option(value="coffeescript")
//- | CoffeeScript (Experimental)
//- option(value="clojure")
//- | Clojure (Experimental)
//- option(value="lua")
//- | Lua
//- option(value="java")
//- | Java
.form-group
label.control-label
span(data-i18n="courses.select_level")
| :
select.form-control
// TODO: Automate this list @scott
option(value='TODO')
| 1. Dungeons of Kithgard
a.btn.btn-lg.btn-primary
span(data-i18n="courses.play_level")
.clearfix
2016-03-30 16:57:19 -04:00
mixin course-info(course)
2016-03-30 16:57:19 -04:00
.course-info
.text-h4.semibold
= course.get('name')
p= course.get('description')
p.concepts.semibold
span(data-i18n="courses.concepts_covered")
| :
each concept in course.get('concepts')
span(data-i18n="concepts." + concept)
if course.get('concepts').indexOf(concept) !== course.get('concepts').length - 1
span.spr ,
if me.isTeacher() && view.ownedClassrooms.size()
if view.guideLinks[course.id]
//- a.btn.btn-primary(href=view.guideLinks[course.id] class=(me.isAnonymous() ? 'disabled' : ''))
//- span(data-i18n="courses.print_guide")
a.btn.btn-primary(href=view.guideLinks[course.id] class=(me.isAnonymous() ? 'disabled' : ''))
span(data-i18n="courses.view_guide_online")
else
i.small
| (
span(data-i18n='teacher.guides_coming_soon')
| )