Add the ability to append help text to a tabcontrol_text field, similar to optionscontrol_text from the Options page. This should be expanded to the other controls, but this is the only one I need right now.
--- trunk/htdocs/system/admin/formcontrols/tabcontrol_text.php 2010-11-21 21:44:13 UTC (rev 4603)
+++ trunk/htdocs/system/admin/formcontrols/tabcontrol_text.php 2010-11-21 21:45:05 UTC (rev 4604)
@@ -1,5 +1,16 @@
<div class="container<?php echo ($class) ? ' ' . $class : ''?>">
<p class="pct25"><label for="<?php echo $id; ?>"><?php echo $this->caption; ?></label></p>
- <p class="pct75"><input type="text" name="<?php echo $field; ?>" id="<?php echo $id; ?>" class="styledformelement" value="<?php echo Utils::htmlspecialchars( $value ); ?>"></p>
+ <p class="pct75">
+ <input type="text" name="<?php echo $field; ?>" id="<?php echo $id; ?>" class="styledformelement" value="<?php echo Utils::htmlspecialchars( $value ); ?>">
+ <?php
+
+ if ( isset( $helptext ) && !empty( $helptext ) ) {
+ ?>
+ <span class="helptext"><?php echo Utils::htmlspecialchars( $helptext ); ?></span>
+ <?php
+ }
+
+ ?>
+ </p>
</div>