Skip to content

Commit

Permalink
MDL-20508 - fixed options styles and layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwijaya committed Jul 26, 2010
1 parent 87f702a commit aad6246
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
13 changes: 6 additions & 7 deletions mod/choice/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@ public function display_publish_name_vertical($choices) {
foreach ($columns as $d) {
$table->colclasses[] = 'data';
}

$html .= html_writer::table($table);
$html .= html_writer::tag('div', html_writer::table($table), array('class'=>'response'));

$actiondata = '';
if ($choices->viewresponsecapability && $choices->deleterepsonsecapability) {
Expand All @@ -229,8 +228,8 @@ public function display_publish_name_vertical($choices) {
if ($choices->viewresponsecapability) {
$html .= html_writer::end_tag('form');
}
return $html;

return $html;
}


Expand Down Expand Up @@ -315,9 +314,9 @@ public function display_publish_anonymous_vertical($choices) {

$header = html_writer::tag('h2',format_string(get_string("responses", "choice")));
$html .= html_writer::tag('div', $header, array('class'=>'responseheader'));
$html .= html_writer::tag('a', get_string('skipresultgraph', 'choice'), array('href'=>'#skipresultgraph', 'class'=>'skip-block'));
$html .= html_writer::table($table);
$html .= html_writer::tag('a', get_string('skipresultgraph', 'choice'), array('href'=>'#skipresultgraph', 'class'=>'skip-block'));
$html .= html_writer::tag('div', html_writer::table($table), array('class'=>'response'));

return $html;
}

Expand Down
2 changes: 2 additions & 0 deletions mod/choice/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
.path-mod-choice .results.names .user .fullname{padding-left: 5px;}
.path-mod-choice .results .data.header {width: 10%;}
.path-mod-choice .responseaction {text-align: center;}
.path-mod-choice .results .option {white-space: normal;}
.path-mod-choice .response {overflow: auto;}

#page-mod-choice-report .downloadreport ul li {list-style:none;padding: 0 20px; display: inline;float: left; }
.path-mod-choice .clearfloat {float:none; clear:both;}
Expand Down
4 changes: 2 additions & 2 deletions theme/canvas/style/mods.css
Original file line number Diff line number Diff line change
Expand Up @@ -335,13 +335,13 @@
padding: 5px;
}

.path-mod-choice .header, .path-mod-choice td {
.path-mod-choice .results .header, .path-mod-choice td {
border-top: 1px solid;
border-color: #ddd;
}

.path-mod-choice .count,
.path-mod-choice .header,
.path-mod-choice .results .header,
.path-mod-choice .data,
.path-mod-choice .lastcol {
border-right: 1px solid #ddd;
Expand Down

0 comments on commit aad6246

Please sign in to comment.