[open-ils-commits] r13439 - in trunk/Open-ILS/web/opac: locale/en-US skin/default/css skin/default/js skin/default/xml/myopac (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jun 23 09:01:27 EDT 2009
Author: erickson
Date: 2009-06-23 09:01:26 -0400 (Tue, 23 Jun 2009)
New Revision: 13439
Modified:
trunk/Open-ILS/web/opac/locale/en-US/opac.dtd
trunk/Open-ILS/web/opac/skin/default/css/layout.css
trunk/Open-ILS/web/opac/skin/default/js/myopac.js
trunk/Open-ILS/web/opac/skin/default/xml/myopac/myopac_summary.xml
Log:
provide some basic indication when a patron's address if marked as invalid. fixed some text entities
Modified: trunk/Open-ILS/web/opac/locale/en-US/opac.dtd
===================================================================
--- trunk/Open-ILS/web/opac/locale/en-US/opac.dtd 2009-06-23 12:59:31 UTC (rev 13438)
+++ trunk/Open-ILS/web/opac/locale/en-US/opac.dtd 2009-06-23 13:01:26 UTC (rev 13439)
@@ -280,6 +280,9 @@
<!ENTITY myopac.summary.address.state "State">
<!ENTITY myopac.summary.address.country "Country">
<!ENTITY myopac.summary.address.zip "Zip">
+<!ENTITY myopac.summary.address.edit "Edit Address">
+<!ENTITY myopac.summary.address.invalid "Invalid Address">
+
<!ENTITY myopac.summary.username.error "Please enter a username">
<!ENTITY myopac.summary.username.dup "The requested username is not available. Please choose a different username.">
<!ENTITY myopac.summary.username.success "Username successfully updated">
Modified: trunk/Open-ILS/web/opac/skin/default/css/layout.css
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/css/layout.css 2009-06-23 12:59:31 UTC (rev 13438)
+++ trunk/Open-ILS/web/opac/skin/default/css/layout.css 2009-06-23 13:01:26 UTC (rev 13439)
@@ -245,3 +245,8 @@
#xul_recipient_me { margin-left: 25px; }
#myopac_holds_thaw_date_form {padding: 10px; text-align: center;}
#myopac_holds_freeze_select_thaw {margin-right: 100px; margin-left: 100px; }
+
+tr[name="myopac_invalid_addr_row"] td {
+ background:#e0e0e0;
+ color:red;
+}
Modified: trunk/Open-ILS/web/opac/skin/default/js/myopac.js
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/js/myopac.js 2009-06-23 12:59:31 UTC (rev 13438)
+++ trunk/Open-ILS/web/opac/skin/default/js/myopac.js 2009-06-23 13:01:26 UTC (rev 13439)
@@ -889,6 +889,9 @@
appendClear($n(row, 'myopac_addr_country'),text(addr.country()));
appendClear($n(row, 'myopac_addr_zip'),text(addr.post_code()));
+ if(!isTrue(addr.valid()))
+ unHideMe($n(row, 'myopac_invalid_addr_row'));
+
if(!allowPendingAddr) return;
$n(row, 'myopac_addr_edit_link').onclick = function(){myopacEditAddress(addr)};
Modified: trunk/Open-ILS/web/opac/skin/default/xml/myopac/myopac_summary.xml
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/xml/myopac/myopac_summary.xml 2009-06-23 12:59:31 UTC (rev 13438)
+++ trunk/Open-ILS/web/opac/skin/default/xml/myopac/myopac_summary.xml 2009-06-23 13:01:26 UTC (rev 13439)
@@ -212,9 +212,12 @@
<td>&myopac.summary.address.zip;</td>
<td name='myopac_addr_zip'> </td>
</tr>
+ <tr name='myopac_invalid_addr_row' class='hide_me'>
+ <td colspan='2'>&myopac.summary.address.invalid;</td>
+ </tr>
<tr>
<td name='myopac_addr_edit_td' colspan='2' class='hide_me'>
- <a class='classic_link' name='myopac_addr_edit_link' href='javascript:void(0);'>Edit Address</a>
+ <a class='classic_link' name='myopac_addr_edit_link' href='javascript:void(0);'>&myopac.summary.address.edit;</a>
</td>
</tr>
</table>
More information about the open-ils-commits
mailing list