[open-ils-commits] r16358 - trunk/Open-ILS/web/templates/default/actor/user (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Apr 30 10:40:35 EDT 2010
Author: erickson
Date: 2010-04-30 10:40:33 -0400 (Fri, 30 Apr 2010)
New Revision: 16358
Added:
trunk/Open-ILS/web/templates/default/actor/user/register_table.tt2
Modified:
trunk/Open-ILS/web/templates/default/actor/user/register.tt2
Log:
break the main registration table out to a separate template to ease the process of locally overriding the field order
Modified: trunk/Open-ILS/web/templates/default/actor/user/register.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/actor/user/register.tt2 2010-04-30 01:52:37 UTC (rev 16357)
+++ trunk/Open-ILS/web/templates/default/actor/user/register.tt2 2010-04-30 14:40:33 UTC (rev 16358)
@@ -87,95 +87,7 @@
</style>
<table>
- <tbody id='uedit-tbody'>
- <tr fmclass='ac' fmfield='barcode' required='required'/>
- <tr fmclass='au' fmfield='usrname' required='required'/>
- <tr fmclass='au' fmfield='passwd' required='required'/>
- <tr fmclass='au' fmfield='passwd2' required='required'><td/><td>Verify Password</td><td/></tr>
- <tr fmclass='au' fmfield='first_given_name' required='required'/>
- <tr fmclass='au' fmfield='second_given_name'/>
- <tr fmclass='au' fmfield='family_name' required='required'/>
- <tr fmclass='au' fmfield='suffix'/>
- <tr fmclass='au' fmfield='alias'/>
- <tr fmclass='au' fmfield='dob'/>
- <tr fmclass='au' fmfield='juvenile'/>
- <tr fmclass='au' fmfield='ident_type' required='required'/>
- <tr fmclass='au' fmfield='ident_value'/>
- <tr fmclass='au' fmfield='email'/>
- <tr fmclass='au' fmfield='day_phone'/>
- <tr fmclass='au' fmfield='evening_phone'/>
- <tr fmclass='au' fmfield='other_phone'/>
- <tr fmclass='au' fmfield='home_ou' required='required'/>
- <tr fmclass='au' fmfield='profile' required='required'/>
- <tr fmclass='au' fmfield='expire_date' required='required'/>
- <tr fmclass='au' fmfield='net_access_level' required='required'/>
- <tr fmclass='au' fmfield='active'/>
- <tr fmclass='au' fmfield='barred'/>
- <tr fmclass='au' fmfield='master_account'/>
- <tr fmclass='au' fmfield='claims_returned_count' wclass='dijit.form.NumberSpinner' wconstraints="{min:0,places:0}" wvalue='0'/>
- <tr fmclass='au' fmfield='claims_never_checked_out_count' wclass='dijit.form.NumberSpinner' wconstraints="{min:0,places:0}" wvalue='0'/>
- <tr fmclass='au' fmfield='alert_message' wclass='dijit.form.Textarea' wstyle='height:5em'/>
-
- <tr class='divider hidden' id='uedit-settings-divider'><td colspan='0'>User Settings</td></tr>
- <tr class='hidden' id='uedit-user-setting-template'>
- <td/>
- <td><span name='label'></span></td>
- <td><div name='widget'></div></td>
- </tr>
-
- <!-- Address -->
- <tr name='uedit-addr-divider' class='divider' type='addr-template' required='show'>
- <td colspan='2'>Address</td>
- <td>
- <span>Mailing</span><input type='radio' name='mailing_address'>
- <span>Billing</span><input type='radio' name='billing_address'>
- <button name='delete-button' class='uedit-addr-del-button'>X</button>
- </td>
- </tr>
-
- <tr name='uedit-addr-pending-row' type='addr-template' class='pending-addr-row hidden'>
- <td colspan='3'>
- <span style='padding-right:10px;'>This is a pending address: </span>
- <button name='approve-button'>Approve Address</button>
- <div name='replaced-addr-div'>
- <div name='replaced-addr'></div>
- </div>
- </td>
- </tr>
-
- <tr name='uedit-addr-owner-row' type='addr-template' class='pending-addr-row hidden'>
- <td colspan='3'>
- <span style='padding-right:10px;'>This address is owned by another user: </span>
- <a href='javascript:void(0);' name='addr-owner'></a>
- </td>
- </tr>
-
-
- <tr fmclass='aua' fmfield='address_type' type='addr-template' required='show'/>
- <tr fmclass='aua' fmfield='post_code' type='addr-template' required='required'/>
- <tr fmclass='aua' fmfield='street1' type='addr-template' required='required'/>
- <tr fmclass='aua' fmfield='street2' type='addr-template' required='show'/>
- <tr fmclass='aua' fmfield='city' type='addr-template' required='required'/>
- <tr fmclass='aua' fmfield='county' type='addr-template' required='show'/>
- <tr fmclass='aua' fmfield='state' type='addr-template' required='required'/>
- <tr fmclass='aua' fmfield='country' type='addr-template' required='required'/>
- <tr fmclass='aua' fmfield='valid' type='addr-template' required='show'/>
- <tr fmclass='aua' fmfield='within_city_limits' type='addr-template' required='show'/>
-
- <tr id='new-addr-row' class='newaddr-row' required='show'>
- <td colspan='0' style='text-align:center;'>
- <button dojoType='dijit.form.Button' onClick='uEditNewAddr'>New Address</button>
- </td>
- </tr>
-
- <!-- stat cats -->
- <tr class='divider' id='stat-cat-divider'><td colspan='0'>Statistical Categories</td></tr>
- <tr id='stat-cat-row-template'><td class='uedit-help'/><td name='name'/><td name='widget'/></tr>
-
- <!-- surveys -->
- <tr id='survey-row-template' class='divider'><td colspan='0' name='name'/></tr>
- <tr id='survey-question-row-template'><td class='uedit-help'/><td name='question'/><td name='answers'/></tr>
- </tbody>
+ [% INCLUDE default/actor/user/register_table.tt2 %]
</table>
<div id='uedit-save-div'>
Added: trunk/Open-ILS/web/templates/default/actor/user/register_table.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/actor/user/register_table.tt2 (rev 0)
+++ trunk/Open-ILS/web/templates/default/actor/user/register_table.tt2 2010-04-30 14:40:33 UTC (rev 16358)
@@ -0,0 +1,91 @@
+<tbody id='uedit-tbody'>
+ <tr fmclass='ac' fmfield='barcode' required='required'/>
+ <tr fmclass='au' fmfield='usrname' required='required'/>
+ <tr fmclass='au' fmfield='passwd' required='required'/>
+ <tr fmclass='au' fmfield='passwd2' required='required'><td/><td>Verify Password</td><td/></tr>
+ <tr fmclass='au' fmfield='first_given_name' required='required'/>
+ <tr fmclass='au' fmfield='second_given_name'/>
+ <tr fmclass='au' fmfield='family_name' required='required'/>
+ <tr fmclass='au' fmfield='suffix'/>
+ <tr fmclass='au' fmfield='alias'/>
+ <tr fmclass='au' fmfield='dob'/>
+ <tr fmclass='au' fmfield='juvenile'/>
+ <tr fmclass='au' fmfield='ident_type' required='required'/>
+ <tr fmclass='au' fmfield='ident_value'/>
+ <tr fmclass='au' fmfield='ident_value2'><td/><td>Parent/Guardian</td></tr>
+ <tr fmclass='au' fmfield='email'/>
+ <tr fmclass='au' fmfield='day_phone'/>
+ <tr fmclass='au' fmfield='evening_phone'/>
+ <tr fmclass='au' fmfield='other_phone'/>
+ <tr fmclass='au' fmfield='home_ou' required='required'/>
+ <tr fmclass='au' fmfield='profile' required='required'/>
+ <tr fmclass='au' fmfield='expire_date' required='required'/>
+ <tr fmclass='au' fmfield='net_access_level' required='required'/>
+ <tr fmclass='au' fmfield='active'/>
+ <tr fmclass='au' fmfield='barred'/>
+ <tr fmclass='au' fmfield='master_account'/>
+ <tr fmclass='au' fmfield='claims_returned_count' wclass='dijit.form.NumberSpinner' wconstraints="{min:0,places:0}" wvalue='0'/>
+ <tr fmclass='au' fmfield='claims_never_checked_out_count' wclass='dijit.form.NumberSpinner' wconstraints="{min:0,places:0}" wvalue='0'/>
+ <tr fmclass='au' fmfield='alert_message' wclass='dijit.form.Textarea' wstyle='height:5em'/>
+
+ <tr class='divider hidden' id='uedit-settings-divider'><td colspan='0'>User Settings</td></tr>
+ <tr class='hidden' id='uedit-user-setting-template'>
+ <td/>
+ <td><span name='label'></span></td>
+ <td><div name='widget'></div></td>
+ </tr>
+
+ <!-- Address -->
+ <tr name='uedit-addr-divider' class='divider' type='addr-template' required='show'>
+ <td colspan='2'>Address</td>
+ <td>
+ <span>Mailing</span><input type='radio' name='mailing_address'>
+ <span>Billing</span><input type='radio' name='billing_address'>
+ <button name='delete-button' class='uedit-addr-del-button'>X</button>
+ </td>
+ </tr>
+
+ <tr name='uedit-addr-pending-row' type='addr-template' class='pending-addr-row hidden'>
+ <td colspan='3'>
+ <span style='padding-right:10px;'>This is a pending address: </span>
+ <button name='approve-button'>Approve Address</button>
+ <div name='replaced-addr-div'>
+ <div name='replaced-addr'></div>
+ </div>
+ </td>
+ </tr>
+
+ <tr name='uedit-addr-owner-row' type='addr-template' class='pending-addr-row hidden'>
+ <td colspan='3'>
+ <span style='padding-right:10px;'>This address is owned by another user: </span>
+ <a href='javascript:void(0);' name='addr-owner'></a>
+ </td>
+ </tr>
+
+
+ <tr fmclass='aua' fmfield='address_type' type='addr-template' required='show'/>
+ <tr fmclass='aua' fmfield='post_code' type='addr-template' required='required'/>
+ <tr fmclass='aua' fmfield='street1' type='addr-template' required='required'/>
+ <tr fmclass='aua' fmfield='street2' type='addr-template' required='show'/>
+ <tr fmclass='aua' fmfield='city' type='addr-template' required='required'/>
+ <tr fmclass='aua' fmfield='county' type='addr-template' required='show'/>
+ <tr fmclass='aua' fmfield='state' type='addr-template' required='required'/>
+ <tr fmclass='aua' fmfield='country' type='addr-template' required='required'/>
+ <tr fmclass='aua' fmfield='valid' type='addr-template' required='show'/>
+ <tr fmclass='aua' fmfield='within_city_limits' type='addr-template' required='show'/>
+
+ <tr id='new-addr-row' class='newaddr-row' required='show'>
+ <td colspan='0' style='text-align:center;'>
+ <button dojoType='dijit.form.Button' onClick='uEditNewAddr'>New Address</button>
+ </td>
+ </tr>
+
+ <!-- stat cats -->
+ <tr class='divider' id='stat-cat-divider'><td colspan='0'>Statistical Categories</td></tr>
+ <tr id='stat-cat-row-template'><td class='uedit-help'/><td name='name'/><td name='widget'/></tr>
+
+ <!-- surveys -->
+ <tr id='survey-row-template' class='divider'><td colspan='0' name='name'/></tr>
+ <tr id='survey-question-row-template'><td class='uedit-help'/><td name='question'/><td name='answers'/></tr>
+</tbody>
+
More information about the open-ils-commits
mailing list