From: David ‘Bombe’ Roden Date: Fri, 14 Jan 2011 12:02:13 +0000 (+0100) Subject: Show name of profile fields in empty fields. X-Git-Tag: 0.4^2~9^2~18 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=dee1446a74cb28ba132167d4118fcf73d88a4b88;p=Sone.git Show name of profile fields in empty fields. --- 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(); });