<h1><span id=school_name></span> Courses</h1>
</header>
- <div id="main-content">
+ <div class="main-content">
<span class="sub_menu" style="display:none;"></span>
<script id="courseTmpl" type="text/x-jquery-tmpl">
</aside>
</div> <!-- .course -->
</script>
- <!--
- <div class="proto course" id=PROTO_course>
- <div class="course-content">
- <a class="course-name" href="/course/___id__">__number__: __name__</a>
- <p class="course-description">
- This is placeholder description text, an intro to description in the nature of things that is quite and very and yes!</p>
- <div class=dept>__department__</div>
- </div>
- <aside class="course-data">
- <div class="course-data-item">
- <div class="course-data-number">20</div>
- <div class="course-data-description">notes</div>
- </div>
- </aside>
- </div>
- -->
-
</div>
<div class="sidebar">
<form method="POST" id="form_course" style="display:none;">
// go to the page that lists the courses for a specific school
router.add('school', function(data, cb) {
+ console.log(data);
$('#school_link').addClass('active');
- $('.sub_menu').hide();
+ tmpl_render();
+ //$('.sub_menu').hide();
//$('#new_course').unbind();
$('#form_course').hide().unbind();
- response = {
+ var response = {
id: 'course',
data: data.school.courses
}
$('#g-footer').fadeIn();
});
$("#school_name").html(data.school.name);
+ $('#courseTmpl').tmpl( data.school.courses ).appendTo("#pg_courses .main-content");
if (data.school.authorized) {
- $('.sub_menu').show();
+ console.log("data school is authorized partner!");
+ //$('.sub_menu').show();
var form = $('#form_course');
- form.toggle();
+ form.show();
form.submit(function(e) {
e.preventDefault();
})
}
- $('#courseTmpl').tmpl( data.school.courses ).appendTo("#pg_courses #main-content");
});
// go to the page that lists the lectures for a specific course