Commit Graph

58450 Commits

Author SHA1 Message Date
ichuang
a093b86841 problem.coffee change: show answer -> also show solution_* & do mathjax typeset 2012-06-21 10:59:37 -04:00
ichuang
8030bce0c0 bugfixes - correctmap should reinit self.cmap on init 2012-06-21 10:59:37 -04:00
ichuang
70e942fe2b fourth pass in capa cleanup:
- Added hints + hintmethod
  - hintgroup compatible with loncapa spec
  - also does hintfn for custom hints (can do answer history)
  - GenericResponse -> LoncapaResponse
  - moved response type tags into responsetype classes
  - capa_problem should use __future__ division
  - hints stored in CorrectMap, copied to 'feedback' in SimpleInput for display
2012-06-21 10:59:36 -04:00
ichuang
57c1aa7b3d third pass in capa cleanup: correct_map -> CorrectMap
- added correctmap.py with CorrectMap class
  - messages subsumed into CorrectMap
  - response get_score called with old CorrectMap so hints based on history are possible
2012-06-21 10:59:36 -04:00
ichuang
a3d24d41f5 second pass in capa cleanup:
- each response can now render its own xhtml
  - cleaned up LoncapaProblem.extract_html
2012-06-21 10:59:36 -04:00
ichuang
ff9f8c9779 responsetypes - fix comment 2012-06-21 10:59:36 -04:00
ichuang
f1a12a2604 first pass in capa cleanup:
- responsetype used to be instantiated multiple times(!) in capa_problem
     now it is instantiated once, and stored in self.responders
   - responsetypes.GenericResponse restructured; each superclass
     show now provide setup_response (and not __init__), and may
     provide get_max_score(); general __init__ provided to
     clean up superclasses.
2012-06-21 10:59:36 -04:00
ichuang
ec0b451e7f add msg to textinput_dynamath 2012-06-21 10:59:36 -04:00
Calen Pennington
cabcc0c1d9 Allow login in the cms, and read a particular course from mongo 2012-06-21 10:59:36 -04:00
Calen Pennington
338547343e Get the cms up to the point of rendering a template 2012-06-21 10:59:36 -04:00
Calen Pennington
3c07c2b158 Make mitxmako available to both the lms and the cms 2012-06-21 10:59:35 -04:00
Matthew Mongeau
2f79936074 Got basic login working 2012-06-21 10:59:13 -04:00
Matthew Mongeau
dd6215ca18 wip 2012-06-21 10:50:55 -04:00
Matthew Mongeau
941a03f1d0 Point login form to login. 2012-06-21 10:43:38 -04:00
Matthew Mongeau
67487f8ad2 Modal wip 2012-06-21 10:38:33 -04:00
Matthew Mongeau
6dd47547c7 wip modal 2012-06-21 09:51:03 -04:00
ichuang
a2e2b6e445 allow javascript in problem xml 2012-06-20 23:37:40 -04:00
ichuang
a892752b89 add 18.06x to dev_ike.py 2012-06-20 22:16:35 -04:00
Victor Shnayder
63b3999ef1 Big refactor of content_parser
* Separate out all xml processing code from django code
* Preparing to move the content parsing parts into common/lib/xmodule (?)
2012-06-20 19:16:55 -04:00
Galen Frechette
78b0e86334 cleans up login modal and adds js for toggling login modal 2012-06-20 18:37:07 -04:00
Matthew Mongeau
c517b9e854 Merge branch 'prototype' of github.com:MITx/mitx into prototype 2012-06-20 17:35:56 -04:00
Victor Shnayder
8ca56ed451 Merge pull request #129 from MITx/victor/progress-bugfix
bugfix: lcp score can apparently be 0/0
2012-06-20 14:29:58 -07:00
Victor Shnayder
95806847d0 bugfix: lcp score can apparently be 0/0 2012-06-20 17:20:34 -04:00
Galen Frechette
ec1510ca52 adds login modal 2012-06-20 16:20:31 -04:00
Calen Pennington
cdfae5a005 Merge pull request #128 from MITx/victor/show_student_state
Victor/show student state
2012-06-20 13:12:07 -07:00
Victor Shnayder
5e7535fbfb Progress tracking cleanup.
* use clearer names for the two status strings passed to js
* add functions to do canonical conversion of progress to js string
* fix updating bug in sequence.coffee
* add some todo comments and other docs to make future expansion easier
2012-06-20 16:04:03 -04:00
Victor Shnayder
85bee9b42b Initial UI for sequence progress.
* change bottom border of links:
  red for not started
  yellow for in_progress
  green for done

