♥bruyndoncx Posted February 23, 2014 Share Posted February 23, 2014 Considering doing something like this: <tr> <td class="fieldKey"><?php echo ENTRY_LAST_NAME; ?></td> <td class="fieldValue"><?php echo tep_draw_input_field('lastname', $account['customers_lastname']) . ' ' . (tep_not_null(ENTRY_LAST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_LAST_NAME_TEXT . '</span>': ''); ?></td> </tr> to <div class="form-group has-feedback"> <label for="inputName" class="control-label col-xs-2"><?php echo ENTRY_LAST_NAME; ?></label> <div class="col-xs-10"> <?php echo tep_draw_input_field('lastname', $account['customers_lastname'], 'required id="inputName" placeholder="' . ENTRY_LAST_NAME . '"'); ?> <span class="glyphicon glyphicon-asterisk form-control-feedback required"></span> </div> </div> Thoughts ? This changes the look as shown in the attached images. This looks consistent with the other changes made, I personally was thinking it would be better if you would have one function that returns this complete html block, a bit like it is done in this wordpress shortcodes implementation. https://github.com/filipstefansson/bootstrap-3-shortcodes/blob/master/bootstrap-shortcodes.php Note, i'm not advocating wp shortcodes, but just the way you have different functions that generate more of the surrounding html so you don't have to change as many files if you were for instance to decide you don't like the required glyphon. KEEP CALM AND CARRY ON I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support). So if you are still here ? What are you waiting for ?! Find the most frequent unique errors to fix: grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.