]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/lang/fr/tpl/update_media.tpl
ebl add fileview tool
[bacula/bacula] / gui / bweb / lang / fr / tpl / update_media.tpl
1 <br/>
2 <div class='titlediv'>
3  <h1 class='newstitle'> Modifier le media <TMPL_VAR volumename></h1>
4 </div>
5 <div class='bodydiv'>
6   <form name='form1' action="?" method='GET'>
7    <table>
8     <tr><td>Nom du volume :</td>
9         <td><input type='text' name='media' class='formulaire' value='<TMPL_VAR volumename>' title='Modifiez ce champs pour mettre à jour un autre média'>
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>Statut :</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            </select>
31         </td>
32     </tr>
33
34     <tr><td>Slot :</td>
35         <td> 
36           <input class='formulaire' type='text' 
37                  name='slot' value='<TMPL_VAR slot>'>
38         </td>
39     </tr>
40
41     <tr><td>En ligne :</td>
42         <td> 
43           <input class='formulaire' type='checkbox' 
44                name='inchanger' <TMPL_IF inchanger>checked</TMPL_IF>>
45         </td>
46     </tr>
47
48     <tr><td> Localisation : </td>
49         <td><select name='location' class='formulaire'>
50       <option value=''></option>
51   <TMPL_LOOP db_locations>
52       <option value='<TMPL_VAR location>'><TMPL_VAR location></option>
53   </TMPL_LOOP>
54     </select>
55         </td>
56     </tr>
57     <tr><td> Période de rétention : </td>
58         <td>
59           <input class='formulaire' type='text' title='ex: 3 days, 1 month'
60                name='volretention' value='<TMPL_VAR volretention>'>
61         </td>
62     </tr>
63     <tr><td> Durée d'utilisation : </td>
64         <td>
65           <input class='formulaire' type='text' title='ex: 3 days, 1 month'
66                name='voluseduration' value='<TMPL_VAR voluseduration>'>
67         </td>
68     </tr>
69     <tr><td> Nombre de jobs maxi : </td>
70         <td>
71           <input class='formulaire' type='text' title='ex: 10'
72                name='maxvoljobs' value='<TMPL_VAR maxvoljobs>'>
73         </td>
74     </tr>
75     <tr><td> Nombre de fichiers maxi : </td>
76         <td>
77           <input class='formulaire' type='text' title='ex: 10000'
78                name='maxvolfiles' value='<TMPL_VAR maxvolfiles>'>
79         </td>
80     </tr>
81     <tr><td> Taille maxi : </td>
82         <td>
83           <input class='formulaire' type='text' title='ex: 10M, 11G'
84                name='maxvolbytes' value='<TMPL_VAR maxvolbytes>'>
85         </td>
86     </tr>
87     <tr><td>Pool de recyclage :</td>
88         <td><select name='poolrecycle' class='formulaire'>
89 <TMPL_LOOP db_pools>
90              <option value='<TMPL_VAR name>'><TMPL_VAR name></option>
91 </TMPL_LOOP>
92            </select>
93         </td>
94     </tr>
95     <tr><td> Commentaire : </td>
96         <td>
97           <input class='formulaire' type='text' title='un commentaire'
98                name='comment' value='<TMPL_VAR comment>'>
99         </td>
100     </tr>
101     </table>
102 <table>
103  <td>
104  <label>
105   <input type="image" name='action' value='do_update_media' src='/bweb/apply.png'> Appliquer
106   </label>
107   <label>
108   <input type="image" name='action' title='Mettre à jour à partir du pool'
109     value='update_from_pool' src='/bweb/update.png'> Reinitialiser
110   </label>
111  </form>
112  </td>
113  <td>
114   <form action='?' method='GET'>
115    <input type='hidden' name='pool' value='<TMPL_VAR poolname>'>
116    <label>
117     <input type="image" name='action' value='media'
118      src='/bweb/zoom.png'>Voir le pool
119    </label>
120   </form>
121  </td>
122 </table>
123 </div>
124
125 <script type="text/javascript" language='JavaScript'>
126 var ok=1;
127 for (var i=0; ok && i < document.form1.pool.length; ++i) {
128    if (document.form1.pool[i].value == '<TMPL_VAR poolname>') {
129       document.form1.pool[i].selected = true;
130       ok=0;
131    }
132 }
133 ok=1;
134 for (var i=0; ok && i < document.form1.poolrecycle.length; ++i) {
135    if (document.form1.poolrecycle[i].value == '<TMPL_VAR poolrecycle>') {
136       document.form1.poolrecycle[i].selected = true;
137       ok=0;
138    }
139 }
140 ok=1;
141 for (var i=0; ok && i < document.form1.location.length; ++i) {
142    if (document.form1.location[i].value == '<TMPL_VAR location>') {
143       document.form1.location[i].selected = true;
144       ok=0;
145    }
146 }
147
148 ok=1;
149 for (var i=0; ok && i < document.form1.volstatus.length; ++i) {
150    if (document.form1.volstatus[i].value == '<TMPL_VAR volstatus>') {
151       document.form1.volstatus[i].selected = true;
152       ok=0;
153    }
154 }
155
156 </script>