* This should probably be designed at some point.
* Obvious problems: the yellow is not very visible, and lots of people are
  red/green color-blind.
2012-06-20 16:04:03 -04:00
Victor Shnayder
e5a791e031 Add scaffolding comments for progress tracking in video modules. 2012-06-20 16:04:03 -04:00
Calen Pennington
1b7b7e91e4 Merge branch 'master' into cpennington/cms-editing 2012-06-20 15:07:15 -04:00
Calen Pennington
215085345c Fix other references to jquery after update to latest version 2012-06-20 15:06:49 -04:00
Galen Frechette
94886643b0 gets app completly uptodate with prototype 2012-06-20 14:37:37 -04:00
Calen Pennington
6ce68e19db Make cms start on a different port by default 2012-06-20 11:58:13 -04:00
Kyle Fiedler
28b570cf79 Added body class for layout 2012-06-20 11:39:55 -04:00
Calen Pennington
649b9bd92d Merge pull request #127 from MITx/victor/fix_accordion_again
Fix render of lms index with no chapter or section.
2012-06-20 08:37:25 -07:00
Victor Shnayder
b24c4d4626 Fix render of lms index with no chapter or section. 2012-06-20 11:31:21 -04:00
Calen Pennington
1853b99861 Work in progress editing. Committing to allow kfiedler to work in parallel 2012-06-20 11:14:25 -04:00
Calen Pennington
e9d5f85745 Merge pull request #115 from MITx/capa-include
modify capa_problem to add <include file="foo"> functionality
2012-06-20 07:34:19 -07:00
Calen Pennington
c317521468 Merge pull request #126 from MITx/victor/progress-tracking
Victor/progress tracking
2012-06-20 07:33:48 -07:00
Victor Shnayder
e872f31835 minor edits to address Calen's comments. 2012-06-20 10:31:37 -04:00
Calen Pennington
7710e7a6a4 Merge pull request #125 from MITx/victor/fix_accordion
Fix accordion rendering bug
2012-06-20 05:36:41 -07:00
Calen Pennington
65d02819e8 Merge pull request #124 from MITx/cpennington/cms-pipeline
Switch cms over to django pipeline
2012-06-20 05:35:49 -07:00
Calen Pennington
0ace2ee364 Merge pull request #122 from MITx/cpennington/cms-review-cleanup
Cleanup from https://github.com/MITx/mitx/pull/120
2012-06-20 05:34:36 -07:00
Calen Pennington
ed6a658afe Add note about optional revision in location 2012-06-20 08:33:46 -04:00
Victor Shnayder
b963d8b534 Initial progress display.
* add module_from_xml param to I4xSystem
* use it to implement xmodule.get_children()
* fix a few comments here and there
* Render-time progress display for seq and vertical modules.
  - Computes fraction of subproblems done.
* Pass problem state back to js during ajax calls.
* general cleanup in capa_module.py
* add progress_changed and progress fields to json returned from each ajax handler

* Coffeescript changes to hook up sequence tracking of problem progress

* net result: sequence 'a' tags now have a progress class
* properly set css class on initial load
* fire event when progress changes after ajax calls
* also save state in 'progress' property of problems-wrapper tag
* event handler finds those tags, computes updated progress
2012-06-19 18:28:45 -04:00
Victor Shnayder
a126935369 Add Progress class and tests 2012-06-19 18:25:13 -04:00
Victor Shnayder
39c57af849 remove obsolete comment 2012-06-19 16:37:33 -04:00
Victor Shnayder
a6fc27acd6 Fix accordion rendering bug
* needed to clean the chapter and section vars before rendering
2012-06-19 16:19:45 -04:00
Calen Pennington
8e05116d02 Merge pull request #123 from MITx/ps-update-jquery
Update jQuery and jQuery-UI to latest version
2012-06-19 11:36:08 -07:00
Prem Sichanugrist
afaed83158 Update jQuery and jQuery-UI to latest version 2012-06-19 14:31:00 -04:00
Calen Pennington
e865b97269 Rename test directory for consistancy 2012-06-19 14:30:19 -04:00