From 30632f87cc71dcb3f3ba0c52ebeefa1995409ba0 Mon Sep 17 00:00:00 2001 From: Farhaan Bukhsh Date: Fri, 18 Sep 2020 02:53:05 +0530 Subject: [PATCH] Added Open response button to the component tray Author needs to have a quick access to ORA menu in order to get proceed with assesment design. This introduces ORA button to the tray. Signed-off-by: Farhaan Bukhsh --- cms/djangoapps/contentstore/views/component.py | 5 +++-- cms/static/images/large-openassessment-icon.png | Bin 0 -> 738 bytes cms/static/sass/assets/_graphics.scss | 7 +++++++ cms/static/sass/elements/_modules.scss | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 cms/static/images/large-openassessment-icon.png diff --git a/cms/djangoapps/contentstore/views/component.py b/cms/djangoapps/contentstore/views/component.py index dde19152d7..409117bde0 100644 --- a/cms/djangoapps/contentstore/views/component.py +++ b/cms/djangoapps/contentstore/views/component.py @@ -41,7 +41,7 @@ __all__ = [ log = logging.getLogger(__name__) # NOTE: This list is disjoint from ADVANCED_COMPONENT_TYPES -COMPONENT_TYPES = ['discussion', 'html', 'problem', 'video'] +COMPONENT_TYPES = ['discussion', 'html', 'problem', 'video', 'openassessment'] ADVANCED_COMPONENT_TYPES = sorted(set(name for name, class_ in XBlock.load_classes()) - set(COMPONENT_TYPES)) @@ -260,7 +260,8 @@ def get_component_templates(courselike, library=False): 'discussion': _("Discussion"), 'html': _("HTML"), 'problem': _("Problem"), - 'video': _("Video") + 'video': _("Video"), + 'openassessment': _("Open Response") } component_templates = [] diff --git a/cms/static/images/large-openassessment-icon.png b/cms/static/images/large-openassessment-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..2e7a44a68eccd24820de1709409eabe82fd8eb16 GIT binary patch literal 738 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE0wix1Z>k4UEa{HEjtmSN`?>!lvVtU&J%W50 z7^>757#dm_7=8hT8eT9klo~KFyh>nTu$sZZAYL$MSD+10f+@+{-GzZ+Rj;xUkjGiz z5n0T@z;^_M8K-LVNdpDhOFVsD*`II<3QMzy^luhrU|`(f>EamTas2Ak{n^5aGVSxX zukaOJ+NAM9NyO1znbDW!qSDd?g?}?#|H{94@?wd?i#5sOvNADqWLQc!HEq$*2)f{V z$n(~PWxY0hYKqgpy}P&d{_T6;f7^WjSycZ1VBdO%2YKrPmrl98^Q6+}MAieEul8`x zueP4|X?0<#^np#jTa#rKDq8wwoW*`joc(~I`wnl_6je3Gi04@qz5Z89(;umAW4R}- z67|_gZ#BQt$4&d^_-WQ9h3}Q?G{0Kr^-(r-y~_hpVd3XjwoR|pGHyPt#5zJ*hD8B zJ<=y1B!4-~#`}S!u(jEp$E#y(f(zpJvKj*g*7{g{f{nAmIo@4Ysw?)dpUt;> zjolriLoMvp*Y_>F8X4NZJX-#^T&CYo-@jAhc;(U*Uj^76iBx-GBzv!Kmj5r+PZ9n( zJypN$r?G{8d!}|HrStj1NSjxEtLuH+9?Ur)r67L`h0wNvc(HQ7VvPFfuSQ z&^55sH8c+~w6roZw=yu%HZZUdUwc90BVo~*$|wcR#Ki= ml*&+EUaps!mtCBkSdglhUz9%kosASw5re0zpUXO@geCxI(;z_r literal 0 HcmV?d00001 diff --git a/cms/static/sass/assets/_graphics.scss b/cms/static/sass/assets/_graphics.scss index 18d59c313f..e4642724ca 100644 --- a/cms/static/sass/assets/_graphics.scss +++ b/cms/static/sass/assets/_graphics.scss @@ -45,3 +45,10 @@ height: ($baseline*3); background: url('#{$static-path}/images/large-video-icon.png') center no-repeat; } + +.large-openassessment-icon { + display: inline-block; + width: ($baseline*3); + height: ($baseline*3); + background: url('#{$static-path}/images/large-openassessment-icon.png') center no-repeat; +} diff --git a/cms/static/sass/elements/_modules.scss b/cms/static/sass/elements/_modules.scss index d3898968ea..ecb239d223 100644 --- a/cms/static/sass/elements/_modules.scss +++ b/cms/static/sass/elements/_modules.scss @@ -139,7 +139,7 @@ position: relative; display: inline-block; - width: ($baseline*5); + width: ($baseline*6.25); height: ($baseline*5); margin-bottom: ($baseline/2); box-shadow: 0 1px 1px $shadow, 0 1px 0 rgba(255, 255, 255, 0.4) inset;