X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2FeditProfile.html;h=ae0a522a43845dbce88f3151c1618571133d3b90;hb=dee1446a74cb28ba132167d4118fcf73d88a4b88;hp=ecdf2a79fe327e312da0fba1e06c4250d28b8178;hpb=7b00e5aa8bc5da54b82444a424945d8317f9c8b6;p=Sone.git diff --git a/src/main/resources/templates/editProfile.html b/src/main/resources/templates/editProfile.html index ecdf2a7..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(); }); @@ -86,11 +90,13 @@
- <%/foreach> -
- -
+ <%if fieldLoop.last> +
+ +
+ <%/if> + <%/foreach>