7f0e61a7620b311f402bf996f36f519767d9e27e
[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 ›  Your personal details
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">[% INCLUDE 'patron-title.inc' firstname = BORROWER_INF.firstname surname = BORROWER_INF.surname othernames = BORROWER_INF.othernames cardnumber = BORROWER_INF.cardnumber %]'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 [% IF ( display_patron_image ) %]<p style="border:1px solid #EEE;padding:1em;">
21     <img src="/cgi-bin/koha/opac-patron-image.pl" alt="" />
22 </p>[% END %]
23 <fieldset class="brief"><legend>Name</legend><ol>
24 <li><label for="firstname">First Name:</label> <input id="firstname" type="text" value="[% BORROWER_INF.firstname %]"  name="firstname" /></li>
25 <li><label for="othernames">Other Name:</label> <input id="othernames" type="text" value="[% BORROWER_INF.othernames %]"  name="othernames" /></li>
26 <li><label for="surname">Last Name:</label> <input id="surname" type="text" value="[% BORROWER_INF.surname %]"  name="surname" /></li>
27 </ol>
28 </fieldset>
29
30 <fieldset class="brief"><legend>Contact Information</legend>
31 <ol>
32 <li><label for="address">Address:</label>
33         <input id="streetnumber" size ="7" type="text" value="[% BORROWER_INF.streetnumber %]"  name="streetnumber" /> 
34         <input type="text" name="address" value="[% BORROWER_INF.address %]" id="address" />
35         <input type="text" name="address2" value="[% BORROWER_INF.address2 %]" id="address2" /></li>
36 <li><label for="city">City:</label> <input id="city" type="text" value="[% BORROWER_INF.city %]"  name="city" /></li>
37 <li><label for="state">State:</label> <input id="state" type="text" value="[% BORROWER_INF.state %]"  name="state" /></li>
38 <li><label for="zipcode">Zip Code: </label><input type="text" id="zipcode" value="[% BORROWER_INF.zipcode %]" name="zipcode" /></li>
39 <li><label for="country">Country: </label><input type="text" id="country" value="[% BORROWER_INF.country %]" name="country" /></li>
40 <li><label for="phone">Primary Phone:</label> <input id="phone" type="text" value="[% BORROWER_INF.phone %]"  name="phone" /></li>
41 <li><label for="mobile">Secondary Phone:</label> <input id="mobile" type="text" value="[% BORROWER_INF.mobile %]"  name="mobile" /></li>
42 <li><label for="phonepro">Other Phone:</label> <input id="phonepro"  type="text" value="[% BORROWER_INF.phonepro %]"  name="phonepro" /></li>
43 <li><label for="fax">Fax:</label> <input id="fax" type="text" value="[% BORROWER_INF.fax %]"  name="fax" /></li>
44 <li><label for="emailaddress">Primary Email:</label> <input id="emailaddress" type="text" value="[% BORROWER_INF.email %]"  name="emailaddress" /></li>
45 <li><label for="emailpro">Secondary Email:</label> <input id="emailpro" type="text" value="[% BORROWER_INF.emailpro %]"  name="emailpro" /></li>
46 </ol>
47 </fieldset>
48
49 </div>
50 <div class="yui-u">
51 <fieldset class="brief">
52 <legend>Alternate Contact Information</legend>
53 <ol>
54 <li>
55     <label for="B_streetaddress">Alternate Address:</label> 
56     <input id="B_streetnumber" size ="7" type="text" value="[% BORROWER_INF.B_streetnumber %]"  name="B_streetnumber" /> 
57     <input id="B_address" type="text" value="[% BORROWER_INF.B_address %]"  name="B_address" /> 
58     <input id="B_address2" type="text" value="[% BORROWER_INF.B_address2 %]"  name="B_address2" />
59 </li>
60
61 <li><label for="B_city">City:</label> <input id="B_city" type="text" value="[% BORROWER_INF.B_city %]"  name="B_city" /></li>
62 <li><label for="B_state">State:</label> <input id="B_state" type="text" value="[% BORROWER_INF.B_state %]"  name="B_state" /></li>
63 <li><label for="B_zipcode">Zip Code:</label> <input type="text" id="B_zipcode" value="[% BORROWER_INF.B_zipcode %]" name="B_zipcode" /></li>
64 <li><label for="B_country">Country:</label> <input type="text" id="B_country" value="[% BORROWER_INF.B_country %]" name="B_country" /></li>
65 <li><label for="B_phone">Phone:</label> <input type="text" id="B_phone" value="[% BORROWER_INF.B_phone %]" name="B_phone" /></li>
66 <li><label for="B_email">Email:</label> <input type="text" id="B_email" value="[% BORROWER_INF.B_email %]" name="B_email" /></li>
67 </ol>
68 </fieldset>
69 <fieldset class="brief">
70 <ol>
71 <li><label for="dob">Date of Birth: </label> <input id="dob" type="text" size="10" value="[% BORROWER_INF.dateofbirth %]" name="dateofbirth" /></li>
72 <li><label for="sex">Gender: </label> <select name="sex" id="sex"><option></option>
73 [% IF ( BORROWER_INF.sex == 'F' ) %]<option value="F" selected="selected">Female</option>[% ELSE %]<option value="F">Female</option>[% END %]
74 [% IF ( BORROWER_INF.sex == 'M' ) %]<option value="M" selected="selected">Male</option>[% ELSE %]<option value="M">Male</option>[% END %]
75 </select></li>
76 </ol></fieldset>
77 <fieldset class="brief">
78 <legend>Library Use:</legend>
79 <ol>
80         <li><label for="cardnumber">Card number:</label><input type="text" id="cardnumber" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.cardnumber %]" /></li>
81     <li><label for="branchname">Home library:</label><input type="text" id="branchname" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.branchname %]" /></li>
82         <li><label for="borrowernumber">Patron Number:</label><input type="text" id="borrowernumber" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.borrowernumber %]" /></li>
83         <li><label for="categorycode">Patron Category:</label><input type="text" id="categorycode" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.description %] ([% BORROWER_INF.categorycode %])" /></li>
84         <li><label for="dateenrolled">Joined: </label><input type="text" id="dateenrolled" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.dateenrolled %]" /></li>
85         <li><label for="dateexpiry">Expires: </label><input type="text" id="dateexpiry" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.dateexpiry %]" /></li>
86    [% IF ( BORROWER_INF.ExtendedPatronAttributes ) %]
87     [% FOREACH patron_attribute IN BORROWER_INF.patron_attributes %]
88         <li><label>[% patron_attribute.description %]</label>
89         [% IF ( patron_attribute.value_description ) %]
90             <input type="text"  disabled="disabled" readonly="readonly" value="[% patron_attribute.value_description %]" />
91         [% ELSE %]
92             <input type="text"  disabled="disabled" readonly="readonly" value="[% patron_attribute.value %]" />
93         [% END %]
94         </li>
95     [% END %]
96    [% END %]
97 </ol>
98 </fieldset>
99 <fieldset class="action">
100 <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>
101 <input type="submit" value="Submit Changes" /> <a class="cancel" href="/cgi-bin/koha/opac-user.pl">Cancel</a></fieldset>
102 </div>
103
104 </form>
105 [% ELSE %]
106 <p style="clear:left;padding:1em 0">To make changes to your record please contact the library.</p>
107 <div class="yui-u first">
108 [% IF ( display_patron_image ) %]<p style="border:1px solid #EEE;border-bottom-color:#000;padding:1em;">
109     <img src="/cgi-bin/koha/opac-patron-image.pl" alt="" />
110 </p>[% END %]
111 <fieldset class="rows">
112 <legend>Contact Information</legend>
113 <ol>
114 <li><span class="label">Name:</span> [% BORROWER_INF.firstname %] [% BORROWER_INF.surname %]</li>
115 <li><span class="label">Other Name:</span> [% BORROWER_INF.othernames %]</li>
116 <li><span class="label">Address:</span> [% BORROWER_INF.streetnumber %] [% BORROWER_INF.address %]</li>
117 <li><span class="label">&nbsp;</span>[% BORROWER_INF.address2 %]</li>
118 <li><span class="label">City:</span>  [% BORROWER_INF.city %]</li>
119 <li><span class="label">State:</span>  [% BORROWER_INF.state %]</li>
120 <li><span class="label">Zip Code:</span>  [% BORROWER_INF.zipcode %]</li>
121 <li><span class="label">Country:</span>  [% BORROWER_INF.country %]</li>
122 <li><span class="label">Primary Phone:</span>  [% BORROWER_INF.phone %]</li>
123 <li><span class="label">Secondary Phone:</span>  [% BORROWER_INF.mobile %]</li>
124 <li><span class="label">Other Phone:</span>  [% BORROWER_INF.phonepro %]</li>
125 <li><span class="label">Fax:</span>  [% BORROWER_INF.fax %]</li>
126 <li><span class="label">Primary Email:</span>  [% BORROWER_INF.email %]</li>
127 <li><span class="label">Secondary Email:</span>  [% BORROWER_INF.emailpro %]</li>
128 </ol>
129 </fieldset>
130
131 <fieldset class="rows">
132 <legend>Personal Information</legend>
133 <ol>
134 <li><span class="label">Date of Birth:</span> [% BORROWER_INF.dateofbirth %]</li>
135 <li><span class="label">Gender:</span>
136 [% IF ( sex == 'F' ) %]Female[% END %]
137 [% IF ( sex == 'M' ) %]Male[% END %]
138 </li>
139 </ol>
140 </fieldset>
141 </div>
142
143 <div class="yui-u">
144 <fieldset class="rows">
145 <legend>Alternate Contact Information</legend>
146 <ol>
147 <li><span class="label">Alternate Address:</span> [% BORROWER_INF.B_streetnumber %] [% BORROWER_INF.B_address %] </li>
148 <li><span class="label">&nbsp;</span>[% BORROWER_INF.B_address2 %]</li>
149 <li><span class="label">City:</span> [% BORROWER_INF.B_city %]</li>
150 <li><span class="label">State:</span> [% BORROWER_INF.B_state %]</li>
151 <li><span class="label">Zip Code:</span> [% BORROWER_INF.B_zipcode %]</li>
152 <li><span class="label">Country:</span> [% BORROWER_INF.B_country %]</li>
153 <li><span class="label">Phone:</span> [% BORROWER_INF.B_phone %]</li>
154 <li><span class="label">Email:</span> [% BORROWER_INF.B_email %]</li>
155 </ol>
156 </fieldset>
157
158 <fieldset class="rows">
159 <legend>Library Use:</legend>
160 <ol>
161 <li><span class="label">Card number:</span> [% BORROWER_INF.cardnumber %]</li>
162 <li><span class="label">Home library:</span> [% BORROWER_INF.branchname %]</li>
163 <li><span class="label">Patron Number:</span> [% BORROWER_INF.borrowernumber %]</li>
164 <li><span class="label">Patron Category:</span> [% BORROWER_INF.description %] ([% BORROWER_INF.categorycode %])</li>
165 <li><span class="label">Joined:</span> [% BORROWER_INF.dateenrolled %]</li>
166 <li><span class="label">Expires:</span> [% BORROWER_INF.dateexpiry %]</li>
167    [% IF ( BORROWER_INF.ExtendedPatronAttributes ) %]
168     [% FOREACH patron_attribute IN BORROWER_INF.patron_attributes %]
169         <li><span class="label">[% patron_attribute.description %]</span>
170         [% IF ( patron_attribute.value_description ) %]
171             [% patron_attribute.value_description %]
172         [% ELSE %]
173             [% patron_attribute.value %]
174         [% END %]
175         </li>
176     [% END %]
177    [% END %]
178 </ol>
179 </fieldset>
180 </div>
181 [% END %]
182 [% END %]
183 </div>
184 </div>
185 </div>
186 </div>
187 <div class="yui-b">
188 <div id="leftmenus" class="container">
189 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
190 </div>
191 </div>
192 </div>
193 [% INCLUDE 'opac-bottom.inc' %]