]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/lang/fr/tpl/update_media.tpl
bweb: update tpl
[bacula/bacula] / gui / bweb / lang / fr / 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              <option value='' title='*None*'></option>
101 <TMPL_LOOP db_pools>
102              <option value='<TMPL_VAR name>'><TMPL_VAR name></option>
103 </TMPL_LOOP>
104            </select>
105         </td>
106     </tr>
107     <tr><td> Comment: </td>
108         <td>
109           <input class='formulaire' type='text' title='a comment'
110                name='comment' value='<TMPL_VAR comment>'>
111         </td>
112     </tr>
113
114     </table>
115 <table>
116  <td>
117   <button type="submit" class="bp" name='action' value='do_update_media'> <img src='/bweb/apply.png' alt=''> Apply </button>
118   <button type="submit" class="bp" name='action' title='Update from pool'
119     value='update_from_pool'> <img src='/bweb/update.png' alt=''> Update from pool </button>
120  </form>
121  </td>
122  <td>
123   <form action='?' method='GET'>
124    <input type='hidden' name='pool' value='<TMPL_VAR poolname>'>
125     <button type="submit" class="bp" name='action' value='media'>
126      <img src='/bweb/zoom.png' alt=''>View Pool </button>
127   </form>
128  </td>
129 </table>
130 </div>
131
132 <script type="text/javascript" language='JavaScript'>
133 var ok=1;
134 for (var i=0; ok && i < document.form1.pool.length; ++i) {
135    if (document.form1.pool[i].value == '<TMPL_VAR poolname>') {
136       document.form1.pool[i].selected = true;
137       ok=0;
138    }
139 }
140
141 ok=1;
142 for (var i=0; ok && i < document.form1.pool.length; ++i) {
143    if (document.form1.poolrecycle[i].value == '<TMPL_VAR poolrecycle>') {
144       document.form1.poolrecycle[i].selected = true;
145       ok=0;
146    }
147 }
148
149 ok=1;
150 for (var i=0; ok && i < document.form1.location.length; ++i) {
151    if (document.form1.location[i].value == '<TMPL_VAR location>') {
152       document.form1.location[i].selected = true;
153       ok=0;
154    }
155 }
156
157 ok=1;
158 for (var i=0; ok && i < document.form1.volstatus.length; ++i) {
159    if (document.form1.volstatus[i].value == '<TMPL_VAR volstatus>') {
160       document.form1.volstatus[i].selected = true;
161       ok=0;
162    }
163 }
164 ok=1;
165 for (var i=0; ok && i < document.form1.enabled.length; ++i) {
166    if (document.form1.enabled[i].value == '<TMPL_VAR enabled>') {
167       document.form1.enabled[i].selected = true;
168       ok=0;
169    }
170 }
171
172 </script>