]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/url_verify/sessions.tt2
Link checker: user interface and supporting fixes (part 2)
[working/Evergreen.git] / Open-ILS / src / templates / url_verify / sessions.tt2
1 [% WRAPPER base.tt2 no_content_pane=1 %]
2 [% ctx.page_title = "Link Checker" %]
3 <script type="text/javascript">
4     dojo.require("dijit.form.Button");
5     dojo.require("openils.widget.FlattenerGrid");
6     dojo.require("openils.widget.OrgUnitFilteringSelect")
7     dojo.require("openils.URLVerify.Sessions");
8
9     /* Minimize namespace pollution, but save us some typing later. */
10     var module = openils.URLVerify.Sessions;
11
12     openils.Util.addOnLoad(
13         function() {
14             module.setup(grid, org_selector);
15         }
16     );
17 </script>
18 <div class="oils-header-panel" dojoType="dijit.layout.ContentPane" layoutAlign="top">
19     <div>[% ctx.page_title %]</div>
20     <div>
21         <strong><a href="create_session">[% l("New Link Checker Session") %]</a></strong>
22     </div>
23 </div>
24 <div class="oils-acq-basic-roomy" dojoType="dijit.layout.ContentPane" layoutAlign="top">
25     <label for="org_selector">[% l("View existing sessions started at:") %]</label>
26     <select id="org_selector" jsId="org_selector"
27         dojoType="openils.widget.OrgUnitFilteringSelect"
28         searchAttr="name" labelAttr="name">
29     </select>
30 </div>
31 <div dojoType="dijit.layout.ContentPane" layoutAlign="bottom" style="height: 85%;">
32     <table jsid="grid"
33         dojoType="openils.widget.FlattenerGrid"
34         editOnEnter="false"
35         hideSelector="true"
36         fetchLock="true"
37         fmClass="'uvs'">
38         <thead>
39             <tr>
40                 <th field="id" fpath="id" formatter="module.format_id"></th>
41                 <th field="name" fpath="name" width="auto"></th>
42                 <th field="attempts" fpath="attempts.id" formatter="module.format_attempts" width="auto">[% l("Verification Attempts") %]</th>
43                 <th field="creator" fpath="creator.usrname">[% l("Creator ") %]</th>
44                 <th field="create_time" fpath="create_time" width="auto"></th>
45                 <th field="search" fpath="search" width="auto"></th>
46                 <th field="selectors" fpath="selectors.xpath" width="auto">[% l("URL Selectors") %]</th>
47             </tr>
48         </thead>
49     </table>
50 </div>
51 [% END %]