Commit 56dee211 by marco

partial cleanup for submitted rubric state, along with sass format cleanup for rubric.scss

parent 478fa18b
...@@ -222,7 +222,7 @@ section.combined-open-ended-status { ...@@ -222,7 +222,7 @@ section.combined-open-ended-status {
.wrappable { .wrappable {
display: table-cell; display: table-cell;
padding: $baseline/4 0 ; padding: $baseline/4;
} }
.rubric-list-item { .rubric-list-item {
...@@ -238,7 +238,9 @@ span.rubric-category { ...@@ -238,7 +238,9 @@ span.rubric-category {
display: block; display: block;
width: 100%; width: 100%;
border-bottom: 1px solid lightgray; border-bottom: 1px solid lightgray;
font-size: .9em; font-size: 1.1em;
padding-top: $baseline/2;
margin-bottom: $baseline/2;
} }
div.combined-rubric-container { div.combined-rubric-container {
...@@ -591,7 +593,8 @@ section.open-ended-child { ...@@ -591,7 +593,8 @@ section.open-ended-child {
overflow-y: auto; overflow-y: auto;
margin-bottom: 0; margin-bottom: 0;
padding: $baseline/2; padding: $baseline/2;
height: 200px; height: auto;
min-height: 20px;
border: 1px solid #ddd; border: 1px solid #ddd;
background: #f6f6f6; background: #f6f6f6;
} }
...@@ -668,6 +671,7 @@ section.open-ended-child { ...@@ -668,6 +671,7 @@ section.open-ended-child {
&.rubric-list-item { &.rubric-list-item {
margin-bottom: 0; margin-bottom: 0;
padding: 0; padding: 0;
border-radius: $baseline/4;
} }
} }
} }
......
...@@ -623,9 +623,9 @@ class @CombinedOpenEnded ...@@ -623,9 +623,9 @@ class @CombinedOpenEnded
info_rubric_elements = @$(@info_rubric_elements_sel) info_rubric_elements = @$(@info_rubric_elements_sel)
info_rubric_elements.slideToggle() info_rubric_elements.slideToggle()
@rubric_header = @$(@rubric_collapse_sel) @rubric_header = @$(@rubric_collapse_sel)
if @rubric_header.text() == "(Hide)" if @rubric_header.text() == "Show Score Only"
new_text = "(Show)" new_text = "Show Full Rubric"
else else
new_text = "(Hide)" new_text = "Show Score Only"
@rubric_header.text(new_text) @rubric_header.text(new_text)
return false return false
.rubric-header {
.rubric-collapse {
float: right;
}
}
.rubric { .rubric {
margin: 0px 0px; margin: 0;
color: #3C3C3C; color: #3C3C3C;
tr { tr {
margin:0px 0px; margin: 0;
height: 100%; height: 100%;
} }
td { td {
height: 100%; height: 100%;
border: 1px black solid; border: 1px black solid;
text-align: center; text-align: center;
} }
th { th {
padding: 5px; margin: $baseline/4;
margin: 5px; padding: $baseline/4;
text-align: center; text-align: center;
} }
.points-header th { .points-header th {
padding: 0px; padding: 0px;
} }
.rubric-label
{ .rubric-label {
position: relative; position: relative;
font-size: .9em; display: block;
display: block; font-size: .9em;
.choicegroup-correct {
//nothing
}
.choicegroup-incorrect {
display:none;
}
} }
.grade { .grade {
position: absolute; position: absolute;
bottom:0px; bottom: 0;
right:0px; right: 0;
} }
.selected-grade, .selected-grade,
.selected-grade .rubric-label { .selected-grade .rubric-label {
background: #666; background: #666;
color: white; color: white;
} }
input[type=radio]:checked + .rubric-label {
input[type=radio]:checked + .rubric-label {
background: white; background: white;
color: $base-font-color; color: $base-font-color;
white-space:nowrap; white-space:nowrap;
} }
.wrappable { .wrappable {
white-space:normal; white-space:normal;
} }
input[class='score-selection'] { input[class='score-selection'] {
position: relative; position: relative;
font-size: 16px; font-size: 16px;
} }
ul.rubric-list
{ ul.rubric-list {
list-style-type: none; margin: 0;
padding:0; padding: 0;
margin:0; list-style-type: none;
} }
} }
...@@ -30,11 +30,7 @@ ...@@ -30,11 +30,7 @@
<div class="visibility-control visibility-control-prompt"> <div class="visibility-control visibility-control-prompt">
<div class="inner"> <div class="inner">
</div> </div>
<<<<<<< HEAD <a href="" class="section-header section-header-prompt question-header">Hide Prompt</a>
<span class="section-header question-header section-header-prompt">Prompt</span>
=======
<a href="" class="question-header">Hide Prompt</a>
>>>>>>> 932bbd259247f5b69f2d39c0a1945951816fedeb
</div> </div>
<div class="problem-container"> <div class="problem-container">
% for item in items: % for item in items:
......
...@@ -6,7 +6,15 @@ ...@@ -6,7 +6,15 @@
% else: % else:
status="hidden"> status="hidden">
% endif % endif
<h4>${result['task_name']} from grader ${i+1} <a class="rubric-collapse" href="#">(Hide)</a></h4> <div class="visibility-control visibility-control-rubric">
<div class="inner">
</div>
<span class="section-header section-header-rubric">Submitted Rubric</span>
</div>
<div class="rubric-header">
${result['task_name']} from grader ${i+1}
<button class="rubric-collapse" href="#">Show Score Only</button>
</div>
${result['result'] | n} ${result['result'] | n}
</div> </div>
%endif %endif
......
...@@ -8,17 +8,18 @@ ...@@ -8,17 +8,18 @@
<li class="rubric-list-item"> <li class="rubric-list-item">
<div class="rubric-label"> <div class="rubric-label">
%if len(category['options'][j]['grader_types'])>0: %if len(category['options'][j]['grader_types'])>0:
%if correct[i]==1: %if correct[i]==1:
<label class="choicegroup_correct"> <label class="choicegroup_correct wrapper-score-selection"></label>
%else: %else:
<label class="choicegroup_incorrect"> <label class="choicegroup_incorrect wrapper-score-selection"></label>
%endif %endif
${option['points']} points : ${option['text']} <span class="wrappable"> ${option['points']} points : ${option['text']}</span>
</label> </label>
%else: %else:
<label class="rubric-elements-info"> <label class="rubric-elements-info">
${option['points']} points : ${option['text']} <span class="wrapper-score-selection"> </span>
</label> <span class="wrappable"> ${option['points']} points : ${option['text']}</span>
</label>
%endif %endif
</div> </div>
</li> </li>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div class="rubric"> <div class="rubric">
% for i in range(len(categories)): % for i in range(len(categories)):
<% category = categories[i] %> <% category = categories[i] %>
<span class="rubric-category">${category['description']}</span> <br/> <span class="rubric-category">${category['description']}</span>
<ul class="rubric-list"> <ul class="rubric-list">
% for j in range(len(category['options'])): % for j in range(len(category['options'])):
<% option = category['options'][j] %> <% option = category['options'][j] %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment