Commit 4550f63e by pmitros

Initial commit

parents
This diff is collapsed. Click to expand it.
<%def name="make_chapter(chapter)">
<h3><a href="#">${chapter['name']}</a></h3>
<div>
<ul>
% for section in chapter['sections']:
<li> <div
% if 'active' in section and section['active']:
style="background-color:#aed0ea;"
% endif
>
<a href='/courseware/${format_string(course_name)}/${format_string(chapter['name'])}/${format_string(section['name'])}'>${section['name']}</a> <br>
<small><b>${section['format']}</b>
% if 'time' in section and section['time']!="":
(${int(section['time'])/60} min)
% endif
% if 'due' in section and section['due']!="":
due ${section['due']}
% endif
</small>
</div>
% endfor
</ul>
</div>
</%def>
% for chapter in toc:
${make_chapter(chapter)}
% endfor
<h3><a href="#">Using the System</a></h3>
<div>
<ul>
<li> Lecture
<li> Homework
<li> Lab
</ul>
</div>
<h3><a href="#">Basic Circuit Analysis</a></h3>
<div>
<ul>
<li> Electronic Text
<li> Introduction <br><small>lecture, 50min, due Feb 1</small>
<li> KVL, KCL, and Resistive <br><small>lecture, 50min, due Feb 3</small>
<li> Nodal analysis <br><small>lecture, 50min, due Feb 5</small>
<li> <div style="background-color:#aed0ea;">Linearity, Superposition <br><small>lecture, 50min, due Feb 7</small></div>
<li> Homework 1 <br><small>due Feb 14</small>
<li> Lab 0 <br><small>due Feb 7</small>
</ul>
</div>
<h3><a href="#">Digital Systems</a></h3>
<div>
<!--ul>
<li> Lecture
<li> Homework
<li> Lab
</ul-->
</div>
<h3><a href="#">Nonlinear Elements</a></h3>
<div>
<!--ul>
<li> Lecture
<li> Homework
<li> Lab
</ul-->
</div>
<h3><a href="#">Analog Amplification</a></h3>
<div>
<!--ul>
<li> Lecture
<li> Homework
<li> Lab
</ul-->
</div>
<h3><a href="#">Capacitors and Inductors</a></h3>
<div>
<!--ul>
<li> Lecture
<li> Homework
<li> Lab
</ul-->
</div>
<h3><a href="#">Operational Amplifiers</a></h3>
<div>
<!--ul>
<li> Lecture
<li> Homework
<li> Lab
</ul-->
</div>
<h3><a href="#">Applications</a></h3>
<div>
<!--ul>
<li> Lecture
<li> Homework
<li> Lab
</ul-->
</div>
$("#accordion").accordion({active:${ active_chapter }});
<h1> Activation Complete </h1>
<p> Now go <a href="/">log in</a> and try the course!
Someone, hopefully you, signed up for an account for MIT's on-line
offering of 6.002 using this email address. If it was you, and you'd
like to activate and use your account, copy and paste this address
into your web browser's address bar:
http://${ site }/activate/${ key }
If you didn't request this, you don't need to do anything; you won't
receive any more email from us.
Your account for MIT's on-line 6.002
<h1> Activation Invalid </h1>
<p> Something went wrong. Did you already activate the account? If so,
go <a href="/">log in</a> and try the course. Otherwise, e-mail us to
let us know what happened.
<%inherit file="main.html" />
<!-- TODO: http://docs.jquery.com/Plugins/Validation -->
<script type="text/javascript">
$(function() {
${init}
// Show and hide sidebar
var acc_hidden=false;
$('#hide_acc').click(function() {
if(acc_hidden) {
$('#accordion').show();
$('#acc_td').attr("width","320");
$('#hide_acc').html("&lt;<br>&lt;<br>&lt;");
acc_hidden=false;
} else {
$('#accordion').hide();
$('#acc_td').attr("width","0");
$('#hide_acc').html("&gt;<br>&gt;<br>&gt;");
acc_hidden=true;
}
});
});
</script>
<table width=100%>
<tr><td id="acc_td" width=320 rowspan=2 valign=top>
<div id="accordion">
${accordion}
</div>
</td><td rowspan=2 valign=center><div id="hide_acc">&lt;<br>&lt;<br>&lt;</div></td>
<td align=right valign=top><a href="/courseware"><b>Digital Textbook</b></a>
<span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/discussion">Discussion</a>
<span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/profile">Profile</a>
<span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/help">Help</a> <span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/logout">Log out</a>
</td></tr><tr><td valign=top>
${content}
</td></tr></table>
<div name="enroll_form" id="enroll_form">
<form name="login" method="get">
<%
if 'error' in locals():
e = error
%>
<table width=360><tr><td>
<tr><td colspan=3 align=center
style="color:red;"><div id="enroll_error"
name="enroll_error"></div></td></tr>
<tr><td align=right>Username</td><td><input name="username"
id="ca_username" type="text"> </td><td></span> </td></tr>
<tr><td align=right>E-mail</td><td><input name="email" id="ca_email"
type="text"> </td><td></td></tr>
<tr><td align=right>Password</td><td><input name="password"
id="ca_password" type="password"> </td><td></td></tr>
<tr><td align=right>Full name</td><td><input name="name" id="ca_name" type="input"> </td><td><span class="ui-icon ui-icon-help" id="spinner_name" style="display:inline-block;"></td></tr>
<tr><td colspan=3 align=center><div style="display:none" id="sregion_name">If you would
like us to give you a certificate of completion at the end, we need
your full legal name, as you would like it to appear on the
certificate (e.g. &quot;John Smith, Jr&quot;). Otherwise, feel free to
leave it blank. </div> </td></tr>
<tr><td align=right>Location</td><td><input name="location" id="ca_location" type="input"> </td><td><span class="ui-icon ui-icon-help" id="spinner_location" style="display:inline-block;"></td></tr>
<tr><td colspan=3 align=center><div style="display:none" id="sregion_location">Preferred format is city, state, country (so for us,
&quot;Cambridge, Massachusetts, USA&quot;). We'd eventually like to
group people into study groups. Studies show that geographic proximity
helps. It'll also help us understand efforts needed for
internationalization, low bandwidth, cultural issues, etc. We may also
use statistics from this to help us raise money. </div></td></tr>
<tr><td align=right>Preferred Language</td><td><input name="language"
id="ca_language" type="input"> </td><td><span class="ui-icon ui-icon-help" id="spinner_language" style="display:inline-block;"></td></tr>
<tr><td colspan=3 align=center><div style="display:none" id="sregion_language">Please let us
know what language you'd most like to see the content in (even if not
your native). We're working on translations and
internationalization. This will help us know what languages and
regions to focus on. </div></td></tr>
<tr><td align=right><input name="terms_of_service"
id="cb_terms_of_service" type="checkbox"
value="terms_of_service"></td><td colspan=2>I agree to the Terms of
Service</td></tr>
<tr><td align=right><input name="honor_code" id="cb_honor_code"
type="checkbox" value="honor_code"></td><td colspan=2>I agree
to:</td></tr>
<tr><td colspan=3 align=center>
<br>
Not engage in any activities that would dishonestly improve my
results, or improve or hurt those of others
<br><br>
Never post answers to problems
<br><br>
Maintain only one account
<br><br>
</ol>
</td></tr>
<tr><td align=right></td><td align=right><input name="create_account_button"
id="create_account_button" type="button" value="Create
Account"> </td><td></td></tr>
</table>
</form>
</div>
<h1> ${ homework['name']} </h1>
% for problem in homework['problems']:
<h2> ${ problem['name'] } </h2>
${ problem['html'] }
<br>
<input type="hidden" name="problem_id" value="${ problem['name'] }">
<input type="submit" value="Check">
% endfor
<%inherit file="main.html" />
<script>
$(function() {
/* Set up FancyBox pop-ups */
$("a#inline").fancybox({
'hideOnContentClick': false
});
// TODO: Clean up as per http://stackoverflow.com/questions/169506/obtain-form-input-fields-using-jquery
/* Handles when the user hits 'enroll'. Grabs form data. Does AJAX.
Either shows error, or shows success. */
$('#create_account_button').click(function() {
var submit_data={};
$.each($("[id^=ca_]"), function(index,value){
submit_data[value.name]=value.value;
});
$.each($("[id^=cb_]"), function(index,value){
submit_data[value.name]=value.checked;
});
$.getJSON('/create_account',
submit_data,
function(json) {
if(json.success) {
$('#enroll').html(json.value);
} else {
$('#enroll_error').html(json.value);
}
}
);
});
/* Handles when the user tries to log in. Grabs form data. Does AJAX.
Either shows error, or redirects. */
$('#login_button').click(function() {
var submit_data={};
$.each($("[id^=li_]"), function(index,value){
submit_data[value.name]=value.value;
});
$.getJSON('/login',
submit_data,
function(json) {
if(json.success) {
location.href="/courseware";
} else {
$('#login_error').html("Invalid Login");
}
}
);
});
$('#pwd_reset_button').click(function() {
$.post('/password_reset/',{ "csrfmiddlewaretoken" : "${ csrf }",
"email" : $('#id_email').val()}, function(data){
$('#pwd_reset').html(data);
});
});
/* Activate stupid spinner drop-downs in enrollment form */
var spinner_array=$("[id^=spinner_]");
spinner_array.each(function(i) {
var s=spinner_array[i];
$("#"+s.id).click(function(){
$("#sregion"+s.id.substring(7)).toggle();
});
})
/*$("sregion"+$("[id^=spinner_]")[1].id.substring(7)) */
});
</script>
<div id="topWrapper">
<div id="topBanner"></div>
</div>
<div id="topnav">
<ul>
<li id="current" style="border:none">
<a href="#" shape="rect">Home</a>
</li>
<li style="border:none">
<a href="/t/info.html" shape="rect">Course Info</a>
</li>
<li style="border:none">
<a href="/t/staff.html" shape="rect">Instructors</a>
</li>
<li style="border:none">
<a href="http://books.google.com/books/about/Foundations_of_analog_and_digital_electr.html?id=6_mt26W5VMUC" shape="rect">Textbook</a>
</li>
</ul>
</div>
<!-- end top wrapper -->
<div id="wrapper">
<div id="bg">
<div id="header"></div>
<div id="page">
<!-- begin container -->
<div id="container">
<!-- content -->
<div id="content">
<center>
<table>
<tr><td align=right><big><a id="inline" href="#enroll">Enroll &gt;&gt;</a><br><br><br>
<a id="inline" href="#login">Log In &gt;&gt;</a></big></td><td><div style="width:50px; float:center;"></div></td><td>
<div style="width:300px; float:center;">
Taught by Anant Agarwal, with Gerald Sussman, Piotr Mitros, and Chris
Terman, "6.002 Circuits and Electronics" is an an on-line adaption of
MIT's first undergraduate analog design course. This course will run,
free of charge, for students worldwide from February 1, 2012 through
July 1, 2012.
<br><br>Students who successfully complete the course will receive an
electronic certificate of accomplishment from MIT. Students will not
receive course credit, but students successfully finishing the course
will be well-placed to take an exam to pass out of 6.002 should they
ever enroll at MIT, and potentially, similar courses at other schools.
<br><br> In order to succeed in this course, students must have some
background in calculus and differential equations. Since more advanced
mathematics will not show up until the second half of the course, the
first half of the course will include an optional remedial
differential equations component for students with weaker math
backgrounds.
</div>
<div style="display:none"><div id="enroll" name="enroll"><%include file="create_account.html" /></div></div>
<div style="display:none"><div id="login"><%include file="login.html" /></div></div>
<div style="display:none"><div id="pwd_reset"><%include file="password_reset_form.html" /></div></div>
<div style="display:none"><div id="reset_done"></div></div>
</td></tr></table>
</div>
<!-- end content -->
</div>
<!-- end container -->
</div>
<div id="footerWrapper"></div>
</div>
</div>
<div id="bottomWrapper">
<div id="footer">
<p style="padding-top:20px"> Copyright (c). 2011. MIT. <a href=http://creativecommons.org/licenses/by-sa/3.0/>Some rights reserved.</a>
<!-- Template based on a design from http://www.dotemplate.com/ -- Donated $10 (pmitros) so we don't need to include credit. -->
</p>
</div>
</div>
<%inherit file="main.html" />
<div id="topWrapper">
<div id="topBanner"></div>
</div>
<div id="topnav">
<ul>
<li style="border:none">
<a href="/" shape="rect">Home</a>
</li>
<li id="current" style="border:none">
<a href="/t/info.html" shape="rect">Course Info</a>
</li>
<li style="border:none">
<a href="/t/staff.html" shape="rect">Instructors</a>
</li>
<li style="border:none">
<a href="http://books.google.com/books/about/Foundations_of_analog_and_digital_electr.html?id=6_mt26W5VMUC" shape="rect">Textbook</a>
</li>
</ul>
</div>
<!-- end top wrapper -->
<div id="wrapper">
<div id="bg">
<div id="header"></div>
<div id="page">
<!-- begin container -->
<div id="container">
<!-- content -->
<div id="content">
<center>
<table><tr><td>
<h1>About 6.002</h1>
<p> 6.002 is designed to serve as a first course in an undergraduate
electrical engineering (EE), or electrical engineering and computer
science (EECS) curriculum. At MIT, 6.002 is in the core of department
subjects required for all undergraduates in EECS.
<p> The course introduces engineering in the context of the lumped
circuit abstraction. Topics covered include: resistive elements and
networks; independent and dependent sources; switches and MOS
transistors; digital abstraction; amplifiers; energy storage elements;
dynamics of first- and second-order networks; design in the time and
frequency domains; and analog and digital circuits and
applications. Design and lab exercises are also significant components
of the course. 6.002 is worth 4 Engineering Design Points. The 6.002
content was created collaboratively by Profs. Anant Agarwal and
Jeffrey H. Lang.
<p> The course uses the textbook Foundations of Analog and Digital
Electronic Circuits. Agarwal, Anant, and Jeffrey H. Lang. San Mateo,
CA: Morgan Kaufmann Publishers, Elsevier, July 2005. ISBN:
9781558607354. While recommended, the book is not required -- relevant
section will be provided electronically as part of the on-line course.
</td></tr></table>
</div>
<!-- end content -->
</div>
<!-- end container -->
</div>
<div id="footerWrapper"></div>
</div>
</div>
<div id="bottomWrapper">
<div id="footer">
<p style="padding-top:20px"> Copyright (c). 2011. MIT. <a href=http://creativecommons.org/licenses/by-sa/3.0/>Some rights reserved.</a>
<!-- Template based on a design from http://www.dotemplate.com/ -- Donated $10 (pmitros) so we don't need to include credit. -->
</p>
</div>
</div>
<!-- TODO: http://docs.jquery.com/Plugins/Validation -->
${ error }
<div id="login_div">
<table><tr><td>
<form name="login" action="/login" method="get">
<tr><td colspan=2 align=center><div id="login_error"></div></td></tr>
<tr><td align=right>E-mail</td><td><input name="email" id="li_email" type="text"> </td></tr>
<tr><td align=right>Password</td><td><input name="password" id="li_email" type="password"> </td></tr>
<!--tr><td align=right><input name="remember" type="checkbox" value="remember"></td><td>Remember me </td></tr-->
<tr><td align=right></td><td align=right><input name="submit" id="login_button" type="button" value="Log in"> </td></tr>
</form>
</td></tr></table>
<div align=center>
<div id="lost_password"><a id="inline" href="#pwd_reset">Lost password?</a></div>
</div>
</div>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title> MIT World 6.002 </title>
<link rel="stylesheet" href="/static/css/theme.css" type="text/css" media="all" />
<script src="//www.google.com/jsapi"></script>
<link href="/static/css/cupertino/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css"/>
<style type="text/css">#slider { margin: 10px; }</style>
<script type="text/javascript" src="/static/js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="/static/js/jquery-ui-1.8.16.custom.min.js"></script>
<script>google.load("swfobject", "2.1");</script>
<script type="text/javascript" src="/static/js/video_player.js"></script>
<style type="text/css">#slider { margin: 10px; }</style>
<!-- Warning: Do not upgrade FancyBox. V2.0 is under a non-free CC license -->
<script type="text/javascript" src="/static/js/fancybox/jquery.fancybox-1.3.4.js"></script>
<link rel="stylesheet" href="/static/js/fancybox/jquery.fancybox-1.3.4.css">
</head>
<body>
${self.body()}
<center>Copyright &copy; 2011. Massachusetts Institute of Technology. Some rights reserved. </center>
</body>
</html>
<h1>Password reset</h1>
<p>Forgotten your password? Enter your e-mail address below, and we'll e-mail instructions for setting a new one.</p>
<form action="/password_reset/" method="post">
<input type='hidden' name='csrfmiddlewaretoken' value='${ csrf }' />
<p><label for="id_email">E-mail address:</label> <input id="id_email" type="text" name="email" maxlength="75" /> <input type="button" id="pwd_reset_button" value="Reset my password" /></p>
</form>
<h2> ${ problem['name'] } </h2>
${ problem['html'] }
<br>
<input type="hidden" name="problem_id" value="${ problem['name'] }">
<script>$(function() {
$('#check_${ id }').click(function() {
var submit_data={};
$.each($("[id^=input_${ id }_]"), function(index,value){
submit_data[value.id]=value.value;
});
if($('#check_${ id }').attr('value') == 'Check') {
$.getJSON('/modx/problem/${ id }/problem_check',
submit_data,
function(json) {
for(p in json) {
if(json[p]=='correct')
$("#status_"+p).attr("class", "ui-icon ui-icon-check");
if(json[p]=='incorrect')
$("#status_"+p).attr("class", "ui-icon ui-icon-close");
$('#check_${ id }').attr("value", "Reset");
}
});
} else /* if 'Reset' */ {
$.getJSON('/modx/problem/${ id }/problem_reset', {'id':'${ id }'}, function(json) {
location.reload(true); // TODO: Reimplement with AJAX.
});
}
});
});
</script>
<input id="check_${ id }" type="button" value="Check" >
<!--$("[id^=input_resistor_]");-->
<%inherit file="main.html" />
<div align="right"><table><tr><td align=right valign=top><a href="/courseware">Digital Textbook</a>
<span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/discussion">Discussion</a>
<span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/profile"><b>Profile</b></a>
<span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/help">Help</a> <span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/logout">Log out</a>
</td></tr><tr><td valign=top>
</td></tr></table>
<center>
<br><br><br><br>
<h1> ${name} </h1>
<table><td align=right>Username:</td><td>${username}</td></tr>
<td align=right>E-mail:</td><td>${email}</td></tr>
<td align=right>Location:</td><td>${location}</td></tr>
<td align=right>Language:</td><td>${language}</td></tr></table>
<h1> Course Status </h1>
<table>
% for hw in homeworks:
<td> ${ hw['chapter'] }</td><td>/</td> <td> ${ hw['section'] } </td><td>&nbsp;</td><td>
% for score in hw['scores']:
${ score[0] }/${ score[1] }
% endfor
</td>
% endfor
</table>
</center>
<br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br>
<hr>
{% load humanize %}
Someone, hopefully you, signed up for a new account at djangoproject.com using this email address. If it was you, and you'd like to activate and use your account, click the link below or copy and paste it into your web browser's address bar:
http://127.0.0.1:8000/accounts/activate/{{ activation_key }}/
If you didn't request this, you don't need to do anything; you won't receive any more email from us, and the account will expire automatically in {{ expiration_days|apnumber }} days.
Activate your djangoproject.com account - you have {{ expiration_days }} days!
{% extends "admin/base_site.html" %}
{% load i18n admin_modify adminmedia %}
{% load url from future %}
{% block extrahead %}{{ block.super }}
{% url 'admin:jsi18n' as jsi18nurl %}
<script type="text/javascript" src="{{ jsi18nurl|default:"../../../../jsi18n/" }}"></script>
{% endblock %}
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />{% endblock %}
{% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %}
{% block breadcrumbs %}{% if not is_popup %}
<div class="breadcrumbs">
<a href="../../../../">{% trans "Home" %}</a> &rsaquo;
<a href="../../../">{{ opts.app_label|capfirst|escape }}</a> &rsaquo;
<a href="../../">{{ opts.verbose_name_plural|capfirst }}</a> &rsaquo;
<a href="../">{{ original|truncatewords:"18" }}</a> &rsaquo;
{% trans 'Change password' %}
</div>
{% endif %}{% endblock %}
{% block content %}<div id="content-main">
<form action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% csrf_token %}{% block form_top %}{% endblock %}
<div>
{% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %}
{% if form.errors %}
<p class="errornote">
{% blocktrans count form.errors.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
</p>
{% endif %}
<p>{% blocktrans with original.username as username %}Enter a new password for the user <strong>{{ username }}</strong>.{% endblocktrans %}</p>
<fieldset class="module aligned">
<div class="form-row">
{{ form.password1.errors }}
{# TODO: get required class on label_tag #}
<label for="id_password1" class="required">{% trans 'Password' %}:</label> {{ form.password1 }}
</div>
<div class="form-row">
{{ form.password2.errors }}
{# TODO: get required class on label_tag #}
<label for="id_password2" class="required">{% trans 'Password (again)' %}:</label> {{ form.password2 }}
<p class="help">{% trans 'Enter the same password as above, for verification.' %}</p>
</div>
</fieldset>
<div class="submit-row">
<input type="submit" value="{% trans 'Change password' %}" class="default" />
</div>
<script type="text/javascript">document.getElementById("id_password1").focus();</script>
</div>
</form></div>
{% endblock %}
{% extends "admin/base_site.html" %}
{% load i18n %}
{% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a></div>{% endblock %}
{% block content %}
<p>{% trans "Thanks for spending some quality time with the Web site today." %}</p>
<p><a href="../">{% trans 'Log in again' %}</a></p>
{% endblock %}
{% extends "registration/base.html" %}
{% block title %}Log in{% endblock %}
{% block content %}
<h1>Log in</h1>
{% if form.errors %}
<p class="error">Please correct the errors below:</p>
{% endif %}
<form method="post" action="?next={{ next|default:"/" }}">
{% csrf_token %}
<dl>
<dt><label for="id_username">Username:</label>{% if form.username.errors %} <span class="error">{{ form.username.errors|join:", " }}</span>{% endif %}</dt>
<dd>{{ form.username }}</dd>
<dt><label for="id_password">Password:</label>{% if form.password.errors %} <span class="error">{{ form.password.errors|join:", " }}</span>{% endif %}</dt>
<dd>{{ form.password }}</dd>
<dt><input type="submit" value="Log in" /></dt>
</dl>
</form>
{% endblock %}
{% block content-related %}
<p>If you don't have an account, you can <a href="/accounts/register/">sign
up</a> for one.
{% endblock %}
{% extends "registration/base.html" %}
{% block title %}Logged out{% endblock %}
{% block content %}
<h1>You've been logged out.</h1>
<p>Thanks for stopping by; when you come back, don't forget to <a href="/accounts/login/">log in</a> again.</p>
{% endblock %}
\ No newline at end of file
{% extends "admin/base_site.html" %}
{% load i18n %}
{% load url from future %}
{% block userlinks %}{% url 'django-admindocs-docroot' as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / {% endif %}{% trans 'Change password' %} / <a href="../../logout/">{% trans 'Log out' %}</a>{% endblock %}
{% block breadcrumbs %}<div class="breadcrumbs"><a href="../../">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password change' %}</div>{% endblock %}
{% block title %}{% trans 'Password change successful' %}{% endblock %}
{% block content %}
<h1>{% trans 'Password change successful' %}</h1>
<p>{% trans 'Your password was changed.' %}</p>
{% endblock %}
{% extends "admin/base_site.html" %}
{% load i18n adminmedia %}
{% load url from future %}
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />{% endblock %}
{% block userlinks %}{% url 'django-admindocs-docroot' as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / {% endif %} {% trans 'Change password' %} / <a href="../logout/">{% trans 'Log out' %}</a>{% endblock %}
{% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password change' %}</div>{% endblock %}
{% block title %}{% trans 'Password change' %}{% endblock %}
{% block content %}<div id="content-main">
<form action="" method="post">{% csrf_token %}
<div>
{% if form.errors %}
<p class="errornote">
{% blocktrans count form.errors.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
</p>
{% endif %}
<h1>{% trans 'Password change' %}</h1>
<p>{% trans "Please enter your old password, for security's sake, and then enter your new password twice so we can verify you typed it in correctly." %}</p>
<fieldset class="module aligned wide">
<div class="form-row">
{{ form.old_password.errors }}
<label for="id_old_password" class="required">{% trans 'Old password' %}:</label>{{ form.old_password }}
</div>
<div class="form-row">
{{ form.new_password1.errors }}
<label for="id_new_password1" class="required">{% trans 'New password' %}:</label>{{ form.new_password1 }}
</div>
<div class="form-row">
{{ form.new_password2.errors }}
<label for="id_new_password2" class="required">{% trans 'Password (again)' %}:</label>{{ form.new_password2 }}
</div>
</fieldset>
<div class="submit-row">
<input type="submit" value="{% trans 'Change my password' %}" class="default" />
</div>
<script type="text/javascript">document.getElementById("id_old_password").focus();</script>
</div>
</form></div>
{% endblock %}
{% load i18n %}
<h1> Password reset complete </h1>
{% block content %}
Your password has been set. You may go ahead and <a href="/">log in</a> now.
{% endblock %}
{% block content %}
{% if validlink %}
<h1>Enter new password</h1>
<p>Please enter your new password twice so we can verify you typed it in correctly.</p>
<form action="" method="post">{% csrf_token %}
{{ form.new_password1.errors }}
<p class="aligned wide"><label for="id_new_password1">New password:</label>{{ form.new_password1 }}</p>
{{ form.new_password2.errors }}
<p class="aligned wide"><label for="id_new_password2">Confirm password:</label>{{ form.new_password2 }}</p>
<p><input type="submit" value="Change my password" /></p>
</form>
{% else %}
<h1>Password reset unsuccessful</h1>
<p>The password reset link was invalid, possibly because it has already been used. Please request a new password reset.</p>
{% endif %}
{% endblock %}
{% block title %}Password reset successful{% endblock %}
{% block content %}
<h1>Password reset successful</h1>
<p>We've e-mailed you instructions for setting your password to the e-mail address you submitted. You should be receiving it shortly.</p>
{% endblock %}
{% load i18n %}{% load url from future %}{% autoescape off %}
{% blocktrans %}You're receiving this e-mail because you requested a password reset for your user account at {{ site_name }}.{% endblocktrans %}
{% trans "Please go to the following page and choose a new password:" %}
{% block reset_link %}
{{ protocol }}://{{ domain }}{% url 'django.contrib.auth.views.password_reset_confirm' uidb36=uid token=token %}
{% endblock %}
{% trans "Your username, in case you've forgotten:" %} {{ user.username }}
{% trans "Thanks for using our site!" %}
{% blocktrans %}The {{ site_name }} team{% endblocktrans %}
{% endautoescape %}
<h1>Password reset</h1>
<p>Forgotten your password? Enter your e-mail address below, and we'll e-mail instructions for setting a new one.</p>
<form action="" method="post">{% csrf_token %}
{{ form.email.errors }}
<p><label for="id_email">E-mail address:</label> {{ form.email }} <input type="submit" value="Reset my password" /></p>
</form>
<h1>Check your email</h1>
<p>An activation link has been sent to ${ email }, along with
instructions for activating your account.</p>
{% extends "registration/base.html" %}
{% block title %}Registration complete{% endblock %}
{% block content %}
<h1>Check your email</h1>
<p>An activation link has been sent to the email address you supplied, along with instructions for activating your account.</p>
{% endblock %}
\ No newline at end of file
{% extends "registration/base.html" %}
{% block title %}Sign up{% endblock %}
{% block content %}
{% if form.errors %}
<p class="errors">Please correct the errors below: {{ form.non_field_errors }}</p>
{% endif %}
<h1>Create an account</h1>
<form method="post" action="" class="wide">
{% csrf_token %}
<p>
<label for="id_username">Username:</label>
{% if form.username.errors %}
<p class="errors">{{ form.username.errors.as_text }}</p>
{% endif %}
{{ form.username }}
</p>
<p>
<label for="id_email">Email address:</label>
{% if form.email.errors %}
<p class="errors">{{ form.email.errors.as_text }}</p>
{% endif %}
{{ form.email }}
</p>
<p>
<label for="id_password1">Password:</label>
{% if form.password1.errors %}
<p class="errors">{{ form.password1.errors.as_text }}</p>
{% endif %}
{{ form.password1 }}
</p>
<p>
<label for="id_password2">Password (type again to catch typos):</label>
{% if form.password2.errors %}
<p class="errors">{{ form.password2.errors.as_text }}</p>
{% endif %}
{{ form.password2 }}
</p>
<p class="submit"><input type="submit" value="Register &rarr;"></p>
</form>
{% endblock %}
{% block content-related %}
<p>Fill out the form to the left (all fields are required), and your
account will be created; you'll be sent an email with instructions on how
to finish your registration.</p>
<p>We'll only use your email to send you signup instructions. We hate spam
as much as you do.</p>
<p>This account will let you log into the ticket tracker, claim tickets,
and be exempt from spam filtering.</p>
{% endblock %}
<%inherit file="main.html" />
<div id="topWrapper">
<div id="topBanner"></div>
</div>
<div id="topnav">
<ul>
<li style="border:none">
<a href="/" shape="rect">Home</a>
</li>
<li style="border:none">
<a href="/t/info.html" shape="rect">Course Info</a>
</li>
<li id="current" style="border:none">
<a href="/t/staff.html" shape="rect">Instructors</a>
</li>
<li style="border:none">
<a href="http://books.google.com/books/about/Foundations_of_analog_and_digital_electr.html?id=6_mt26W5VMUC" shape="rect">Textbook</a>
</li>
</ul>
</div>
<!-- end top wrapper -->
<div id="wrapper">
<div id="bg">
<div id="header"></div>
<div id="page">
<!-- begin container -->
<div id="container">
<!-- content -->
<div id="content">
<center>
<table>
<tr> <td colspan=3> <h1>About the course staff</h1></td></tr>
<tr><td width=110><img src="/static/staff/agarwal-mit-news-small.jpg"></td><td width=400 colspan=2> <p> Anant Agarwal is Director the MIT's Computer Science and Artificial
Intelligence Laboratory. His research focus is in parallel computer
architectures, and he is the founder of several successful
startups. Most recently, he founded Tilera, which produces scalable
multicore embedded processors. He co-author the course textbook
"Foundations of Analog and Digital Electronic Circuits." </td></tr>
<tr><td width=110><img src="/static/staff/cjt-small.jpg"></td><td colspan=2> <p> Chris Terman is Co-Director MIT CSAIL, and a highly regarded
instructor. He is the author of JSim, an educational package for
on-line circuit schematic entry and simulation, and XTutor, and
on-line question-and-answer tutoring system. </td></tr>
<tr><td><img src="/static/staff/gjs-small.jpg"></td><td colspan=2> <p> Gerald Sussman is a Professor of Electrical Engineering at MIT. He
is a well know educator in the computer science community, perhaps
best know as the author of Structure and Interpretation of Computer
Programs, which is universally acknowledged as one of the top ten
textboooks in computer science, or as the creator of Scheme, a popular
teaching language. His research spans a range of topics, from
artifical intelligence, to physics and chaotic systems, to
supercomputer design.</td></tr>
<tr><td><img src="/static/staff/pmitros-small.jpg"></td><td colspan=2> <p> Piotr Mitros is a Research Scientist at MIT. His research focus is
in finding ways to apply techniques from control systems to optimizing
the learning process. Piotr has worked as an analog designer at Texas
Instruments, Talking Lights, and most recently, designed the analog
front end for a novel medical imaging modality for Rhythmia Medical.</td></tr>
</td></tr></table>
</div>
<!-- end content -->
</div>
<!-- end container -->
</div>
<div id="footerWrapper"></div>
</div>
</div>
<div id="bottomWrapper">
<div id="footer">
<p style="padding-top:20px"> Copyright (c). 2011. MIT. <a href=http://creativecommons.org/licenses/by-sa/3.0/>Some rights reserved.</a>
<!-- Template based on a design from http://www.dotemplate.com/ -- Donated $10 (pmitros) so we don't need to include credit. -->
</p>
</div>
</div>
<div id="tabs">
<ul>
% for t in tabs:
<li> <a href="#tabs-${tabs.index(t)}">${t[0]}</a>
% endfor
</ul>
% for t in tabs:
<div id="tabs-${tabs.index(t)}">
${t[1]['content']}
</div>
% endfor
</div>
var tab_funcs=[]
## We'd like to refresh the contents of tabs when they're shown again, but this probably
## isn't the way
## % for t in tabs:
## % if 'js' in t[1]:
## tab_funcs.push(function(){ ${t[1]['js']} });
## % else:
## tab_funcs.push(function(){});
## % endif
## % endfor
$("#tabs").tabs({select:function(event, ui){
## tab_funcs[ui.index]();
}});
<h1> Using the system </h1>
<ul>
<li> During video playback, use the subtitles and the scroll bar to
navigate. Clicking the subtitles is a fast way to skip forwards and
backwards by small amounts.
<li> If you are on a low-resolution display, the left navigation bar
can be hidden by clicking on the set of three left arrows next to it.
<li> If you need bigger or smaller fonts, use your browsers settings
to scale them up or down. Under Google Chrome, this is done by
pressing ctrl-plus, or ctrl-minus at the same time.
</ul>
<div>
% for t in items:
<div id="vert-${items.index(t)}">
${t[1]['content']}
</div>
% endfor
</div>
<table>
<tr><td rowspan=13 colspan=4>
<div id="ytapiplayer">
You need Flash player 8+ and JavaScript enabled to view this video.
</div>
<script type="text/javascript">
var params = { allowScriptAccess: "always", bgcolor: "#cccccc" };
var atts = { id: "myytplayer" };
swfobject.embedSWF("http://www.youtube.com/apiplayer?enablejsapi=1&playerapiid=ytplayer",
"ytapiplayer", "400", "300", "8", null, null, params, atts);
</script>
</td>
<td width=15> <span class="" onclick="">&nbsp;</span></td><td colspan=2 id=stt_n5 align=center><div id=std_n5 onclick="title_seek(-5);">&nbsp;</div></td></tr>
<tr><td width=15><span class="" onclick="">&nbsp;</span></td><td colspan=2 id=stt_n4 align=center><div id=std_n4 onclick="title_seek(-4);">&nbsp;</div></td></tr>
<tr><td width=15><span class="" onclick="">&nbsp;</span></td><td colspan=2 id=stt_n3 align=center><div id=std_n3 onclick="title_seek(-3);">&nbsp;</div></td></tr>
<tr><td width=15><span class="" onclick="">&nbsp;</span></td><td colspan=2 id=stt_n2 align=center><div id=std_n2 onclick="title_seek(-2);">&nbsp;</div></td></tr>
<tr><td width=15><span class="" onclick="">&nbsp;</span></td><td colspan=2 id=stt_n1 align=center><div id=std_n1 onclick="title_seek(-1);">&nbsp;</div></td></tr>
<tr><td width=15><span class="" onclick="">&nbsp;</span></td><td colspan=2 id=stt_0 align=center bgcolor=#aed0ea><div id=std_0 onclick="title_seek(0);">&nbsp;</div></td></tr>
<tr><td width=15><span class="" onclick="">&nbsp;</span></td><td colspan=2 id=stt_p1 align=center><div id=std_p1 onclick="title_seek( 1);">&nbsp;</div></td></tr>
<tr><td width=15><span class="" onclick="">&nbsp;</span></td><td colspan=2 id=stt_p2 align=center><div id=std_p2 onclick="title_seek( 2);">&nbsp;</div></td></tr>
<tr><td width=15><span class="" onclick="">&nbsp;</span></td><td colspan=2 id=stt_p3 align=center><div id=std_p3 onclick="title_seek( 3);">&nbsp;</div></td></tr>
<tr><td width=15><span class="" onclick="">&nbsp;</span></td><td colspan=2 id=stt_p4 align=center><div id=std_p4 onclick="title_seek( 4);">&nbsp;</div></td></tr>
<tr><td width=15><span class="" onclick="">&nbsp;</span></td><td colspan=2 id=stt_p5 align=center><div id=std_p5 onclick="title_seek( 5);">&nbsp;</div></td></tr>
<tr><td width=15><span class="" onclick="">&nbsp;</span></td><td colspan=2 id=stt_p6 align=center><div id=std_p7 onclick="title_seek( 6);">&nbsp;</div></td></tr>
<tr><td></td></tr>
<tr><td width=15><span class="ui-icon ui-icon-play" onclick="play();"></span></td>
<td width=15><span class="ui-icon ui-icon-pause" onclick="pause();"></span></td>
<td width=500 colspan=4><div id=slider></div></td></tr>
</table>
<div align=right>0.75x 1x 1.25x 1.5x </div>
var captions=0;
$("#slider").slider({slide:function(event,ui){seek_slide('slide',event.originalEvent,ui.value);},
stop:function(event,ui){seek_slide('stop',event.originalEvent,ui.value);}});
loadNewVideo('${id}');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment