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