info: Improve appearance of rendered profile even more.
authorDavid Thompson <davet@gnu.org>
Thu, 6 Nov 2014 00:11:40 +0000 (19:11 -0500)
committerDavid Thompson <davet@gnu.org>
Thu, 6 Nov 2014 00:11:40 +0000 (19:11 -0500)
* assets/js/member-info.js: Wrap labels and inputs in divs with the
  necessary classes applied for good style.

assets/js/member-info.js

index 95a7e158b93b2d881f776f0aa9fe7ffebc6b7116..aaf093707c4171de73c463be616acfe4ef1f98d4 100644 (file)
           return _.isString(field.label) && _.isString(field.html);
         })
         .map(function (field) {
-          return $('<div class="form-item"></div>')
-            .append(field.label)
-            .append(field.html);
+          return $('<div class="crm-section"></div>')
+            .append($('<div class="form-item"></div>')
+                    .append($('<div class="label"></div>')
+                            .append(field.label))
+                    .append($('<div class="content"></div>')
+                            .append(field.html))
+                    .append($('<div class="clear"></div>')));
         })
         .value();
     }