From dee1446a74cb28ba132167d4118fcf73d88a4b88 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 14 Jan 2011 13:02:13 +0100 Subject: [PATCH] Show name of profile fields in empty fields. --- src/main/resources/templates/editProfile.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/resources/templates/editProfile.html b/src/main/resources/templates/editProfile.html index cac92a1..ae0a522 100644 --- a/src/main/resources/templates/editProfile.html +++ b/src/main/resources/templates/editProfile.html @@ -24,6 +24,10 @@ 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(); }); -- 2.7.4