~andreserl/maas/lp1582323_2.1

« back to all changes in this revision

Viewing changes to src/maasserver/static/js/angular/directives/maas_obj_form.js

[r=allenap][bug=1628054,1628058,1628126,1646160,1646162,1646163][author=ricgard] Backport: r5547 r5549, fixes FUJ and Device discovery issues

Show diffs side-by-side

added added

removed removed

Lines of Context:
497
497
                    } else {
498
498
                        labelElement.addClass("u-margin--right");
499
499
                    }
 
500
                    if(attrs.labelLeft === "true") {
 
501
                        labelElement.addClass('u-padding--left');
 
502
                        labelElement.addClass('u-position--relative');
 
503
                    }
500
504
                    element.append(labelElement);
501
505
 
502
506
                    // Add a label info icon with tooltip.
506
510
                        infoElement.addClass('icon');
507
511
                        infoElement.addClass('icon--info');
508
512
                        infoElement.addClass('tooltip');
 
513
                        infoElement.addClass('u-margin--left-tiny');
 
514
                        if(attrs.labelLeft === "true") {
 
515
                          infoElement.addClass('icon--left');
 
516
                          infoElement.removeClass('u-margin--left-tiny');
 
517
                        }
509
518
                        infoElement.attr('aria-label', attrs.labelInfo);
510
519
                        labelElement.text(labelElement.text() + ' ');
511
520
                        labelElement.append(infoElement);
512
521
                    }
 
522
 
 
523
 
513
524
                }
514
525
 
515
526
                // Add the wrapper for the input.