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