diff --git a/common/lib/xmodule/xmodule/css/capa/display.scss b/common/lib/xmodule/xmodule/css/capa/display.scss index ea5a2f0769..b2dc167e92 100644 --- a/common/lib/xmodule/xmodule/css/capa/display.scss +++ b/common/lib/xmodule/xmodule/css/capa/display.scss @@ -898,7 +898,9 @@ div.problem .action { margin-top: $baseline; min-height: $baseline; width: 100%; - display: inline-block; + flex-direction: row; + align-items: center; + flex-wrap: wrap; .problem-action-buttons-wrapper { @@ -906,7 +908,6 @@ div.problem .action { @include text-align(right); @include float(right); } - } .problem-action-button-wrapper { @@ -934,11 +935,11 @@ div.problem .action { } .submit-attempt-container { - display: table; + display: inline-flex; @media (max-width: $bp-screen-lg) { max-width: 100%; - padding-top: $baseline; + padding-bottom: $baseline; } .submit { @include margin-right($baseline / 2); diff --git a/lms/templates/problem.html b/lms/templates/problem.html index 9e0b0ceb27..0b915cedbf 100644 --- a/lms/templates/problem.html +++ b/lms/templates/problem.html @@ -25,42 +25,44 @@ from openedx.core.djangolib.markup import HTML /> % endif -
- % if demand_hint_possible: - - - - % endif - % if save_button: - - - - % endif - % if reset_button: - - - - % endif - % if answer_available: - - - - % endif -
+
- % if attempts_allowed: + % if attempts_allowed: ${ungettext("You have used {num_used} of {num_total} attempt", "You have used {num_used} of {num_total} attempts", attempts_allowed).format(num_used=attempts_used, num_total=attempts_allowed)} - % endif + % endif + ${_("Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.")}
+
+ % if demand_hint_possible: + + + + % endif + % if save_button: + + + + % endif + % if reset_button: + + + + % endif + % if answer_available: + + + + % endif +
<%include file="problem_notifications.html" args=" notification_type='warning',