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