Bug 3261: Fix for invalid XHTML on Personal Details page.
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-userupdate.tmpl
index a3fd45e..33622c6 100644 (file)
-<!-- TMPL_INCLUDE name="doc-head-open.inc" --><!-- TMPL_VAR NAME="LibraryNameTitle" --> Catalog -- Updating Details for <!-- TMPL_LOOP name="BORROWER_INFO" --><!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --><!-- /TMPL_LOOP -->
-<!-- TMPL_INCLUDE name="doc-head-close.inc" -->
+<!-- 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 -->
+<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
+</head>
+<body id="opac-userupdate">
+<div id="doc3" class="yui-t1">
+   <div id="bd">
 <!-- TMPL_INCLUDE name="masthead.inc" -->
-<!-- TMPL_INCLUDE name="navigation.inc" -->
 
-<!-- TMPL_INCLUDE name="usermenu.inc" -->
+       <div id="yui-main">
+       <div class="yui-b"><div class="yui-g" id="userupdate">
+
+<div class="container" style="overflow:auto;">
 <!-- TMPL_LOOP name="BORROWER_INFO" -->
-<h3>Updating Details for <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --></h3>
-<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>
+<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>
+
 <form action="/cgi-bin/koha/opac-userupdate.pl" method="get">
-<input type="hidden" name="title" value="">
-<table>
-<tr><th><label for="surname">Last Name</label></th><td><input id="surname" type="text"  size="25" value="<!-- TMPL_VAR name="surname" -->"  name="surname"></td></tr>
+<div class="yui-u first">
 
-<tr><th><label for="firstname">First Name</label></th><td><input id="firstname" type="text"  size="25" value="<!-- TMPL_VAR name="firstname" -->"  name="firstname"></td></tr>
+<input type="hidden" name="modify" value="yes" />
+<fieldset class="brief"><legend>Name</legend><ol>
+<li><label for="firstname">First Name:</label> <input id="firstname" type="text" value="<!-- TMPL_VAR name="firstname" -->"  name="firstname" /></li>
+<li><label for="surname">Last Name:</label> <input id="surname" type="text" value="<!-- TMPL_VAR name="surname" -->"  name="surname" /></li>
+</ol>
+</fieldset>
 
-<tr>
-    <th><label for="streetaddress">Mailing Address</label></th>
-    <td>
-        <textarea id="streetaddress" cols="25"  name="streetaddress"><!--TMPL_VAR NAME="streetnumber"--> <!-- TMPL_VAR name="address" --> <!-- TMPL_VAR NAME="zipcode"--></textarea>
-    </td>
-</tr>
+<fieldset class="brief"><legend>Contact Information</legend>
+<ol>
+<li>
+    <label for="address">Address:</label>
+       <input type="text" name="address" value="<!-- TMPL_VAR NAME="address" -->" id="address" />
+       <input type="text" name="address2" value="<!-- TMPL_VAR NAME="address2" -->" id="address2" /></li>
+<li><label for="city">City, State:</label> <input id="city" type="text" value="<!-- TMPL_VAR name="city" -->"  name="city" /></li>
+<li><label for="zipcode">Zip Code: </label><input id="zipcode" name="zipcode" value="<!-- TMPL_VAR NAME="zipcode" -->" /></li>
+<li><label for="phone">Home Phone:</label> <input id="phone" type="text" value="<!-- TMPL_VAR name="phone" -->"  name="phone" /></li>
+<li><label for="mobile">Mobile Phone:</label> <input id="mobile" type="text" value="<!-- TMPL_VAR name="mobile" -->"  name="mobile" /></li>
+<li><label for="fax">Fax:</label> <input id="fax" type="text" value="<!-- TMPL_VAR name="fax" -->"  name="fax" /></li>
 
-<tr><th><label for="city">City, State</label></th><td><input id="city" type="text"  size="25" value="<!-- TMPL_VAR name="city" -->"  name="city"></td></tr>
+<li><label for="phonepro">Work phone:</label> <input id="phonepro"  type="text" value="<!-- TMPL_VAR name="phonepro" -->"  name="phonepro" /></li>
 
-<tr><th><label for="phone">Home Phone</label></th><td><input id="phone" type="text"  size="25" value="<!-- TMPL_VAR name="phone" -->"  name="phone"></td></tr>
+<li><label for="emailaddress">Email:</label> <input id="emailaddress" type="text" value="<!-- TMPL_VAR name="email" -->"  name="emailaddress" /></li>
+</ol>
+</fieldset>
 
-<tr><th><label for="faxnumber">Work/Fax phone</label></th><td><input id="faxnumber"  type="text"  size="25" value="<!-- TMPL_VAR name="fax" -->"  name="faxnumber"></td></tr>
+<fieldset class="brief">
+<legend>Items Borrowed Notifications</legend>
+<ol>
+<li>
+  <label for="items_borrowed_email">Email:</label>
+  <!-- TMPL_IF items_borrowed_email -->
+  <input type="checkbox" id="items_borrowed_email" name="items_borrowed_email" value="1" checked="checked" />
+  <!-- TMPL_ELSE -->
+  <input type="checkbox" id="items_borrowed_email" name="items_borrowed_email" value="1" />
+  <!-- /TMPL_IF -->
+</li>
+<li>
+  <label for="items_borrowed_sms">Text Message:</label>
+  <!-- TMPL_IF items_borrowed_sms -->
+  <input type="checkbox" id="items_borrowed_sms" name="items_borrowed_sms" value="1" checked="checked" />
+  <!-- TMPL_ELSE -->
+  <input type="checkbox" id="items_borrowed_sms" name="items_borrowed_sms" value="1" />
+  <!-- /TMPL_IF -->
+</li>
+</ol>
+</fieldset>
 
