]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/update_media.tpl
ebl remove Purged/Recycled status in update media
[bacula/bacula] / gui / 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   <TMPL_LOOP db_locations>
51       <option value='<TMPL_VAR location>'><TMPL_VAR location></option>
52   </TMPL_LOOP>
53     </select>
54         </td>
55     </tr>
56     <tr><td> Retention period: </td>
57         <td>
58           <input class='formulaire' type='text' title='ex: 3 days, 1 month'
59                name='volretention' value='<TMPL_VAR volretention>'>
60         </td>
61     </tr>
62     <tr><td> Use duration: </td>
63         <td>
64           <input class='formulaire' type='text' title='ex: 3 days, 1 month'
65                name='voluseduration' value='<TMPL_VAR voluseduration>'>
66         </td>
67     </tr>
68     <tr><td> Max Jobs: </td>
69         <td>
70           <input class='formulaire' type='text' title='ex: 10'
71                name='maxvoljobs' value='<TMPL_VAR maxvoljobs>'>
72         </td>
73     </tr>
74     <tr><td> Max Files: </td>
75         <td>
76           <input class='formulaire' type='text' title='ex: 10000'
77                name='maxvolfiles' value='<TMPL_VAR maxvolfiles>'>
78         </td>
79     </tr>
80     <tr><td> Max Bytes: </td>
81         <td>
82           <input class='formulaire' type='text' title='ex: 10M, 11G'
83                name='maxvolbytes' value='<TMPL_VAR maxvolbytes>'>
84         </td>
85     </tr>
86     <tr><td>Recycle Pool:</td>
87         <td><select name='poolrecycle' class='formulaire'>
88 <TMPL_LOOP db_pools>
89              <option value='<TMPL_VAR name>'><TMPL_VAR name></option>
90 </TMPL_LOOP>
91            </select>
92         </td>
93     </tr>
94     <tr><td> Comment: </td>
95         <td>
96           <input class='formulaire' type='text' title='a comment'
97                name='comment' value='<TMPL_VAR comment>'>
98         </td>
99     </tr>
100
101     </table>
102 <table>
103  <td>
104  <label>
105   <input type="image" name='action' value='do_update_media' src='/bweb/apply.png'> Apply
106   </label>
107   <label>
108   <input type="image" name='action' title='Update from pool'
109     value='update_from_pool' src='/bweb/update.png'> Update
110   </label>
111  </form>
112  </td>
113  <td>
114   <form action='?' method='GET'>
115    <input type='hidden' name='pool' value='<TMPL_VAR poolname>'>
116    <label>
117     <input type="image" name='action' value='media'
118      src='/bweb/zoom.png'>View Pool
119    </label>
120   </form>
121  </td>
122 </table>
123 </div>
124
125 <script type="text/javascript" language='JavaScript'>
126 var ok=1;
127 for (var i=0; ok && i < document.form1.pool.length; ++i) {
128    if (document.form1.pool[i].value == '<TMPL_VAR poolname>') {
129       document.form1.pool[i].selected = true;
130       ok=0;
131    }
132 }
133
134 ok=1;
135 for (var i=0; ok && i < document.form1.pool.length; ++i) {
136    if (document.form1.poolrecycle[i].value == '<TMPL_VAR poolrecycle>') {
137       document.form1.poolrecycle[i].selected = true;
138       ok=0;
139    }
140 }
141
142 ok=1;
143 for (var i=0; ok && i < document.form1.location.length; ++i) {
144    if (document.form1.location[i].value == '<TMPL_VAR location>') {
145       document.form1.location[i].selected = true;
146       ok=0;
147    }
148 }
149
150 ok=1;
151 for (var i=0; ok && i < document.form1.volstatus.length; ++i) {
152    if (document.form1.volstatus[i].value == '<TMPL_VAR volstatus>') {
153       document.form1.volstatus[i].selected = true;
154       ok=0;
155    }
156 }
157
158 </script>