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