_.extend(choiceBase, {
init: function() {
elementBase.init.call(this);
- this.view = $(_.template(template)({type: this.type}));
+ this.view = $(_.template(template)({type: this.type, name: this.name}));
this._container().append(this.view);
this.createContainer(this.wlxmlNode.contents().filter(function(n) {return !n.is('list');}), {
var choiceMulti = Object.create(choiceBase);
_.extend(choiceMulti, {
type: 'multi',
+ name: gettext('Multiple Choice'),
createListView: function(listNode) {
return new ListView(this, listNode, {
onItemViewAdded: function(itemView) {
var choiceSingle = Object.create(choiceBase);
_.extend(choiceSingle, {
type: 'single',
+ name: gettext('Single Choice'),
init: function() {
this._comboName = _.uniqueId('edumed_exercise_hash_');
choiceBase.init.call(this);
var trueOrFalse = Object.create(choiceBase);
_.extend(trueOrFalse, {
type: 'true-or-false',
+ name: 'True or False',
createListView: function(listNode) {
return new ListView(this, listNode, {
onItemViewAdded: function(itemView) {
<div class="edumed-exercise exercise-<%= type %>">
- <div class="header"><%= gettext('Exercise') %>: <%= type %></div>
+ <div class="header"><%= gettext('Exercise') %>: <%= name %></div>
<div class="description"></div>
<div class="list"></div>
</div>
\ No newline at end of file
<div class="edumed-exercise exercise-gaps">
- <div class="header"><%= gettext('Exercise') %></div>
+ <div class="header"><%= gettext('Exercise') %>: <%= gettext('Gaps') %></div>
<div class="content"></div>
</div>
\ No newline at end of file
<div class="edumed-exercise exercise-order">
- <div class="header"><%= gettext('Exercise') %></div>
+ <div class="header"><%= gettext('Exercise') %>: <%= gettext('Order') %></div>
<div class="description"></div>
<ul class="nav nav-tabs modePills">
<li class="active" mode="initial"><a href="#"><%= gettext('Initial') %></a></li>
<div class="edumed-exercise exercise-replace">
- <div class="header"><%= gettext('Exercise') %></div>
+ <div class="header"><%= gettext('Exercise') %>: <%= gettext('Replace') %></div>
<div class="content"></div>
</div>
\ No newline at end of file