Show name of profile fields in empty fields.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 14 Jan 2011 12:02:13 +0000 (13:02 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 14 Jan 2011 12:02:13 +0000 (13:02 +0100)
src/main/resources/templates/editProfile.html

index cac92a1..ae0a522 100644 (file)
                                registerInputTextareaSwap("#sone #add-profile-field input[name=field-name]", fieldNameDefaultText, "field-name", true, true);
                        });
 
+                       <%foreach fields field>
+                               registerInputTextareaSwap("#sone #edit-profile input[name=field-<% loop.count>]", "<% field.key|html>", "field-<% loop.count>", true, true);
+                       <%/foreach>
+
                        /* hide all the labels. */
                        $("#sone #edit-profile label, #sone #add-profile-field label").hide();
                });