Skip to content

Commit

Permalink
Merged branch 'wip-MDL-30361-master-rtlpatches' of git://github.com/n…
Browse files Browse the repository at this point in the history
…adavkav/moodle.git with changes
  • Loading branch information
Sam Hemelryk committed Nov 29, 2011
2 parents 3654f38 + bc86c87 commit bada16d
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 7 deletions.
8 changes: 8 additions & 0 deletions grade/report/grader/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,14 @@ table#user-grades td.ajax {
text-align:left;
}

.dir-rtl table#user-grades td.userfield,
.dir-rtl table#user-grades th,
.path-grade-report-grader.dir-rtl div.gradeparent,
.path-grade-report-grader.dir-rtl .ie6 form,
.dir-rtl table#user-grades td.ajax {
text-align:right;
}

.path-grade-report-grader .gradeparent {
overflow:auto;
}
Expand Down
1 change: 0 additions & 1 deletion mod/assignment/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@

#page-mod-assignment-submissions .mform.optionspref .fitem .fitemtitle {width:50%;}
#page-mod-assignment-submissions .mform.optionspref .fitem .felement {width: 30%; margin-left: 51%;}
#page-mod-assignment-submissions.dir-rtl .mform .fitem .felement {margin-right: 51%; margin-left: 0;}

#page-mod-assignment-submissions .optionspref {width: 50%;}
#page-mod-assignment-submissions .fastgbutton {text-align: center;}
Expand Down
19 changes: 14 additions & 5 deletions mod/glossary/editcategories.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,15 @@
$fmtoptions = array(
'context' => $context);

if (right_to_left()) { // RTL table alignment support
$rightalignment = 'left';
$leftalignment = 'right';
} else {
$rightalignment = 'right';
$leftalignment = 'left';

}

if ( $hook >0 ) {

if ( $action == "edit" ) {
Expand Down Expand Up @@ -135,7 +144,7 @@

<table border="0" width="100" class="confirmbuttons">
<tr>
<td align="right" style="width:50%">
<td align="$rightalignment" style="width:50%">
<form id="form" method="post" action="editcategories.php">
<div>
<input type="hidden" name="id" value="<?php p($cm->id) ?>" />
Expand All @@ -147,7 +156,7 @@
</div>
</form>
</td>
<td align="left" style="width:50%">
<td align="$leftalignment" style="width:50%">

<?php
unset($options);
Expand Down Expand Up @@ -217,7 +226,7 @@
?>

<tr>
<td style="width:80%" align="left">
<td style="width:80%" align="$leftalignment">
<?php
echo "<span class=\"bold\">".format_string($category->name, true, $fmtoptions)."</span> <span>($num_entries " . get_string("entries","glossary") . ")</span>";
?>
Expand Down Expand Up @@ -245,9 +254,9 @@
$options['id'] = $cm->id;
$options['action'] = "add";

echo "<table class=\"editbuttons\" border=\"0\"><tr><td align=\"right\">";
echo "<table class=\"editbuttons\" border=\"0\"><tr><td align=\"$rightalignment\">";
echo $OUTPUT->single_button(new moodle_url("editcategories.php", $options), get_string("add") . " " . get_string("category","glossary"));
echo "</td><td align=\"left\">";
echo "</td><td align=\"$leftalignment\">";
unset($options['action']);
$options['mode'] = 'cat';
$options['hook'] = $hook;
Expand Down
3 changes: 2 additions & 1 deletion theme/base/style/core.css
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,8 @@ body.tag .managelink {padding: 5px;}
.dir-rtl .mod-indent-15,
.dir-rtl .mod-indent-huge {margin-right:300px;margin-left:0;}

.dir-rtl .felement.feditor select {margin-right:18.75%;}
.dir-rtl .felement.feditor select {margin-right:18.75%;margin-left:auto;}
.dir-rtl .mform .fitem .felement {margin-right: 16%;margin-left:auto;}

/* Resourcelib mp3 player size: only width could be changed here, height hardcoded in JS */
.resourcecontent .resourcemediaplugin_mp3 object {height:25px; width: 600px}
Expand Down
1 change: 1 addition & 0 deletions theme/standard/style/grade.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ td.grade div.overridden {background-color: #DDDDDD;}

.path-grade-edit-scale .scale_options,
#page-admin-grade-edit-scale-index .scale_options {font-size: 0.8em;}
.path-grade-edit-scale .generaltable {margin: 10px auto;}

.gradetreebox {margin:10px auto;width:90%;}
.gradetreebox table {font-size: 0.8em;border: 1px solid #AAA;}
Expand Down

0 comments on commit bada16d

Please sign in to comment.