jmclaus
58ca939ba6
Merge pull request #4292 from terman/jsinput
...
Supply initial_state attribute for jsinput tag
2014-07-30 16:56:45 +02:00
stv
0aba4f7ec6
Wrap JSInput Python code in CDATA section
...
Python code can commonly contain characters that are invalid XML, such
as '<' and '>'. This has proven to be a pain point for instructors
implementing custom Python grading functions for their JSInput problems
(see sample code below).
This change creates a more robust template from which to make
modifications.
```python
# This is an XML syntax error, when not inside a CDATA section.
if i < 0:
print('negative')
```
2014-07-25 12:11:33 -04:00
Chris Terman
d3149f66aa
add initial_state attribute to jsinput tag
2014-07-23 09:21:42 -04:00
Ben McMorran
914f0f7415
Fixes spelling of Michigan in template.
2014-06-05 14:07:03 -04:00
Ben McMorran
e18fd76d07
Reformats markdown problem templates avoid extra line breaks.
2014-06-05 12:54:39 -04:00
Dave St.Germain
9826a2f19e
Add label to the checkboxes sample template.
2014-02-28 11:25:42 -05:00
Dave St.Germain
4fa1f1163e
Added labels to CAPA input types, with markdown syntax for adding them
...
in studio.
LMS-1895 and others
2014-02-13 13:18:24 -05:00
jmclaus
5478525a42
Added JSInput template to Studio and a sop attribute to JSInput. Only if it's set to false, as in JSInput's template, will JSChannel be used to bypass it. In all other cases (attribute not present or set to something else), SOP is enforced. Compatibility with jsVGL is therefore maintained. Multiple JSInput are supported in a vertical. Also, save button now functions. [BLD-523, BLD-556, BLD-568]
2013-12-20 17:03:56 +01:00
polesye
7196cf21ee
BLD-479: Add additional example of DnD.
2013-12-09 22:04:45 +02:00
polesye
4b87237825
BLD-193: Add template for checkboxes to studio.
2013-11-18 09:50:53 +02:00
Alexander Kryklia
b5bf4b7500
Enable latex problems via key in course.settings.
...
BLD-426
2013-11-04 12:13:23 +02:00
Peter Baratta
735e3b01a2
Create a new response type for Numerical/Formula
...
Named `FormulaEquationInput` (name up for debate)
- Based off ChemEqnIn
- Add FormulaEquationInput in inputtypes.py
- Add a call to a skeleton method for a preview
javascript:
- Queue up some MathJax
- Put some ordering on the AJAX requests: add a parameter when the request was started, when it returns check that it isn't outdated before displaying the preview
- Tests
Note: we moved the `jsinput` tests and DISABLED them, because they were causing the tests to fail.
2013-08-12 11:48:45 -04:00
Don Mitchell
e3602941ee
Merge pull request #440 from edx/dhm/adaptive_template
...
Bug report: remove <?xml version..> tag
2013-07-19 07:57:29 -07:00
Don Mitchell
eee1d6f593
Bug report: remove <?xml version..> tag
...
https://edx-wiki.atlassian.net/browse/STUD-428
2013-07-19 09:15:29 -04:00
Alexander Kryklia
67f6d6c4d1
Fixes code_jail imports and draganddrop yaml
2013-07-19 12:05:17 +03:00
Lyla Fischer
3f8246f032
merge conflict
2013-07-16 18:25:01 -04:00
Lyla Fischer
a47daf26e4
removed uneeded defaults from imageresponse
2013-07-16 18:22:48 -04:00
Lyla Fischer
a512337881
removed soon-to-be-universally-fixed defaults
2013-07-16 16:18:27 -04:00
Calen Pennington
8b5979641b
Change default rerandomize and showanswer
...
The defaults used to be rerandomize=always, showanswer=closed. This is
preserved for capa problems being imported from XML. However, for
courses, and for problems created in Studio, the default has been
changed to never/finished, to match the previous defaults used by
Studio.
2013-07-16 14:33:58 -04:00
Don Mitchell
3722685e1a
No longer persist XModule templates
...
Instead, we use XModule field default values when creating an empty
XModule. Driven by this use case, we also allow for XModules to be
created in memory without being persisted to the database at all. This
necessitates a change to the Modulestore api, replacing clone_item with
create_draft and save_xmodule.
2013-07-16 14:33:58 -04:00
Don Mitchell
8c904f31a9
Move defaults from yaml templates to field definitions.
...
This standardizes the XModule field default values to be the same as the
values that are presented by studio when a component is added to a
course.
2013-07-16 14:24:41 -04:00
Lyla Fischer
2262ffe4e5
updated imageresponse example to a more universal example (baby animals)
2013-07-15 12:17:43 -04:00
Lyla Fischer
d83d49cac4
drag_and_drop template added
2013-07-15 11:26:03 -04:00
cahrens
bb8c62d84c
Make the problem handle empty fields and non-integers correctly.
2013-06-26 12:33:55 -04:00
cahrens
b77919a849
Remove unnecessary fields.
2013-05-29 15:53:30 -04:00
cahrens
d4d38827b4
Updates for showanswer.
2013-05-15 10:35:40 -04:00
cahrens
e29c940e7c
Add display_names, update help, remove unnecessary things from templates.
2013-05-13 13:15:07 -04:00
cahrens
46100fd258
Cleanup.
2013-05-02 12:32:32 -04:00
cahrens
01ede40b03
Switching branches
2013-05-02 09:43:03 -04:00
cahrens
13fe9c11cb
Merged with master.
2013-05-01 09:33:35 -04:00
cahrens
40adfa950d
Get the "Edit High Level Source" link back in. Broken with xblock work.
...
https://edx.lighthouseapp.com/projects/102637-studio/tickets/273
2013-04-10 14:53:26 -04:00
ichuang
9fe9e2fbf6
upadte latex2edx url in latex-problem template
2013-02-28 04:21:50 +00:00
marco
5a283127a4
clean up based on cahrens pull requests notes
2013-02-13 16:41:43 -05:00
Don Mitchell
62d389c853
Added empty metadata attribute instead of using name to determine which
...
template is empty (very awkward b/c it's a template descriptor not an
instance one)
Changed display conditionals to get the right things to show in the
right tabs for problems
2013-02-13 16:33:19 -05:00
marco
1bb1fb3156
adding remaining advanced problem modes I left off the first pass
2013-02-13 16:33:18 -05:00
marco
18f2f97eb1
edited problem editor tooltips to have new names and also changed sample problem text to use new names
2013-02-13 16:33:17 -05:00
Chris Dodge
2856971b45
update templates to include attemps and weight values. Also update capa_module.py to accept empty strings ('') to mean 'default value'
2013-01-23 16:36:16 -05:00
Don Mitchell
033264b58d
Change case of Explanation to match markdown (although it's functionally
...
equivalent)
2013-01-11 16:57:00 -05:00
Don Mitchell
fa2a243068
Explanation markup
2013-01-10 16:40:05 -05:00
Don Mitchell
603c6ce296
Get rid of extra space at beginning of markdown for templates
2013-01-09 16:17:58 -05:00
Don Mitchell
d8d4c37331
Yaml files now generate markdown in a readable and xml convertable
...
format. The xml converter works.
2013-01-07 13:57:21 -05:00
Don Mitchell
c2f0ea49bd
Hopefully fixed yamls for markdown
2013-01-07 12:32:54 -05:00
Don Mitchell
42246142dd
Numerical response now works and round tripping works.
2013-01-07 11:50:37 -05:00
cahrens
05428f5b07
Comment out markdown in optionresponse.yaml, hook up toXML method.
2013-01-05 15:08:09 -05:00
Don Mitchell
2e527a6ae0
Fixed all regex's in toXml (I hope) and added 2 markdown templates
2013-01-04 17:15:44 -05:00
Don Mitchell
d99e7f5d33
Supports markdown
2013-01-04 09:51:36 -05:00
Don Mitchell
7dfa4e2cba
Tabla rasa problem for expert authors
2013-01-03 17:20:40 -05:00
Don Mitchell
63791b2a6b
Numerical response template has markdown init
2013-01-03 13:46:45 -05:00
Don Mitchell
f3ba15731c
Cache to swap branches
2013-01-03 13:04:30 -05:00
cahrens
37b83c1ecf
Fix typo in Formula Response name (Studio #101 ).
2012-12-20 17:06:12 -05:00