Bug 5917 / Bug 6085 : Fixing not being able to change language
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-userupdate.tt
1 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %][% ELSE %]Koha Online[% END %] Catalog ›  Updating Details for [% FOREACH BORROWER_INF IN BORROWER_INFO %][% BORROWER_INF.firstname %] [% BORROWER_INF.surname %][% END %]
2 [% INCLUDE 'doc-head-close.inc' %]
3 </head>
4 <body id="opac-userupdate">
5 <div id="doc3" class="yui-t1">
6    <div id="bd">
7 [% INCLUDE 'masthead.inc' %]
8
9         <div id="yui-main">
10         <div class="yui-b"><div class="yui-g" id="userupdate">
11
12 <div id="userupdatecontainer" class="container">
13 [% FOREACH BORROWER_INF IN BORROWER_INFO %]
14 <h3><a href="/cgi-bin/koha/opac-user.pl">[% BORROWER_INF.firstname %] [% BORROWER_INF.surname %]'s account</a> <img src="[% themelang %]../../images/caret.gif" width="16" height="16" alt="&gt;" border="0" /> Your Personal Details</h3>
15
16 [% IF ( OPACPatronDetails ) %]
17 <form action="/cgi-bin/koha/opac-userupdate.pl" method="get">
18 <div class="yui-u first">
19 <input type="hidden" name="modify" value="yes" />
20 <fieldset class="brief"><legend>Name</legend><ol>
21 <li><label for="firstname">First Name:</label> <input id="firstname" type="text" value="[% BORROWER_INF.firstname %]"  name="firstname" /></li>
22 <li><label for="othernames">Other Name:</label> <input id="othernames" type="text" value="[% BORROWER_INF.othernames %]"  name="othernames" /></li>
23 <li><label for="surname">Last Name:</label> <input id="surname" type="text" value="[% BORROWER_INF.surname %]"  name="surname" /></li>
24 </ol>
25 </fieldset>
26
27 <fieldset class="brief"><legend>Contact Information</legend>
28 <ol>
29 <li><label for="address">Address:</label>
30         <input id="streetnumber" size ="7" type="text" value="[% BORROWER_INF.streetnumber %]"  name="streetnumber" /> 
31         <input type="text" name="address" value="[% BORROWER_INF.address %]" id="address" />
32         <input type="text" name="address2" value="[% BORROWER_INF.address2 %]" id="address2" /></li>
33 <li><label for="city">City:</label> <input id="city" type="text" value="[% BORROWER_INF.city %]"  name="city" /></li>
34 <li><label for="state">State:</label> <input id="state" type="text" value="[% BORROWER_INF.state %]"  name="state" /></li>
35 <li><label for="zipcode">Zip Code: </label><input type="text" id="zipcode" value="[% BORROWER_INF.zipcode %]" name="zipcode" /></li>
36 <li><label for="country">Country: </label><input type="text" id="country" value="[% BORROWER_INF.country %]" name="country" /></li>
37 <li><label for="phone">Home Phone:</label> <input id="phone" type="text" value="[% BORROWER_INF.phone %]"  name="phone" /></li>
38 <li><label for="mobile">Mobile Phone:</label> <input id="mobile" type="text" value="[% BORROWER_INF.mobile %]"  name="mobile" /></li>
39 <li><label for="phonepro">Work phone:</label> <input id="phonepro"  type="text" value="[% BORROWER_INF.phonepro %]"  name="phonepro" /></li>
40 <li><label for="fax">Fax:</label> <input id="fax" type="text" value="[% BORROWER_INF.fax %]"  name="fax" /></li>
41 <li><label for="emailaddress">Primary Email:</label> <input id="emailaddress" type="text" value="[% BORROWER_INF.email %]"  name="emailaddress" /></li>
42 <li><label for="emailpro">Secondary Email:</label> <input id="emailpro" type="text" value="[% BORROWER_INF.emailpro %]"  name="emailpro" /></li>
43 </ol>
44 </fieldset>
45
46 </div>
47 <div class="yui-u">
48 <fieldset class="brief">
49 <legend>Alternate Contact Information</legend>
50 <ol>
51 <li>
52     <label for="B_streetaddress">Alternate Address:</label> 
53     <input id="B_streetnumber" size ="7" type="text" value="[% BORROWER_INF.B_streetnumber %]"  name="B_streetnumber" /> 
54     <input id="B_address" type="text" value="[% BORROWER_INF.B_address %]"  name="B_address" /> 
55     <input id="B_address2" type="text" value="[% BORROWER_INF.B_address2 %]"  name="B_address2" />
56 </li>
57
58 <li><label for="B_city">City:</label> <input id="B_city" type="text" value="[% BORROWER_INF.B_city %]"  name="B_city" /></li>
59 <li><label for="B_state">State:</label> <input id="B_state" type="text" value="[% BORROWER_INF.B_state %]"  name="B_state" /></li>
60 <li><label for="B_zipcode">Zip Code:</label> <input type="text" id="B_zipcode" value="[% BORROWER_INF.B_zipcode %]" name="B_zipcode" /></li>
61 <li><label for="B_country">Country:</label> <input type="text" id="B_country" value="[% BORROWER_INF.B_country %]" name="B_country" /></li>
62 <li><label for="B_phone">Phone:</label> <input type="text" id="B_phone" value="[% BORROWER_INF.B_phone %]" name="B_phone" /></li>
63 <li><label for="B_email">Email:</label> <input type="text" id="B_email" value="[% BORROWER_INF.B_email %]" name="B_email" /></li>
64 </ol>
65 </fieldset>
66 <fieldset class="brief">
67 <ol>
68 <li><label for="dob">Date of Birth: </label> <input id="dob" type="text" size="10" value="[% BORROWER_INF.dateofbirth %]" name="dateofbirth" /></li>
69 <li><label for="sex">Sex: </label> <select name="sex" id="sex"><option></option>
70 [% IF ( sex == 'F' ) %]<option value="F" selected="selected">Female</option>[% ELSE %]<option value="F">Female</option>[% END %]
71 [% IF ( sex == 'M' ) %]<option value="M" selected="selected">Male</option>[% ELSE %]<option value="M">Male</option>[% END %]
72 </select></li>
73 </ol></fieldset>
74 <fieldset class="brief">
75 <legend>Library Use:</legend>
76 <ol>
77         <li><label for="cardnumber">Card number:</label><input type="text" id="cardnumber" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.cardnumber %]" /></li>
78     <li><label for="branchname">Home library:</label><input type="text" id="branchname" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.branchname %]" /></li>
79         <li><label for="borrowernumber">Patron Number:</label><input type="text" id="borrowernumber" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.borrowernumber %]" /></li>
80         <li><label for="categorycode">Patron Category:</label><input type="text" id="categorycode" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.description %] ([% BORROWER_INF.categorycode %])" /></li>
81         <li><label for="dateenrolled">Joined: </label><input type="text" id="dateenrolled" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.dateenrolled %]" /></li>
82         <li><label for="dateexpiry">Expires: </label><input type="text" id="dateexpiry" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.dateexpiry %]" /></li>
83    [% IF ( BORROWER_INF.ExtendedPatronAttributes ) %]
84     [% FOREACH patron_attribute IN BORROWER_INF.patron_attributes %]
85         <li><label>[% patron_attribute.description %]</label>
86         [% IF ( patron_attribute.value_description ) %]
87             <input type="text"  disabled="disabled" readonly="readonly" value="[% patron_attribute.value_description %]" />
88         [% ELSE %]
89             <input type="text"  disabled="disabled" readonly="readonly" value="[% patron_attribute.value %]" />
90         [% END %]
91         </li>
92     [% END %]
93    [% END %]
94 </ol>
95 </fieldset>
96 <fieldset class="action">
97 <p>Please make any necessary changes to your record.  Submitting the form will notify a library staff member, who will make the changes permanent.</p>
98 <input type="submit" value="Submit Changes" /> <a class="cancel" href="/cgi-bin/koha/opac-user.pl">Cancel</a></fieldset>
99 </div>
100
101 </form>
102 [% ELSE %]
103 <p style="clear:left;padding:1em 0">To make changes to your record please contact the library.</p>
104 <div class="yui-u first">
105 <fieldset class="rows">
106 <legend>Contact Information</legend>
107 <ol>
108 <li><span class="label">Name:</span> [% BORROWER_INF.firstname %] [% BORROWER_INF.surname %]</li>
109 <li><span class="label">Other Name:</span> [% BORROWER_INF.othernames %]</li>
110 <li><span class="label">Address:</span> [% BORROWER_INF.streetnumber %] [% BORROWER_INF.address %]</li>
111 <li><span class="label">&nbsp;</span>[% BORROWER_INF.address2 %]</li>
112 <li><span class="label">City:</span>  [% BORROWER_INF.city %]</li>
113 <li><span class="label">State:</span>  [% BORROWER_INF.state %]</li>
114 <li><span class="label">Zip Code:</span>  [% BORROWER_INF.zipcode %]</li>
115 <li><span class="label">Country:</span>  [% BORROWER_INF.country %]</li>
116 <li><span class="label">Home Phone:</span>  [% BORROWER_INF.phone %]</li>
117 <li><span class="label">Mobile Phone:</span>  [% BORROWER_INF.mobile %]</li>
118 <li><span class="label">Work phone:</span>  [% BORROWER_INF.phonepro %]</li>
119 <li><span class="label">Fax:</span>  [% BORROWER_INF.fax %]</li>
120 <li><span class="label">Primary Email:</span>  [% BORROWER_INF.email %]</li>
121 <li><span class="label">Secondary Email:</span>  [% BORROWER_INF.emailpro %]</li>
122 </ol>
123 </fieldset>
124
125 <fieldset class="rows">
126 <legend>Personal Information</legend>
127 <ol>
128 <li><span class="label">Date of Birth:</span> [% BORROWER_INF.dateofbirth %]</li>
129 <li><span class="label">Sex:</span>
130 [% IF ( sex == 'F' ) %]Female[% END %]
131 [% IF ( sex == 'M' ) %]Male[% END %]
132 </li>
133 </ol>
134 </fieldset>
135 </div>
136
137 <div class="yui-u">
138 <fieldset class="rows">
139 <legend>Alternate Contact Information</legend>
140 <ol>
141 <li><span class="label">Alternate Address:</span> [% BORROWER_INF.B_streetnumber %] [% BORROWER_INF.B_address %] </li>
142 <li><span class="label">&nbsp;</span>[% BORROWER_INF.B_address2 %]</li>
143 <li><span class="label">City:</span> [% BORROWER_INF.B_city %]</li>
144 <li><span class="label">State:</span> [% BORROWER_INF.B_state %]</li>
145 <li><span class="label">Zip Code:</span> [% BORROWER_INF.B_zipcode %]</li>
146 <li><span class="label">Country:</span> [% BORROWER_INF.B_country %]</li>
147 <li><span class="label">Phone:</span> [% BORROWER_INF.B_phone %]</li>
148 <li><span class="label">Email:</span> [% BORROWER_INF.B_email %]</li>
149 </ol>
150 </fieldset>
151
152 <fieldset class="rows">
153 <legend>Library Use:</legend>
154 <ol>
155 <li><span class="label">Card number:</span> [% BORROWER_INF.cardnumber %]</li>
156 <li><span class="label">Home library:</span> [% BORROWER_INF.branchname %]</li>
157 <li><span class="label">Patron Number:</span> [% BORROWER_INF.borrowernumber %]</li>
158 <li><span class="label">Patron Category:</span> [% BORROWER_INF.description %] ([% BORROWER_INF.categorycode %])</li>
159 <li><span class="label">Joined:</span> [% BORROWER_INF.dateenrolled %]</li>
160 <li><span class="label">Expires:</span> [% BORROWER_INF.dateexpiry %]</li>
161    [% IF ( BORROWER_INF.ExtendedPatronAttributes ) %]
162     [% FOREACH patron_attribute IN BORROWER_INF.patron_attributes %]
163         <li><span class="label">[% patron_attribute.description %]</span>
164         [% IF ( patron_attribute.value_description ) %]
165             [% patron_attribute.value_description %]
166         [% ELSE %]
167             [% patron_attribute.value %]
168         [% END %]
169         </li>
170     [% END %]
171    [% END %]
172 </ol>
173 </fieldset>
174 </div>
175 [% END %]
176 [% END %]
177 </div>
178 </div>
179 </div>
180 </div>
181 <div class="yui-b">
182 <div id="leftmenus" class="container">
183 [% INCLUDE 'navigation.inc' %]
184 [% INCLUDE 'usermenu.inc' %]
185 </div>
186 </div>
187 </div>
188 [% INCLUDE 'opac-bottom.inc' %]