-<tr><th><label for="emailaddress">Email</label></th><td><input id="emailaddress" type="text"  size="25" value="<!-- TMPL_VAR name="email" -->"  name="emailaddress"></td></tr>
-</table>
-<p>Clicking 'Submit Changes' will send an email to a library staff member with the information you've entered.  You will then be returned to your patron record.</p>
-<p><input type="submit" value="Submit Changes"></p>
-</form>
+<fieldset class="brief">
+<legend>Items Returned Notifications</legend>
+<ol>
+<li>
+  <label for="items_returned_email">Email:</label>
+  <!-- TMPL_IF items_returned_email -->
+  <input type="checkbox" id="items_returned_email" name="items_returned_email" value="1" checked="checked" />
+  <!-- TMPL_ELSE -->
+  <input type="checkbox" id="items_returned_email" name="items_returned_email" value="1" />
+  <!-- /TMPL_IF -->
+</li>
+<li>
+  <label for="items_returned_sms">Text Message:</label>
+  <!-- TMPL_IF items_returned_sms -->
+  <input type="checkbox" id="items_returned_sms" name="items_returned_sms" value="1" checked="checked" />
+  <!-- TMPL_ELSE -->
+  <input type="checkbox" id="items_returned_sms" name="items_returned_sms" value="1" />
+  <!-- /TMPL_IF -->
+</li>
+</ol>
+</fieldset>
 
-<!-- /TMPL_LOOP -->
+</div>
+<div class="yui-u">
+<fieldset class="brief">
+<legend>Permanent Address</legend>
+<ol>
+<li>
+    <label for="B_streetaddress">Permanent or Alternate Address:</label>
+        <textarea id="B_streetaddress" cols="25" rows="2" name="B_streetaddress"><!--TMPL_VAR NAME="B_streetnumber"--> <!-- TMPL_VAR name="B_address" --></textarea>
+</li>
 
-</body>
-</html>
+<li><label for="B_city">City, State:</label> <input id="B_city" type="text" value="<!-- TMPL_VAR name="B_city" -->"  name="B_city" /></li>
+<li><label for="B_zipcode">Zip Code</label> <input type="text" id="B_zipcode" name="B_zipcode" value="<!-- TMPL_VAR NAME="B_zipcode" -->" /></li>
+</ol>
+</fieldset>
+<fieldset class="brief">
+<ol>
+<li><label for="dob">Date of Birth: </label> <input id="dob" type="text" size="10" value="<!-- TMPL_VAR NAME="dateofbirth" -->" name="dateofbirth" /></li>
+<li><label for="sex">Sex: </label> <select name="sex" id="sex"><option></option>
+<!-- TMPL_IF EXPR="sex eq 'F'" --><option value="F" selected="selected">Female</option><!-- TMPL_ELSE --><option value="F">Female</option><!-- /TMPL_IF -->
+<!-- TMPL_IF EXPR="sex eq 'M'" --><option value="M" selected="selected">Male</option><!-- TMPL_ELSE --><option value="M">Male</option><!-- /TMPL_IF -->
+</select></li>
+</ol></fieldset>
+<fieldset class="brief">
+<legend>Library Use:</legend>
+<ol>
+       <li><label for="cardnumber">Card number:</label><input type="text" id="cardnumber" disabled="disabled" readonly="readonly" value="<!-- TMPL_VAR NAME="cardnumber" -->" /></li>
+       <li><label for="borrowernumber">Patron Number:</label><input type="text" id="borrowernumber" disabled="disabled" readonly="readonly" value="<!-- TMPL_VAR NAME="borrowernumber" -->" /></li>
+       <li><label for="categorycode">Patron Category:</label><input type="text" id="categorycode" disabled="disabled" readonly="readonly" value="<!-- TMPL_VAR NAME="description" -->" /></li>
+       <li><label for="dateenrolled">Joined: </label><input type="text" id="dateenrolled" disabled="disabled" readonly="readonly" value="<!-- TMPL_VAR NAME="dateenrolled" -->" /></li>
+       <li><label for="dateexpiry">Expires: </label><input type="text" id="dateexpiry" disabled="disabled" readonly="readonly" value="<!-- TMPL_VAR NAME="dateexpiry" -->" /></li>
+   <!-- TMPL_IF NAME="ExtendedPatronAttributes" -->
+    <!-- TMPL_LOOP NAME="patron_attributes" -->
+        <li><label><!-- TMPL_VAR NAME="description" --></label>
+        <!-- TMPL_IF NAME="value_description" -->
+            <input type="text"  disabled="disabled" readonly="readonly" value="<!-- TMPL_VAR NAME="value_description" -->" />
+        <!-- TMPL_ELSE -->
+            <input type="text"  disabled="disabled" readonly="readonly" value="<!-- TMPL_VAR NAME="value" -->" />
+        <!-- /TMPL_IF -->
+        </li>
+    <!-- /TMPL_LOOP -->
+   <!-- /TMPL_IF  -->
+</ol>
+</fieldset>
+<fieldset class="action">
+<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>
+<input type="submit" value="Submit Changes" /> <a class="cancel" href="/cgi-bin/koha/opac-user.pl">Cancel</a></fieldset>
+</div>
+
+</form>
+<!-- /TMPL_LOOP -->
+</div>
+</div>
+</div>
+</div>
+<div class="yui-b">
+<div class="container">
+<!--TMPL_INCLUDE NAME="navigation.inc" -->
+<!-- TMPL_INCLUDE name="usermenu.inc" -->
+</div>
+</div>
+</div>
+<!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->