]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/update_media.tpl
ebl fix
[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='Purged'>Purged</option>
29            <option value='Read-Only'>Read-Only</option>
30            <option value='Recycle'>Recycle</option>
31            <option value='Used'>Used</option>
32            </select>
33         </td>
34     </tr>
35
36     <tr><td>Slot:</td>
37         <td> 
38           <input class='formulaire' type='text' 
39                  name='slot' value='<TMPL_VAR slot>'>
40         </td>
41     </tr>
42
43     <tr><td>InChanger Flag:</td>
44         <td> 
45           <input class='formulaire' type='checkbox' 
46                name='inchanger' <TMPL_IF inchanger>checked</TMPL_IF>>
47         </td>
48     </tr>
49
50     <tr><td> Location : </td>
51         <td><select name='location' class='formulaire'>
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     </table>
89 <table>
90  <td>
91  <label>
92   <input type="image" name='action' value='do_update_media' src='/bweb/apply.png'> Apply
93   </label>
94   <label>
95   <input type="image" name='action' title='Update from pool'
96     value='update_from_pool' src='/bweb/update.png'> Update
97   </label>
98  </form>
99  </td>
100  <td>
101   <form action='?' method='GET'>
102    <input type='hidden' name='pool' value='<TMPL_VAR poolname>'>
103    <label>
104     <input type="image" name='action' value='media'
105      src='/bweb/zoom.png'>View Pool
106    </label>
107   </form>
108  </td>
109 </table>
110 </div>
111
112 <script type="text/javascript" language='JavaScript'>
113 var ok=1;
114 for (var i=0; ok && i < document.form1.pool.length; ++i) {
115    if (document.form1.pool[i].value == '<TMPL_VAR poolname>') {
116       document.form1.pool[i].selected = true;
117       ok=0;
118    }
119 }
120
121 ok=1;
122 for (var i=0; ok && i < document.form1.location.length; ++i) {
123    if (document.form1.location[i].value == '<TMPL_VAR location>') {
124       document.form1.location[i].selected = true;
125       ok=0;
126    }
127 }
128
129 ok=1;
130 for (var i=0; ok && i < document.form1.volstatus.length; ++i) {
131    if (document.form1.volstatus[i].value == '<TMPL_VAR volstatus>') {
132       document.form1.volstatus[i].selected = true;
133       ok=0;
134    }
135 }
136
137 </script>