Skip to content

Fix capa optioninput template to honor inline flag - #845

Merged
chrisndodge merged 2 commits into
masterfrom
bugfix/ichuang/fix-capa-optioninput-for-inline
Sep 5, 2013
Merged

Fix capa optioninput template to honor inline flag#845
chrisndodge merged 2 commits into
masterfrom
bugfix/ichuang/fix-capa-optioninput-for-inline

Conversation

@ichuang

@ichuang ichuang commented Aug 31, 2013

Copy link
Copy Markdown
Contributor

The "inline" flag is used to allow capa input elements to be displayed inline. This is useful, for example, when questions are written as paragraph text, with inputs embedded within the text.

The textline input element honors the inline flag -- see https://github.com/edx/edx-platform/blob/master/common/lib/capa/capa/templates/textline.html#L1

This PR fixes the optioninput template to also honor the inline flag (note that https://github.com/edx/edx-platform/blob/master/common/lib/capa/capa/inputtypes.py#L328 already provides the inline flag in the mako context).

@chrisndodge

Copy link
Copy Markdown
Contributor

Hi Ike,

Looking at the code, I see - though not your original code - that in Optioninput 'inline' defaults to an empty string, whereas in other uses (TextLine) it defaults to False. I think it'd be better if optioninput treats inline as a boolean rather than a string, in the same manner as textline.

do you want to do that (also need to update a test [test_inputtypes.py] which asserts an empty string)?

Thx.

@ichuang

ichuang commented Sep 5, 2013

Copy link
Copy Markdown
Contributor Author

Done

chrisndodge pushed a commit that referenced this pull request Sep 5, 2013
…for-inline

Fix capa optioninput template to honor inline flag
@chrisndodge
chrisndodge merged commit 9aa024b into master Sep 5, 2013
cgopalan referenced this pull request in open-craft/openedx-platform Aug 20, 2017
andrey-canon pushed a commit to eduNEXT/edx-platform that referenced this pull request Jul 27, 2018
caesar2164 pushed a commit to caesar2164/edx-platform that referenced this pull request Dec 11, 2018
Fix eslint errors in account settings js
Abdul-Muqadim-Arbisoft pushed a commit to edly-io/edx-platform that referenced this pull request May 8, 2024
It was observed that waiting time was cut in half after http/3 was
enabled. Plus, supporting http/3 is super easy :)

Close openedx#845
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants