source: gs3-extensions/gsdl-as/trunk/lib/templates/sub_collection.vm@ 22007

Last change on this file since 22007 was 8875, checked in by schweer, 19 years ago

first changes towards treating collection ids as unique only on a per-host basis (addressing BTS #11)

  • Property svn:keywords set to Author Date Id Revision
File size: 3.0 KB
Line 
1<?xml version="1.0"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4<html xmlns="http://www.w3.org/1999/xhtml">
5 <head>
6 <title>Andrea Schweer</title>
7 <link rel="stylesheet" href="/alerting/form.css" type="text/css"/>
8 </head>
9 <body>
10 <div id="content">
11 <h3>Create a subscription (3/4)</h3>
12 <table id="progress">
13 <tr>
14 <td class="completed">type/details</td><td class="completed">host</td><td class="current">collection</td><td>notification</td>
15 </tr>
16 </table>
17 <p>Choose the collection(s) to monitor</p>
18 <form action="/alerting/service?action=$action" method="post">
19 <div><h4>Your subscription so far</h4>
20 <table class="subscription">
21 #set($evenodd = "odd")
22 #foreach($key in $preview.keySet())
23 #if(!($key == ""))
24 <tr class="$evenodd">
25 <th>$key</th>
26 <td>$preview.get($key)</td>
27 </tr>
28 #end
29 #if ($evenodd == "odd") #set($evenodd = "even") #else #set($evenodd = "odd") #end
30 #end
31 </table>
32 </div>
33 <div>
34 <h4>Which collection(s) to monitor</h4>
35 <div class="explanation">
36 You have two ways of choosing the collection(s) to monitor:
37 <ol>
38 <li>You can choose one or more collections from the list below. Only events from the collections(s) you have chosen will be sent to you<br/>
39 <select multiple="multiple" name="hostCollectionID" size="7" style="margin:5px 0px;">
40 <option value="">any collection on any host</option>
41 #foreach($host in $hostnames)
42 <optgroup label="$host">
43 #foreach($collection in $collectionnames.get($host))
44 <option>$host|$collection</option>
45 #end
46 <option selected="selected" value="$host">any collection on host $host</option>
47 </optgroup>
48 #end
49 </select></li>
50 <li>You can enter a query in the field below. Only events coming from a collection whose name matches this query will be sent to you.<br/>
51 <table style="margin:5px 0px;">
52 <tr class="odd">
53 <th>collection name</th>
54 <td width="25%">contains <img class="help" alt="help" src="images/help.png" longdesc="substring" title="substring"/>
55 </td>
56 <td>
57 <input type="text" name="collection_query" style="width:80%;" value="$!prefill.collection_query"/>
58 </td>
59 </tr>
60 </table>
61 If you enter a query, the selection made in the list above will be ignored.
62 <!-- collection description? creator? language? -->
63 </li>
64 </ol>
65 If you just click &quot;continue&quot;, events coming from <em>any collection</em> will be sent to you.
66 </div>
67 </div>
68 <p class="explanation">
69 In the last step, you will be able to configure the the way you will be notified of events matching your subscription.
70 </p>
71 <input type="hidden" name="current_page" value="collection"/>
72 <input type="submit" name="next_page" value="back"/><input type="submit" name="next_page" value="next"/><input type="submit" name="next_page" value="finish"/>
73 </form>
74 </div>
75 </body>
76</html>
Note: See TracBrowser for help on using the repository browser.