projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Show name of profile fields in empty fields.
[Sone.git]
/
src
/
main
/
resources
/
templates
/
editProfile.html
diff --git
a/src/main/resources/templates/editProfile.html
b/src/main/resources/templates/editProfile.html
index
ecdf2a7
..
ae0a522
100644
(file)
--- 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);
});
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();
});
/* hide all the labels. */
$("#sone #edit-profile label, #sone #add-profile-field label").hide();
});
@@
-86,11
+90,13
@@
<div class="<%if fieldLoop.first>hidden <%/if>move-up-field"><button type="submit" name="move-up-field-<% fieldLoop.count>" value="true"><%= Page.EditProfile.Fields.Button.MoveUp|l10n|html></button></div>
<div class="value"><input type="text" name="field-<% fieldLoop.count>" value="<% field.value|html>" /></div>
</div>
<div class="<%if fieldLoop.first>hidden <%/if>move-up-field"><button type="submit" name="move-up-field-<% fieldLoop.count>" value="true"><%= Page.EditProfile.Fields.Button.MoveUp|l10n|html></button></div>
<div class="value"><input type="text" name="field-<% fieldLoop.count>" value="<% field.value|html>" /></div>
</div>
- <%/foreach>
- <div>
- <button type="submit" name="save-profile" value="true"><%= Page.EditProfile.Button.Save|l10n|html></button>
- </div>
+ <%if fieldLoop.last>
+ <div>
+ <button type="submit" name="save-profile" value="true"><%= Page.EditProfile.Button.Save|l10n|html></button>
+ </div>
+ <%/if>
+ <%/foreach>
</form>
</form>