Skip to content

Commit

Permalink
MDL-42210 mod_feedback - convert tabs to space
Browse files Browse the repository at this point in the history
  • Loading branch information
grabs committed Oct 20, 2013
1 parent 60293b2 commit 4ae00d7
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
16 changes: 8 additions & 8 deletions mod/feedback/item/multichoice/lib.php
Expand Up @@ -317,8 +317,8 @@ public function print_item_preview($item) {
//print the question and label
echo '<div class="feedback_item_label_'.$align.'">';
if ($info->subtype == 'd') {
echo '<label for="'. $item->typ . '_' . $item->id .'">';
}
echo '<label for="'. $item->typ . '_' . $item->id .'">';
}
echo '('.$item->label.') ';
echo format_text($item->name.$requiredmark, true, false, false);
if ($item->dependitem) {
Expand All @@ -329,8 +329,8 @@ public function print_item_preview($item) {
}
}
if ($info->subtype == 'd') {
echo '</label>';
}
echo '</label>';
}
echo '</div>';

//print the presentation
Expand Down Expand Up @@ -427,12 +427,12 @@ public function print_item_complete($item, $value = null, $highlightrequire = fa
//print the question and label
echo '<div class="feedback_item_label_'.$align.$highlight.'">';
if ($info->subtype == 'd') {
echo '<label for="'. $item->typ . '_' . $item->id .'">';
echo '<label for="'. $item->typ . '_' . $item->id .'">';
echo format_text($item->name.$requiredmark, true, false, false);
echo '</label>';
} else {
echo '</label>';
} else {
echo format_text($item->name.$requiredmark, true, false, false);
}
}
echo '</div>';

//print the presentation
Expand Down
8 changes: 4 additions & 4 deletions mod/feedback/item/numeric/lib.php
Expand Up @@ -252,7 +252,7 @@ public function print_item_preview($item) {

$requiredmark = ($item->required == 1) ? $str_required_mark : '';
//print the question and label
$inputname = $item->typ . '_' . $item->id;
$inputname = $item->typ . '_' . $item->id;
echo '<div class="feedback_item_label_'.$align.'">';
echo '<label for="'. $inputname .'">';
echo '('.$item->label.') ';
Expand Down Expand Up @@ -283,7 +283,7 @@ public function print_item_preview($item) {
break;
}
echo '</span>';
echo '</label>';
echo '</label>';
echo '</div>';

//print the presentation
Expand Down Expand Up @@ -339,7 +339,7 @@ public function print_item_complete($item, $value = '', $highlightrequire = fals
$requiredmark = ($item->required == 1) ? $str_required_mark : '';

//print the question and label
$inputname = $item->typ . '_' . $item->id;
$inputname = $item->typ . '_' . $item->id;
echo '<div class="feedback_item_label_'.$align.$highlight.'">';
echo '<label for="'. $inputname .'">';
echo format_text($item->name . $requiredmark, true, false, false);
Expand All @@ -361,7 +361,7 @@ public function print_item_complete($item, $value = '', $highlightrequire = fals
break;
}
echo '</span>';
echo '</label>';
echo '</label>';
echo '</div>';

//print the presentation
Expand Down
12 changes: 6 additions & 6 deletions mod/feedback/item/textarea/lib.php
Expand Up @@ -190,7 +190,7 @@ public function excelprint_item(&$worksheet, $row_offset,
return $row_offset;
}

/**
/**
* print the item at the edit-page of feedback
*
* @global object
Expand All @@ -206,7 +206,7 @@ public function print_item_preview($item) {
$presentation = explode ("|", $item->presentation);
$requiredmark = ($item->required == 1) ? $str_required_mark : '';
//print the question and label
$inputname = $item->typ . '_' . $item->id;
$inputname = $item->typ . '_' . $item->id;
echo '<div class="feedback_item_label_'.$align.'">';
echo '<label for="'. $inputname .'">';
echo '('.$item->label.') ';
Expand All @@ -218,7 +218,7 @@ public function print_item_preview($item) {
echo '</span>';
}
}
echo '</label>';
echo '</label>';
echo '</div>';

//print the presentation
Expand All @@ -233,7 +233,7 @@ public function print_item_preview($item) {
echo '</div>';
}

/**
/**
* print the item at the complete-page of feedback
*
* @global object
Expand All @@ -256,7 +256,7 @@ public function print_item_complete($item, $value = '', $highlightrequire = fals
$requiredmark = ($item->required == 1) ? $str_required_mark :'';

//print the question and label
$inputname = $item->typ . '_' . $item->id;
$inputname = $item->typ . '_' . $item->id;
echo '<div class="feedback_item_label_'.$align.$highlight.'">';
echo '<label for="'. $inputname .'">';
echo format_text($item->name . $requiredmark, true, false, false);
Expand All @@ -276,7 +276,7 @@ public function print_item_complete($item, $value = '', $highlightrequire = fals
echo '</div>';
}

/**
/**
* print the item at the complete-page of feedback
*
* @global object
Expand Down
14 changes: 7 additions & 7 deletions mod/feedback/item/textfield/lib.php
Expand Up @@ -179,7 +179,7 @@ public function excelprint_item(&$worksheet, $row_offset,
return $row_offset;
}

/**
/**
* print the item at the edit-page of feedback
*
* @global object
Expand All @@ -194,7 +194,7 @@ public function print_item_preview($item) {
$presentation = explode ("|", $item->presentation);
$requiredmark = ($item->required == 1) ? $str_required_mark : '';
//print the question and label
$inputname = $item->typ . '_' . $item->id;
$inputname = $item->typ . '_' . $item->id;
echo '<div class="feedback_item_label_'.$align.'">';
echo '<label for="'. $inputname .'">';
echo '('.$item->label.') ';
Expand All @@ -206,7 +206,7 @@ public function print_item_preview($item) {
echo '</span>';
}
}
echo '</label>';
echo '</label>';
echo '</div>';

//print the presentation
Expand All @@ -222,7 +222,7 @@ public function print_item_preview($item) {
echo '</div>';
}

/**
/**
* print the item at the complete-page of feedback
*
* @global object
Expand All @@ -245,11 +245,11 @@ public function print_item_complete($item, $value = '', $highlightrequire = fals
$requiredmark = ($item->required == 1) ? $str_required_mark : '';

//print the question and label
$inputname = $item->typ . '_' . $item->id;
$inputname = $item->typ . '_' . $item->id;
echo '<div class="feedback_item_label_'.$align.$highlight.'">';
echo '<label for="'. $inputname .'">';
echo format_text($item->name.$requiredmark, true, false, false);
echo '</label>';
echo '</label>';
echo '</div>';

//print the presentation
Expand All @@ -265,7 +265,7 @@ public function print_item_complete($item, $value = '', $highlightrequire = fals
echo '</div>';
}

/**
/**
* print the item at the complete-page of feedback
*
* @global object
Expand Down

0 comments on commit 4ae00d7

Please sign in to comment.