layout tweaks

This commit is contained in:
jacob 2010-06-22 17:14:23 +00:00
parent c699135bce
commit 00716cd84d
2 changed files with 10 additions and 11 deletions

View File

@ -22,7 +22,8 @@
'position' : 'absolute', 'position' : 'absolute',
'width' : '100%', 'width' : '100%',
'height' : '100%', 'height' : '100%',
'line-height' : '1.2em' 'line-height' : '1.2em',
'text-align' : 'left'
}; };
this.boxBackdropStyle = { this.boxBackdropStyle = {

View File

@ -315,7 +315,7 @@ if($_SESSION['schoolid'] && $_SESSION['schoolaccesscode']){
// create a list selector that can use these lists // create a list selector that can use these lists
var n; var n;
selector = new listSelector(selected, available, 'selector'); selector = new listSelector(selected, available, 'selector');
selector.setStyle({'height' : '60%', 'margin-top' : '10%'}); selector.setStyle({'height' : '70%', 'margin-top' : '7%'});
selector.leftTitle = '<?=i18n("assigned");?>'; selector.leftTitle = '<?=i18n("assigned");?>';
selector.rightTitle = '<?=i18n("available");?>'; selector.rightTitle = '<?=i18n("available");?>';
// highlight the lists appropriately // highlight the lists appropriately
@ -339,23 +339,21 @@ if($_SESSION['schoolid'] && $_SESSION['schoolaccesscode']){
// create the legend // create the legend
var legend = $('<div></div>'); var legend = $('<div></div>');
legend.append('<span style="margin:5px;background-color:#AFA"><?=i18n('Required'); ?></span>'); legend.append($('<strong><?=i18n("Legend")?>:</strong>'));
legend.append('<span style="margin:5px;background-color:#FFA"><?=i18n('Optional'); ?></span>'); legend.append(' <span style="background-color:#AFA"><?=i18n('Required'); ?></span>');
legend = $('<div><strong><?=i18n("Legend")?></strong></div>').append(legend); legend.append(' <span style="background-color:#FFA"><?=i18n('Optional'); ?></span>');
legend.css({ legend.css({
'background-color' : '#FFF', 'background-color' : '#FFF',
'width' : '12em', 'display' : 'inline',
'border' : 'solid', 'border' : 'solid',
'border-width' : '1px', 'border-width' : '1px',
'text-align' : 'center',
'padding' : '5px', 'padding' : '5px',
'line-height': '1.6em', 'line-height': '2em',
'margin' : 'auto'
}); });
legend = $('<div></div>').append(legend);
// now put all the parts together into a dialog // now put all the parts together into a dialog
var sdialog = $('<div></div>'); var sdialog = $('<div style="text-align:center"></div>');
sdialog.append(caption); sdialog.append(caption);
sdialog.append(selector.draw()); sdialog.append(selector.draw());
sdialog.append(legend); sdialog.append(legend);