Commit 6a6962df by Vik Paruchuri

Alter rubric list, restyle rubric

parent 83608fd9
...@@ -478,6 +478,13 @@ section.open-ended-child { ...@@ -478,6 +478,13 @@ section.open-ended-child {
margin-left: .75rem; margin-left: .75rem;
} }
ul.rubric-list
{
list-style-type: none;
padding:0;
margin:0;
}
ol { ol {
list-style: decimal outside none; list-style: decimal outside none;
margin-bottom: lh(); margin-bottom: lh();
......
...@@ -239,7 +239,7 @@ class @PeerGradingProblem ...@@ -239,7 +239,7 @@ class @PeerGradingProblem
# finds the scores for each rubric category # finds the scores for each rubric category
get_score_list: () => get_score_list: () =>
# find the number of categories: # find the number of categories:
num_categories = $('table.rubric tr').length num_categories = $('ul.rubric-list li').length
score_lst = [] score_lst = []
# get the score for each one # get the score for each one
......
...@@ -46,11 +46,11 @@ ...@@ -46,11 +46,11 @@
position: relative; position: relative;
font-size: 16px; font-size: 16px;
} }
ul.rubric-list
ul
{ {
list-style-type: none; list-style-type: none;
padding:0;
margin:0;
} }
} }
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
% for i in range(len(categories)): % for i in range(len(categories)):
<% category = categories[i] %> <% category = categories[i] %>
<b>${category['description']}</b><br/> <b>${category['description']}</b><br/>
<ul> <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] %>
%if option['selected']: %if option['selected']:
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
% else: % else:
<label class="rubric-label" for="score-${i}-${j}"> <label class="rubric-label" for="score-${i}-${j}">
<input type="radio" class="score-selection" name="score-selection-${i}" id="score-${i}-${j}" value="${option['points']}"/> <input type="radio" class="score-selection" name="score-selection-${i}" id="score-${i}-${j}" value="${option['points']}"/>
<span class="wrappable">${option['points']} points : ${option['text']}</span> <span class="wrappable"> ${option['points']} points : ${option['text']}</span>
</label> </label>
% endif % endif
</li> </li>
......
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