Bug 6147 : Correcting invalid RSS
[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
2 [% FOREACH BORROWER_INF IN BORROWER_INFO %]
3     [% INCLUDE 'patron-title.inc' category_type = BORROWER_INF.category_type firstname = BORROWER_INF.firstname surname = BORROWER_INF.surname othernames = BORROWER_INF.othernames cardnumber = BORROWER_INF.cardnumber %]
4 [% END %]
5 [% INCLUDE 'doc-head-close.inc' %]
6 </head>
7 <body id="opac-userupdate">
8 <div id="doc3" class="yui-t1">
9    <div id="bd">
10 [% INCLUDE 'masthead.inc' %]
11
12         <div id="yui-main">
13         <div class="yui-b"><div class="yui-g" id="userupdate">
14
15 <div id="userupdatecontainer" class="container">
16 [% FOREACH BORROWER_INF IN BORROWER_INFO %]
17 <h3><a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' ifirstname = 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>
18
19 [% IF ( OPACPatronDetails ) %]
20 <form action="/cgi-bin/koha/opac-userupdate.pl" method="get">
21 <div class="yui-u first">
22 <input type="hidden" name="modify" value="yes" />
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 <fieldset class="rows">
109 <legend>Contact Information</legend>
110 <ol>
111 <li><span class="label">Name:</span> [% BORROWER_INF.firstname %] [% BORROWER_INF.surname %]</li>
112 <li><span class="label">Other Name:</span> [% BORROWER_INF.othernames %]</li>
113 <li><span class="label">Address:</span> [% BORROWER_INF.streetnumber %] [% BORROWER_INF.address %]</li>
114 <li><span class="label">&nbsp;</span>[% BORROWER_INF.address2 %]</li>
115 <li><span class="label">City:</span>  [% BORROWER_INF.city %]</li>
116 <li><span class="label">State:</span>  [% BORROWER_INF.state %]</li>
117 <li><span class="label">Zip Code:</span>  [% BORROWER_INF.zipcode %]</li>
118 <li><span class="label">Country:</span>  [% BORROWER_INF.country %]</li>
119 <li><span class="label">Primary Phone:</span>  [% BORROWER_INF.phone %]</li>
120 <li><span class="label">Secondary Phone:</span>  [% BORROWER_INF.mobile %]</li>
121 <li><span class="label">Other Phone:</span>  [% BORROWER_INF.phonepro %]</li>
122 <li><span class="label">Fax:</span>  [% BORROWER_INF.fax %]</li>
123 <li><span class="label">Primary Email:</span>  [% BORROWER_INF.email %]</li>
124 <li><span class="label">Secondary Email:</span>  [% BORROWER_INF.emailpro %]</li>
125 </ol>
126 </fieldset>
127
128 <fieldset class="rows">
129 <legend>Personal Information</legend>
130 <ol>
131 <li><span class="label">Date of Birth:</span> [% BORROWER_INF.dateofbirth %]</li>
132 <li><span class="label">Gender:</span>
133 [% IF ( sex == 'F' ) %]Female[% END %]
134 [% IF ( sex == 'M' ) %]Male[% END %]
135 </li>
136 </ol>
137 </fieldset>
138 </div>
139
140 <div class="yui-u">
141 <fieldset class="rows">
142 <legend>Alternate Contact Information</legend>
143 <ol>
144 <li><span class="label">Alternate Address:</span> [% BORROWER_INF.B_streetnumber %] [% BORROWER_INF.B_address %] </li>
145 <li><span class="label">&nbsp;</span>[% BORROWER_INF.B_address2 %]</li>
146 <li><span class="label">City:</span> [% BORROWER_INF.B_city %]</li>
147 <li><span class="label">State:</span> [% BORROWER_INF.B_state %]</li>
148 <li><span class="label">Zip Code:</span> [% BORROWER_INF.B_zipcode %]</li>
149 <li><span class="label">Country:</span> [% BORROWER_INF.B_country %]</li>
150 <li><span class="label">Phone:</span> [% BORROWER_INF.B_phone %]</li>
151 <li><span class="label">Email:</span> [% BORROWER_INF.B_email %]</li>
152 </ol>
153 </fieldset>
154
155 <fieldset class="rows">
156 <legend>Library Use:</legend>
157 <ol>
158 <li><span class="label">Card number:</span> [% BORROWER_INF.cardnumber %]</li>
159 <li><span class="label">Home library:</span> [% BORROWER_INF.branchname %]</li>
160 <li><span class="label">Patron Number:</span> [% BORROWER_INF.borrowernumber %]</li>
161 <li><span class="label">Patron Category:</span> [% BORROWER_INF.description %] ([% BORROWER_INF.categorycode %])</li>
162 <li><span class="label">Joined:</span> [% BORROWER_INF.dateenrolled %]</li>
163 <li><span class="label">Expires:</span> [% BORROWER_INF.dateexpiry %]</li>
164    [% IF ( BORROWER_INF.ExtendedPatronAttributes ) %]
165     [% FOREACH patron_attribute IN BORROWER_INF.patron_attributes %]
166         <li><span class="label">[% patron_attribute.description %]</span>
167         [% IF ( patron_attribute.value_description ) %]
168             [% patron_attribute.value_description %]
169         [% ELSE %]
170             [% patron_attribute.value %]
171         [% END %]
172         </li>
173     [% END %]
174    [% END %]
175 </ol>
176 </fieldset>
177 </div>
178 [% END %]
179 [% END %]
180 </div>
181 </div>
182 </div>
183 </div>
184 <div class="yui-b">
185 <div id="leftmenus" class="container">
186 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
187 </div>
188 </div>
189 </div>
190 [% INCLUDE 'opac-bottom.inc' %]