2f764504b232e88d27a3d816a86e281a769b7097
[working/Evergreen.git] / Open-ILS / src / templates / actor / user / register.tt2
1 [% ctx.page_title = l('User Editor') %]
2 [% WRAPPER base.tt2 %]
3 <script type="text/javascript" src='[% ctx.media_prefix %]/js/ui/default/actor/user/register.js'></script>
4 <link rel="stylesheet" type="text/css" href="[% ctx.media_prefix %]/css/skin/[% ctx.skin %]/register.css" />
5
6 <div dojoType="dijit.form.Form" id="myForm" jsId="myForm" encType="multipart/form-data" action="" method="">
7     <script type="dojo/method" event="onSubmit">
8         /* we don't want to use the form action, but uEditSave and UEditSaveClone from the Save buttons.  We
9             do want to use the Form's validation features, which we do from within UEditSave, etc. */
10         return false;
11     </script>
12     <table>
13         [% INCLUDE actor/user/register_table.tt2 %]
14     </table>
15 </div>
16
17 <div id='uedit-save-div'>
18     <button dojoType='dijit.form.Button' jsId='saveButton' onClick='uEditSave' scrollOnFocus='false'></button>
19     <button dojoType='dijit.form.Button' jsId='saveCloneButton' onClick='uEditSaveClone' scrollOnFocus='false'></button>
20     <div id='require-toggle'>
21         <a href='javascript:uEditToggleRequired(1);' id='uedit-show-required'>[% l('Show Only Required Fields') %]</a><br id='uedit-show-required-br'/>
22         <a href='javascript:uEditToggleRequired(2);' id='uedit-show-suggested'>[% l('Show Suggested Fields') %]</a><br id='uedit-show-suggested-br'/>
23         <a href='javascript:uEditToggleRequired(0);' id='uedit-show-all' class='hidden'>[% l('Show All Fields') %]</a>
24     </div>
25
26     <!-- link to requesting user account for pending users -->
27     <div class='hidden' id='uedit-requesting-user-div'>
28         <a href='javascript:;' id='uedit-requesting-user'></a>
29     </div>
30 </div>
31
32
33 <!-- context help widget -->
34 <a class='hidden' id='uedit-help-template'><img src='/opac/images/advancedsearch-icon.png'></img></a>
35 <fieldset id='uedit-help-div' class='hidden'>
36     <legend id='uedit-help-field'></legend>
37     <div id='uedit-help-text'></div>
38 </fieldset>
39
40 <!-- duplicate patron search results -->
41 <div id='uedit-dupe-div' class='hidden'>
42     <div><a href='javascript:void(0);' id='uedit-dupe-names-link'></a></div>
43     <div><a href='javascript:void(0);' id='uedit-dupe-email-link'></a></div>
44     <div><a href='javascript:void(0);' id='uedit-dupe-ident-link'></a></div>
45     <div><a href='javascript:void(0);' id='uedit-dupe-phone-link'></a></div>
46     <div><a href='javascript:void(0);' id='uedit-dupe-address-link'></a></div>
47 </div>
48
49 <div id='uedit-address-alert' class='hidden'>
50     <div id='uedit-address-alert-header'>[% l('Address Alert') %]</div>
51     <div id='uedit-address-alert-message'></div>
52 </div>
53
54 <div class='hidden'>
55     <div jsId="progressDialog" dojoType="openils.widget.ProgressDialog"></div>
56     <span id='true' style='color:green;'>&#x2713;</span>
57     <span id='false' style='color:red;'>&#x2717;</span>
58     <div dojoType='dijit.Dialog' jsId='allCardsDialog'>
59         <table class='oils-generic-table' style='margin:10px;'>
60             <thead>
61                 <tr>
62                     <th id='uedit-all-cards-barcode'>[% l('Barcode') %]</th>
63                     <th id='uedit-all-cards-active'>[% l('Active') %]</th>
64                     <th id='uedit-all-cards-primary'>[% l('Primary') %]</th>
65                 </tr>
66             </thead>
67             <tbody id='uedit-all-cards-tbody'>
68                 <tr id='uedit-all-cards-tr-template'>
69                     <td><div name='barcode'></div></td>
70                     <td><div name='active'></div></td>
71                     <td><div name='primary'></div></td>
72                 </tr>
73             </tbody>
74             <tbody>
75                 <tr>
76                     <td colspan='3' style='text-align:center;'>
77                         <button jsId='allCardsClose' dojoType='dijit.form.Button' onClick='allCardsDialog.hide()' scrollOnFocus='false'>[% l('Close') %]</button>
78                         <span id='uedit-apply-card-changes'><button jsId='allCardsApply' dojoType='dijit.form.Button' onClick='applyCardChanges()' scrollOnFocus='false'>[% l('Apply Changes') %]</button></span>
79                     </td>
80                 </tr>
81             </tbody>
82         </table>
83     </div>
84 </div>
85
86
87 [% END %]
88