X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2FeditProfile.html;fp=src%2Fmain%2Fresources%2Ftemplates%2FeditProfile.html;h=ae0a522a43845dbce88f3151c1618571133d3b90;hp=cac92a1ba386ea9bdb28bdf094a59b2b46be868d;hb=dee1446a74cb28ba132167d4118fcf73d88a4b88;hpb=11efd0534187a67b10448fc17d99120096ee2b28 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(); });