]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/bweb/tpl/update_media.tpl
ebl Release 2.0.2 on sf
[bacula/bacula] / gui / bweb / bweb / tpl / update_media.tpl
1 <br/>
2 <div class='titlediv'>
3  <h1 class='newstitle'> Update media <TMPL_VAR volumename></h1>
4 </div>
5 <div class='bodydiv'>
6   <form name='form1' action="?" method='GET'>
7    <table>
8     <tr><td>Volume Name:</td>
9         <td><input type='text' name='media' class='formulaire' value='<TMPL_VAR volumename>' title='Change this to update an other media'>
10         </td>
11     </tr>
12     <tr><td>Pool:</td>
13         <td><select name='pool' class='formulaire'>
14 <TMPL_LOOP db_pools>
15              <option value='<TMPL_VAR name>'><TMPL_VAR name></option>
16 </TMPL_LOOP>
17            </select>
18         </td>
19     </tr>
20     <tr><td>Status:</td>
21         <td><select name='volstatus' class='formulaire'>
22            <option value='Append'>Append</option>
23            <option value='Archive'>Archive</option>
24            <option value='Disabled'>Disabled</option>
25            <option value='Cleaning'>Cleaning</option>
26            <option value='Error'>Error</option>
27            <option value='Full'>Full</option>
28            <option value='Read-Only'>Read-Only</option>
29            <option value='Used'>Used</option>
30            </select>
31         </td>
32     </tr>
33
34     <tr><td>Slot:</td>
35         <td> 
36           <input class='formulaire' type='text' 
37                  name='slot' value='<TMPL_VAR slot>'>
38         </td>
39     </tr>
40
41     <tr><td>InChanger Flag:</td>
42         <td> 
43           <input class='formulaire' type='checkbox' 
44                name='inchanger' <TMPL_IF inchanger>checked</TMPL_IF>>
45         </td>
46     </tr>
47
48     <tr><td> Location : </td>
49         <td><select name='location' class='formulaire'>
50         <option value=''></option>
51   <TMPL_LOOP db_locations>
52       <option value='<TMPL_VAR location>'><TMPL_VAR location></option>
53   </TMPL_LOOP>
54     </select>
55         </td>
56     </tr>
57     <tr><td> Retention period: </td>
58         <td>
59           <input class='formulaire' type='text' title='ex: 3 days, 1 month'
60                name='volretention' value='<TMPL_VAR volretention>'>
61         </td>
62     </tr>
63     <tr><td> Use duration: </td>
64         <td>
65           <input class='formulaire' type='text' title='ex: 3 days, 1 month'
66                name='voluseduration' value='<TMPL_VAR voluseduration>'>
67         </td>
68     </tr>
69     <tr><td> Max Jobs: </td>
70         <td>
71           <input class='formulaire' type='text' title='ex: 10'
72                name='maxvoljobs' value='<TMPL_VAR maxvoljobs>'>
73         </td>
74     </tr>
75     <tr><td> Max Files: </td>
76         <td>
77           <input class='formulaire' type='text' title='ex: 10000'
78                name='maxvolfiles' value='<TMPL_VAR maxvolfiles>'>
79         </td>
80     </tr>
81     <tr><td> Max Bytes: </td>
82         <td>
83           <input class='formulaire' type='text' title='ex: 10M, 11G'
84                name='maxvolbytes' value='<TMPL_VAR maxvolbytes>'>
85         </td>
86     </tr>
87     <tr><td>Recycle Pool:</td>
88         <td><select name='poolrecycle' class='formulaire'>
89 <TMPL_LOOP db_pools>
90              <option value='<TMPL_VAR name>'><TMPL_VAR name></option>
91 </TMPL_LOOP>
92            </select>
93         </td>
94     </tr>
95     <tr><td> Comment: </td>
96         <td>
97           <input class='formulaire' type='text' title='a comment'
98                name='comment' value='<TMPL_VAR comment>'>
99         </td>
100     </tr>
101
102     </table>
103 <table>
104  <td>
105  <label>
106   <input type="image" name='action' value='do_update_media' src='/bweb/apply.png'> Apply
107   </label>
108   <label>
109   <input type="image" name='action' title='Update from pool'
110     value='update_from_pool' src='/bweb/update.png'> Update from pool
111   </label>
112  </form>
113  </td>
114  <td>
115   <form action='?' method='GET'>
116    <input type='hidden' name='pool' value='<TMPL_VAR poolname>'>
117    <label>
118     <input type="image" name='action' value='media'
119      src='/bweb/zoom.png'>View Pool
120    </label>
121   </form>
122  </td>
123 </table>
124 </div>
125
126 <script type="text/javascript" language='JavaScript'>
127 var ok=1;
128 for (var i=0; ok && i < document.form1.pool.length; ++i) {
129    if (document.form1.pool[i].value == '<TMPL_VAR poolname>') {
130       document.form1.pool[i].selected = true;
131       ok=0;
132    }
133 }
134
135 ok=1;
136 for (var i=0; ok && i < document.form1.pool.length; ++i) {
137    if (document.form1.poolrecycle[i].value == '<TMPL_VAR poolrecycle>') {
138       document.form1.poolrecycle[i].selected = true;
139       ok=0;
140    }
141 }
142
143 ok=1;
144 for (var i=0; ok && i < document.form1.location.length; ++i) {
145    if (document.form1.location[i].value == '<TMPL_VAR location>') {
146       document.form1.location[i].selected = true;
147       ok=0;
148    }
149 }
150
151 ok=1;
152 for (var i=0; ok && i < document.form1.volstatus.length; ++i) {
153    if (document.form1.volstatus[i].value == '<TMPL_VAR volstatus>') {
154       document.form1.volstatus[i].selected = true;
155       ok=0;
156    }
157 }
158
159 </script>