]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/url_verify/create_session.tt2
5c575d033383e78a9b3b93885d9c2f32b8eee207
[working/Evergreen.git] / Open-ILS / src / templates / url_verify / create_session.tt2
1 [% WRAPPER base.tt2 %]
2 [% ctx.page_title = l("Link Checker - Create Session") %]
3 <script type="text/javascript">
4     dojo.require("dijit.form.Button");
5     dojo.require("dijit.form.CheckBox");
6     dojo.require("dijit.form.TextBox");
7     dojo.require("openils.Util");
8     dojo.require("openils.widget.ProgressDialog");
9     dojo.require("openils.URLVerify.CreateSession");
10
11     var module;
12
13     openils.Util.addOnLoad(
14         function() {
15             module = openils.URLVerify.CreateSession;
16             module.setup("saved-searches", "org-selector", progress_dialog);
17         }
18     );
19 </script>
20 <style type="text/css">
21     #uv-search { width: 20em; }
22     .note { font-style: italic; background-color: #eee; }
23     #saved-searches { width: 15em; }
24     #uv-tags-and-subfields { background-color: #ddd; }
25     table.create-session-form th { text-align: right; padding-right: 1em; }
26     table.create-session-form {
27         border-collapse: separate;
28         border-spacing: 0.5ex;
29     }
30 </style>
31 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
32     <div dojoType="dijit.layout.ContentPane"
33          layoutAlign="top" class="oils-header-panel">
34         <div> [% ctx.page_title %] </div>
35         <div> <!-- buttons could go here --></div>
36     </div>
37     <div>
38         <table class="create-session-form">
39             <tr>
40                 <th>
41                     <label for="uv-session-name">[% l("Sesssion name:") %]</label>
42                 </th>
43                 <td>
44                     <input dojoType="dijit.form.TextBox"
45                         id="uv-session-name" jsId="uv_session_name" />
46                 </td>
47                 <td class="note">
48                 </td>
49             </tr>
50
51             <tr>
52                 <th>
53                     <label for="org-selector">[% l('Search scope:') %]</label>
54                 </th>
55                 <td>
56                     <div id="org-selector"></div>
57                 </td>
58                 <td class="note">
59                     [% l("This will only be used if your search doesn't contain an explicit filter such as site(BR1)") %]
60                 </td>
61             </tr>
62
63             <!-- XXX TODO I bet we want a depth selector here too -->
64
65             <tr>
66                 <th>
67                     <label for="uv-search">[% l('Search:') %]</label>
68                 </th>
69                 <td>
70                     <input dojoType="dijit.form.TextBox" id="uv-search"
71                         jsId="uv_search" />
72                 </td>
73                 <td class="note">
74                 </td>
75             </tr>
76
77             <tr>
78                 <th>
79                     <label for="saved-searches">[% l("Saved searches:") %]</label>
80                 </th>
81                 <td><!-- XXX we're just assuming this list won't grow so
82                     large as to be unrepresentable in a multiselect?  We
83                     could switch to a PCrudAutocompleteBox if needed for
84                     constant load time regardless of dataset size. -->
85                     <select id="saved-searches" multiple="true" size="6"></select>
86                 </td>
87                 <td class="note">
88                     <p>[% l("Optionally select one or more to combine with 'Search' field above.") %]</p>
89                     <p class="hidden" id="clone-saved-search-warning">
90                         [% l("NOTE: When cloning sessions, any saved searches used in the original session will already be mentioned in the 'Search' field above. You should not need to select them again here.") %]
91                     </p>
92                 </td>
93             </tr>
94
95             <tr>
96                 <th>
97                     <label for="no-url-selection">[% l('Process immediately?') %]</label>
98                 </th>
99                 <td>
100                     <input dojoType="dijit.form.CheckBox" id="no-url-selection"
101                         jsId="no_url_selection" />
102                 </td>
103                 <td class="note">
104                 </td>
105             </tr>
106
107             <tr>
108                 <th>
109                     [% l('Tags and subfields to search for URLs:') %]
110                 </th>
111                 <td>
112                     <div id="uv-tags-and-subfields">
113                     </div>
114                     <div class="tag-and-subfield-add-another">
115                         [% l("Tag") %]
116                         <input type="text" size="3" maxlength="3" />
117                         [% l("Subfield(s)") %]
118                         <input type="text" size="8" />
119                         <a href="javascript:module.tag_and_subfields.add();">[% l('Add') %]</a>
120                     </div>
121                 </td>
122                 <td class="note">
123                 </td>
124             </tr>
125         </table>
126
127         <div>
128             <button dojoType="dijit.form.Button"
129                 onClick="module.begin();">[% l("Begin") %]</button>
130
131         </div>
132     </div>
133 </div>
134 <div dojoType="openils.widget.ProgressDialog" jsId="progress_dialog"></div>
135 [% END %]