Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
995a075f
Commit
995a075f
authored
Feb 09, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Separate the rubric templates
parent
0feb8f66
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
38 deletions
+49
-38
lms/templates/open_ended_combined_rubric.html
+29
-0
lms/templates/open_ended_rubric.html
+8
-38
lms/templates/open_ended_view_only_rubric.html
+12
-0
No files found.
lms/templates/open_ended_combined_rubric.html
0 → 100644
View file @
995a075f
<section
class=
"rubric-template"
id=
"inputtype_${id}"
>
<div
class=
"rubric"
>
% for i in range(len(categories)):
<
%
category =
categories[i]
%
>
<b
class=
"rubric-category"
>
${category['description']}
</b>
<br/>
<ul
class=
"rubric-list"
>
% for j in range(len(category['options'])):
<
%
option =
category['options'][j]
%
>
<li
class=
"rubric-list-item"
>
<div
class=
"rubric-label"
>
%for grader_type in category['options'][j]['grader_types']:
% if grader_type in grader_type_image_dict:
<
%
grader_image =
grader_type_image_dict[grader_type]
%
>
% if grader_type in human_grader_types:
<
%
human_title =
human_grader_types[grader_type]
%
>
% else:
<
%
human_title =
grader_type
%
>
% endif
<img
src=
"${grader_image}"
title=
"${human_title}"
/>
% endif
%endfor
${option['points']} points : ${option['text']}
</div>
</li>
% endfor
</ul>
% endfor
</div>
</section>
lms/templates/open_ended_rubric.html
View file @
995a075f
<form
class=
"rubric-template"
id=
"inputtype_${id}"
xmlns=
"http://www.w3.org/1999/html"
>
% if view_only and has_score:
<p></p>
% elif view_only:
<p>
Use the below rubric to rate this submission.
</p>
% else:
<h3>
Rubric
</h3>
<p>
Select the criteria you feel best represents this submission in each category.
</p>
% endif
<h3>
Rubric
</h3>
<p>
Select the criteria you feel best represents this submission in each category.
</p>
<div
class=
"rubric"
>
% for i in range(len(categories)):
<
%
category =
categories[i]
%
>
<b
class=
"rubric-category"
>
${category['description']}
</b><br/>
<b
class=
"rubric-category"
>
${category['description']}
</b>
<br/>
<ul
class=
"rubric-list"
>
% for j in range(len(category['options'])):
<
%
option =
category['options'][j]
%
>
%if option['selected']
and not view_only
:
%if option['selected']:
<li
class=
"selected-grade rubric-list-item"
>
%else:
<li
class=
"rubric-list-item"
>
% endif
% if view_only:
% if option['selected'] and combined_rubric==False:
## if this is the selected rubric block, show it highlighted
<div
class=
"rubric-label"
>
${option['points']} points : ${option['text']}
</div>
% elif combined_rubric == True:
<div
class=
"rubric-label"
>
%for grader_type in category['options'][j]['grader_types']:
% if grader_type in grader_type_image_dict:
<
%
grader_image =
grader_type_image_dict[grader_type]
%
>
% if grader_type in human_grader_types:
<
%
human_title =
human_grader_types[grader_type]
%
>
% else:
<
%
human_title =
grader_type
%
>
% endif
<img
src=
"${grader_image}"
title=
"${human_title}"
/>
% endif
%endfor
${option['points']} points : ${option['text']}
</div>
% endif
% else:
<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']}"
/>
<span
class=
"wrappable"
>
${option['points']} points : ${option['text']}
</span>
</label>
% endif
<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']}"
/>
<span
class=
"wrappable"
>
${option['points']} points : ${option['text']}
</span>
</label>
</li>
% endfor
</ul>
...
...
lms/templates/open_ended_view_only_rubric.html
0 → 100644
View file @
995a075f
<section
class=
"rubric-template"
id=
"inputtype_${id}"
>
<div
class=
"rubric"
>
% for i in range(len(categories)):
<
%
category =
categories[i]
%
>
% for j in range(len(category['options'])):
<
%
option =
category['options'][j]
%
>
% if option['selected']:
${category['description']} : ${option['points']} points
% endfor
% endfor
</div>
</section>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment