Skip to content

Commit

Permalink
quiz editing: MDL-18355 further refinements to the UI. Thanks Olli.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhunt committed Feb 26, 2009
1 parent 87171bd commit 7cf3af5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion question/editlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1860,8 +1860,9 @@ function print_choose_qtype_to_add_form($hiddenparams) {
function print_qtype_to_add_option($qtype, $localizedname) {
global $QTYPES;
echo '<div class="qtypeoption">' . "\n";
echo '<label for="qtype_' . $qtype . '">';
echo '<input type="radio" name="qtype" id="qtype_' . $qtype . '" value="' . $qtype . '" />';
echo '<label for="qtype_' . $qtype . '"><span class="qtypename">';
echo '<span class="qtypename">';
$fakequestion = new stdClass;
$fakequestion->qtype = $qtype;
print_question_icon($fakequestion);
Expand Down
4 changes: 0 additions & 4 deletions theme/standard/styles_fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -725,10 +725,6 @@ body#grade-index .grades .header {
*** Question
***/

#chooseqtype .instruction,
#chooseqtype .qtypesummary {
font-size: 0.8em;
}
#chooseqtype .qtypename {
font-weight: bold;
}
Expand Down
6 changes: 6 additions & 0 deletions theme/standard/styles_layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -2919,6 +2919,9 @@ body.notes .notesgroup {
#chooseqtype .qtypeoption {
margin-bottom: 0.5em;
}
#chooseqtype label {
display: block;
}
#chooseqtype .qtypename img {
padding: 0 0.3em;
}
Expand Down Expand Up @@ -2951,6 +2954,9 @@ body.jsenabled #qtypechoicecontainer {
#qtypechoicecontainer #chooseqtype .qtypeoption {
margin-bottom: 0;
}
#qtypechoicecontainer #chooseqtype .qtypeoption input {
display: none;
}
#qtypechoicecontainer #chooseqtype .instruction,
#qtypechoicecontainer #chooseqtype .qtypesummary {
display: none;
Expand Down

0 comments on commit 7cf3af5

Please sign in to comment.