From: erickson Date: Sun, 22 Feb 2009 01:57:52 +0000 (+0000) Subject: added link to show/hide non-required fields X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8ce7b1c63b0602f0d16ce3d943690bab8d6f0ab9;p=evergreen%2Ftadl.git added link to show/hide non-required fields git-svn-id: svn://svn.open-ils.org/ILS/trunk@12259 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/ui/default/actor/user/register.js b/Open-ILS/web/js/ui/default/actor/user/register.js index 7e4842d662..4ca295aa4e 100644 --- a/Open-ILS/web/js/ui/default/actor/user/register.js +++ b/Open-ILS/web/js/ui/default/actor/user/register.js @@ -174,8 +174,8 @@ function fleshFMRow(row, fmcls, args) { dijitArgs : {style: wstyle}, orgLimitPerms : ['UPDATE_USER'], }); - widget.build(); + widget.build(); widget._wtype = fmcls; widget._fmfield = fmfield; widget._addr = args.addr; @@ -372,5 +372,13 @@ function uEditDeleteAddr(id) { widgetPile = widgetPile.filter(function(w){return (w._addr != id)}); } +function uEditToggleRequired() { + if((tbody.className +'').match(/hide-non-required/)) + openils.Util.removeCSSClass(tbody, 'hide-non-required'); + else + openils.Util.addCSSClass(tbody, 'hide-non-required'); +} + + openils.Util.addOnLoad(load); diff --git a/Open-ILS/web/templates/default/actor/user/register.tt2 b/Open-ILS/web/templates/default/actor/user/register.tt2 index e0455d1398..5c1d000a30 100644 --- a/Open-ILS/web/templates/default/actor/user/register.tt2 +++ b/Open-ILS/web/templates/default/actor/user/register.tt2 @@ -60,31 +60,41 @@ .dijitTextBoxFocused, .dijitFocused { border:1px dashed #3e3e3e; color: #303030; font-weight:bold;} + .hide-non-required tr:not([required]) { + visibility:hidden; + display:none; + } + + #require-toggle { + margin-top:10px; + margin-bottom:-5px; + } + - - - - - + + + + + - + - - + + - - - - + + + + @@ -92,7 +102,7 @@ - + - - - - - - - - - - + + + + + + + + + +
Verify Password
Verify Password
Address Mailing @@ -100,16 +110,16 @@
@@ -130,6 +140,9 @@
+