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="collection" size="7" style="margin:5px 0px;">
|
---|
40 | #foreach($host in $hostnames)
|
---|
41 | <optgroup label="$host">
|
---|
42 | #foreach($collection in $collectionnames.get($host))
|
---|
43 | <option>$collection</option>
|
---|
44 | #end
|
---|
45 | <option selected="selected">any collection on host $host</option>
|
---|
46 | </optgroup>
|
---|
47 | #end
|
---|
48 | </select></li>
|
---|
49 | <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/>
|
---|
50 | <table style="margin:5px 0px;">
|
---|
51 | <tr class="odd">
|
---|
52 | <th>collection name</th>
|
---|
53 | <td width="25%">contains <img class="help" alt="help" src="images/help.png" longdesc="substring" title="substring"/>
|
---|
54 | </td>
|
---|
55 | <td>
|
---|
56 | <input type="text" name="collection_query" style="width:80%;" value="$!prefill.collection_query"/>
|
---|
57 | </td>
|
---|
58 | </tr>
|
---|
59 | </table>
|
---|
60 | If you enter a query, the selection made in the list above will be ignored.
|
---|
61 | <!-- collection description? creator? language? -->
|
---|
62 | </li>
|
---|
63 | </ol>
|
---|
64 | If you just click "continue", events coming from <em>any collection</em> will be sent to you.
|
---|
65 | </div>
|
---|
66 | </div>
|
---|
67 | <p class="explanation">
|
---|
68 | In the last step, you will be able to configure the the way you will be notified of events matching your subscription.
|
---|
69 | </p>
|
---|
70 | <input type="hidden" name="current_page" value="collection"/>
|
---|
71 | <input type="submit" name="next_page" value="back"/><input type="submit" name="next_page" value="next"/><input type="submit" name="next_page" value="finish"/>
|
---|
72 | </form>
|
---|
73 | </div>
|
---|
74 | </body>
|
---|
75 | </html>
|
---|