MDL-47494 ddmarker: Merge pull request #21 from colchambers/wip6859.1

merge multiple tries and hints. Group hints visually
This commit is contained in:
Tim Hunt
2013-06-06 07:56:03 -07:00
2 changed files with 40 additions and 2 deletions
@@ -136,8 +136,7 @@ class qtype_ddmarker_edit_form extends qtype_ddtoimage_edit_form_base {
$mform = $this->_form;
$repeated = array();
$repeated[] = $mform->createElement('header', 'hinthdr', get_string('hintn', 'question'));
$repeated[] = $mform->createElement('editor', 'hint', get_string('hinttext', 'question'),
$repeated[] = $mform->createElement('editor', 'hint', get_string('hintn', 'question'),
array('rows' => 5), $this->editoroptions);
$repeatedoptions['hint']['type'] = PARAM_RAW;
+39
View File
@@ -102,3 +102,42 @@ form.mform fieldset#id_previewareaheader div.markertexts span.markertext {
position: absolute;
background: url([[pix:qtype_ddmarker|grid]]) repeat scroll 0 0;
}
/* Editing form. Style repeated elements*/
/*Top*/
body#page-question-type-ddmarker div[id^=fitem_id_][id*=hint_] {
background: #EEE;
margin-top: 0;
margin-bottom: 0;
padding-bottom: 5px;
padding-top: 5px;
border: 1px solid #BBB;
border-bottom: 0;
}
body#page-question-type-ddmarker div[id^=fitem_id_][id*=hint_] .fitemtitle {
font-weight: bold;
}
/* Middle */
body#page-question-type-ddmarker div[id^=fitem_id_][id*=hintoptions_],
body#page-question-type-ddmarker div[id^=fitem_id_][id*=hintshownumcorrect_] {
background: #EEE;
margin-bottom: 0;
margin-top: 0;
padding-bottom: 5px;
padding-top: 5px;
border: 1px solid #BBB;
border-top: 0;
border-bottom: 0;
}
/* Bottom */
body#page-question-type-ddmarker div[id^=fitem_id_][id*=hintclearwrong_] {
background: #EEE;
margin-bottom: 2em;
margin-top: 0;
padding-bottom: 5px;
padding-top: 5px;
border: 1px solid #BBB;
border-top: 0;
}
body#page-question-type-ddmarker #fitem_id_penalty {
margin-bottom: 2em;
}