We need a common CSS strategy for popup dialogs being used in the product, including location/positioning of buttons, form elements, handling overflows, etc.
See bug http://bugs.developer.mindtouch.com/view.php?id=8435
Status
Implemented in 10.0.1
The programmer should have a way to specify a special page form to be consistent with the rest of the site.
The programmer can choose a "footer" element to appear in a consistent manner among all popups.

Using DekiForm methods will automatically use the correct styles for popups if they are marked with "special-page-form".
<form class="special-page-form"> <!-- render form elements --> </form>
To have a button appear right-aligned in the footer, use
<div id="footer">
<div class="buttons-bottom">
<?php echo DekiForm::singleInput('button', ...); ?>
</div>
</div>
General framework for popup
<html> <head> <!-- default css and javascript --> </head> <body id="SpecialPagePopup" class="page-special-popup"> <!-- message html: MTMessage (id: MTMessage) & FlashMessage (ul class="flashMsg") --> <div id="container"> <div id="container-wrap"> <!-- main body, form rendering, etc. --> <form class="special-page-form"> ... </form> <!-- footer element will be absolutely positioned on bottom, no matter where it appears --> <div id="footer"> <!-- footer buttons, etc. --> </div> </div> </div> </body> </html>
| File | Version | Size | Modified | |
|---|---|---|---|---|
| ||||
| ||||
Copyright © 2011 MindTouch, Inc. Powered by