Bug 5422: Separate state field for patron's addresses
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-userupdate.tmpl
1 <!-- TMPL_INCLUDE name="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo;  Updating Details for <!-- TMPL_LOOP name="BORROWER_INFO" --><!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --><!-- /TMPL_LOOP -->
2 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
3 </head>
4 <body id="opac-userupdate">
5 <div id="doc3" class="yui-t1">
6    <div id="bd">
7 <!-- TMPL_INCLUDE name="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 <!-- TMPL_LOOP name="BORROWER_INFO" -->
14 <h3><a href="/cgi-bin/koha/opac-user.pl"><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" -->'s account</a> <img src="<!-- TMPL_VAR NAME="themelang" -->../../images/caret.gif" width="16" height="16" alt="&gt;" border="0" /> Your Personal Details</h3>
15
16 <!-- TMPL_IF NAME="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="<!-- TMPL_VAR name="firstname" -->"  name="firstname" /></li>
22 <li><label for="othernames">Other Name:</label> <input id="othernames" type="text" value="<!-- TMPL_VAR name="othernames" -->"  name="othernames" /></li>
23 <li><label for="surname">Last Name:</label> <input id="surname" type="text" value="<!-- TMPL_VAR name="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="<!-- TMPL_VAR name="streetnumber" -->"  name="streetnumber" /> 
31         <input type="text" name="address" value="<!-- TMPL_VAR NAME="address" -->" id="address" />
32         <input type="text" name="address2" value="<!-- TMPL_VAR NAME="address2" -->" id="address2" /></li>
33 <li><label for="city">City:</label> <input id="city" type="text" value="<!-- TMPL_VAR name="city" -->"  name="city" /></li>
34 <li><label for="state">State:</label> <input id="state" type="text" value="<!-- TMPL_VAR name="state" -->"  name="state" /></li>
35 <li><label for="zipcode">Zip Code: </label><input type="text" id="zipcode" value="<!-- TMPL_VAR NAME="zipcode" -->" name="zipcode" /></li>
36 <li><label for="country">Country: </label><input type="text" id="country" value="<!-- TMPL_VAR NAME="country" -->" name="country" /></li>
37 <li><label for="phone">Home Phone:</label> <input id="phone" type="text" value="<!-- TMPL_VAR name="phone" -->"  name="phone" /></li>
38 <li><label for="mobile">Mobile Phone:</label> <input id="mobile" type="text" value="<!-- TMPL_VAR name="mobile" -->"  name="mobile" /></li>
39 <li><label for="phonepro">Work phone:</label> <input id="phonepro"  type="text" value="<!-- TMPL_VAR name="phonepro" -->"  name="phonepro" /></li>
40 <li><label for="fax">Fax:</label> <input id="fax" type="text" value="<!-- TMPL_VAR name="fax" -->"  name="fax" /></li>
41 <li><label for="emailaddress">Primary Email:</label> <input id="emailaddress" type="text" value="<!-- TMPL_VAR name="email" -->"  name="emailaddress" /></li>
42 <li><label for="emailpro">Secondary Email:</label> <input id="emailpro" type="text" value="<!-- TMPL_VAR name="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="<!-- TMPL_VAR name="B_streetnumber" -->"  name="B_streetnumber" /> 
54     <input id="B_address" type="text" value="<!-- TMPL_VAR name="B_address" -->"  name="B_address" /> 
55     <input id="B_address2" type="text" value="<!-- TMPL_VAR name="B_address2" -->"  name="B_address2" />
56 </li>
57
58 <li><label for="B_city">City:</label> <input id="B_city" type="text" value="<!-- TMPL_VAR name="B_city" -->"  name="B_city" /></li>
59 <li><label for="B_state">State:</label> <input id="B_state" type="text" value="<!-- TMPL_VAR name="B_state" -->"  name="B_state" /></li>
60 <li><label for="B_zipcode">Zip Code:</label> <input type="text" id="B_zipcode" value="<!-- TMPL_VAR NAME="B_zipcode" -->" name="B_zipcode" /></li>
61 <li><label for="B_country">Country:</label> <input type="text" id="B_country" value="<!-- TMPL_VAR NAME="B_country" -->" name="B_country" /></li>
62 <li><label for="B_phone">Phone:</label> <input type="text" id="B_phone" value="<!-- TMPL_VAR NAME="B_phone" -->" name="B_phone" /></li>
63 <li><label for="B_email">Email:</label> <input type="text" id="B_email" value="<!-- TMPL_VAR NAME="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="<!-- TMPL_VAR NAME="dateofbirth" -->" name="dateofbirth" /></li>
69 <li><label for="sex">Sex: </label> <select name="sex" id="sex"><option></option>
70 <!-- TMPL_IF EXPR="sex eq 'F'" --><option value="F" selected="selected">Female</option><!-- TMPL_ELSE --><option value="F">Female</option><!-- /TMPL_IF -->
71 <!-- TMPL_IF EXPR="sex eq 'M'" --><option value="M" selected="selected">Male</option><!-- TMPL_ELSE --><option value="M">Male</option><!-- /TMPL_IF -->
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="<!-- TMPL_VAR NAME="cardnumber" -->" /></li>
78     <li><label for="branchname">Home library:</label><input type="text" id="branchname" disabled="disabled" readonly="readonly" value="<!-- TMPL_VAR NAME="branchname" -->" /></li>
79         <li><label for="borrowernumber">Patron Number:</label><input type="text" id="borrowernumber" disabled="disabled" readonly="readonly" value="<!-- TMPL_VAR NAME="borrowernumber" -->" /></li>
80         <li><label for="categorycode">Patron Category:</label><input type="text" id="categorycode" disabled="disabled" readonly="readonly" value="<!-- TMPL_VAR NAME="description" --> (<!-- TMPL_VAR NAME="categorycode" -->)" /></li>
81         <li><label for="dateenrolled">Joined: </label><input type="text" id="dateenrolled" disabled="disabled" readonly="readonly" value="<!-- TMPL_VAR NAME="dateenrolled" -->" /></li>
82         <li><label for="dateexpiry">Expires: </label><input type="text" id="dateexpiry" disabled="disabled" readonly="readonly" value="<!-- TMPL_VAR NAME="dateexpiry" -->" /></li>
83    <!-- TMPL_IF NAME="ExtendedPatronAttributes" -->
84     <!-- TMPL_LOOP NAME="patron_attributes" -->
85         <li><label><!-- TMPL_VAR NAME="description" --></label>
86         <!-- TMPL_IF NAME="value_description" -->
87             <input type="text"  disabled="disabled" readonly="readonly" value="<!-- TMPL_VAR NAME="value_description" -->" />
88         <!-- TMPL_ELSE -->
89             <input type="text"  disabled="disabled" readonly="readonly" value="<!-- TMPL_VAR NAME="value" -->" />
90         <!-- /TMPL_IF -->
91         </li>
92     <!-- /TMPL_LOOP -->
93    <!-- /TMPL_IF  -->
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 <!-- TMPL_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> <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></li>
109 <li><span class="label">Other Name:</span> <!-- TMPL_VAR NAME="othernames" --></li>
110 <li><span class="label">Address:</span> <!-- TMPL_VAR NAME="streetnumber" --> <!-- TMPL_VAR NAME="address" --></li>
111 <li><span class="label">&nbsp;</span><!-- TMPL_VAR NAME="address2" --></li>
112 <li><span class="label">City:</span>  <!-- TMPL_VAR name="city" --></li>
113 <li><span class="label">State:</span>  <!-- TMPL_VAR name="state" --></li>
114 <li><span class="label">Zip Code:</span>  <!-- TMPL_VAR NAME="zipcode" --></li>
115 <li><span class="label">Country:</span>  <!-- TMPL_VAR NAME="country" --></li>
116 <li><span class="label">Home Phone:</span>  <!-- TMPL_VAR name="phone" --></li>
117 <li><span class="label">Mobile Phone:</span>  <!-- TMPL_VAR name="mobile" --></li>
118 <li><span class="label">Work phone:</span>  <!-- TMPL_VAR name="phonepro" --></li>
119 <li><span class="label">Fax:</span>  <!-- TMPL_VAR name="fax" --></li>
120 <li><span class="label">Primary Email:</span>  <!-- TMPL_VAR name="email" --></li>
121 <li><span class="label">Secondary Email:</span>  <!-- TMPL_VAR name="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> <!-- TMPL_VAR NAME="dateofbirth" --></li>
129 <li><span class="label">Sex:</span>
130 <!-- TMPL_IF EXPR="sex eq 'F'" -->Female<!-- /TMPL_IF -->
131 <!-- TMPL_IF EXPR="sex eq 'M'" -->Male<!-- /TMPL_IF -->
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> <!--TMPL_VAR NAME="B_streetnumber"--> <!-- TMPL_VAR name="B_address" --> </li>
142 <li><span class="label">&nbsp;</span><!-- TMPL_VAR NAME="B_address2" --></li>
143 <li><span class="label">City:</span> <!-- TMPL_VAR name="B_city" --></li>
144 <li><span class="label">State:</span> <!-- TMPL_VAR name="B_state" --></li>
145 <li><span class="label">Zip Code:</span> <!-- TMPL_VAR NAME="B_zipcode" --></li>
146 <li><span class="label">Country:</span> <!-- TMPL_VAR NAME="B_country" --></li>
147 <li><span class="label">Phone:</span> <!-- TMPL_VAR NAME="B_phone" --></li>
148 <li><span class="label">Email:</span> <!-- TMPL_VAR NAME="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> <!-- TMPL_VAR NAME="cardnumber" --></li>
156 <li><span class="label">Home library:</span> <!-- TMPL_VAR NAME="branchname" --></li>
157 <li><span class="label">Patron Number:</span> <!-- TMPL_VAR NAME="borrowernumber" --></li>
158 <li><span class="label">Patron Category:</span> <!-- TMPL_VAR NAME="description" --> (<!-- TMPL_VAR NAME="categorycode" -->)</li>
159 <li><span class="label">Joined:</span> <!-- TMPL_VAR NAME="dateenrolled" --></li>
160 <li><span class="label">Expires:</span> <!-- TMPL_VAR NAME="dateexpiry" --></li>
161    <!-- TMPL_IF NAME="ExtendedPatronAttributes" -->
162     <!-- TMPL_LOOP NAME="patron_attributes" -->
163         <li><span class="label"><!-- TMPL_VAR NAME="description" --></span>
164         <!-- TMPL_IF NAME="value_description" -->
165             <!-- TMPL_VAR NAME="value_description" -->
166         <!-- TMPL_ELSE -->
167             <!-- TMPL_VAR NAME="value" -->
168         <!-- /TMPL_IF -->
169         </li>
170     <!-- /TMPL_LOOP -->
171    <!-- /TMPL_IF  -->
172 </ol>
173 </fieldset>
174 </div>
175 <!-- /TMPL_IF  -->
176 <!-- /TMPL_LOOP -->
177 </div>
178 </div>
179 </div>
180 </div>
181 <div class="yui-b">
182 <div id="leftmenus" class="container">
183 <!--TMPL_INCLUDE NAME="navigation.inc" -->
184 <!-- TMPL_INCLUDE name="usermenu.inc" -->
185 </div>
186 </div>
187 </div>
188 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->