Add “hidden” class to Sone ID.
[Sone.git] / src / main / resources / templates / editProfile.html
1 <%include include/head.html>
2
3         <script language="javascript">
4                 $(document).ready(function() {
5                         getTranslation("WebInterface.DefaultText.FirstName", function(firstNameDefaultText) {
6                                 registerInputTextareaSwap("#sone #edit-profile input[name=first-name]", firstNameDefaultText, "first-name", true, true);
7                         });
8                         getTranslation("WebInterface.DefaultText.MiddleName", function(middleNameDefaultText) {
9                                 registerInputTextareaSwap("#sone #edit-profile input[name=middle-name]", middleNameDefaultText, "middle-name", true, true);
10                         });
11                         getTranslation("WebInterface.DefaultText.LastName", function(lastNameDefaultText) {
12                                 registerInputTextareaSwap("#sone #edit-profile input[name=last-name]", lastNameDefaultText, "last-name", true, true);
13                         });
14                         getTranslation("WebInterface.DefaultText.BirthDay", function(birthDayDefaultText) {
15                                 registerInputTextareaSwap("#sone #edit-profile input[name=birth-day]", birthDayDefaultText, "birth-day", true, true);
16                         });
17                         getTranslation("WebInterface.DefaultText.BirthMonth", function(birthMonthDefaultText) {
18                                 registerInputTextareaSwap("#sone #edit-profile input[name=birth-month]", birthMonthDefaultText, "birth-month", true, true);
19                         });
20                         getTranslation("WebInterface.DefaultText.BirthYear", function(birthYearDefaultText) {
21                                 registerInputTextareaSwap("#sone #edit-profile input[name=birth-year]", birthYearDefaultText, "birth-year", true, true);
22                         });
23
24                         /* hide all the labels. */
25                         $("#sone #edit-profile label").hide();
26                 });
27         </script>
28
29         <h1><%= Page.EditProfile.Page.Title|l10n|html></h1>
30
31         <p><%= Page.EditProfile.Page.Description|l10n|html></p>
32         <p><%= Page.EditProfile.Page.Hint.Optionality|l10n|html></p>
33
34         <%if changed>
35                 <p><%= Page.EditProfile.Page.Status.Changed|l10n|html></p>
36         <%/if>
37
38         <form id="edit-profile" method="post">
39                 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
40
41                 <div>
42                         <label for="first-name"><%= Page.EditProfile.Label.FirstName|l10n|html></label>
43                         <input type="text" name="first-name" value="<% firstName|html>" />
44                 </div>
45
46                 <div>
47                         <label for="middle-name"><%= Page.EditProfile.Label.MiddleName|l10n|html></label>
48                         <input type="text" name="middle-name" value="<% middleName|html>" />
49                 </div>
50
51                 <div>
52                         <label for="last-name"><%= Page.EditProfile.Label.LastName|l10n|html></label>
53                         <input type="text" name="last-name" value="<% lastName|html>" />
54                 </div>
55
56                 <h1><%= Page.EditProfile.Birthday.Title|l10n|html></h1>
57
58                 <div id="birth-day">
59                         <label for="birth-day"><%= Page.EditProfile.Birthday.Label.Day|l10n|html></label>
60                         <input type="text" name="birth-day" value="<% birthDay|html>" />
61                 </div>
62
63                 <div id="birth-month">
64                         <label for="birth-month"><%= Page.EditProfile.Birthday.Label.Month|l10n|html></label>
65                         <input type="text" name="birth-month" value="<% birthMonth|html>" />
66                 </div>
67
68                 <div id="birth-year">
69                         <label for="birth-year"><%= Page.EditProfile.Birthday.Label.Year|l10n|html></label>
70                         <input type="text" name="birth-year" value="<% birthYear|html>" />
71                 </div>
72
73                 <div>
74                         <button type="submit"><%= Page.EditProfile.Button.Save|l10n|html></button>
75                 </div>
76
77         </form>
78
79 <%include include/tail.html>