]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/bweb/tpl/update_media.tpl
Spelling updates
[bacula/bacula] / gui / bweb / tpl / update_media.tpl
index a7e16df7531c312e5a3219b8f7be7b1b7a94293a..2dc7416ca20cc30294e14638b6bd97627fdd95b4 100644 (file)
@@ -25,9 +25,7 @@
            <option value='Cleaning'>Cleaning</option>
            <option value='Error'>Error</option>
           <option value='Full'>Full</option>
-           <option value='Purged'>Purged</option>
            <option value='Read-Only'>Read-Only</option>
-           <option value='Recycle'>Recycle</option>
            <option value='Used'>Used</option>
            </select>
         </td>
@@ -49,6 +47,7 @@
 
     <tr><td> Location : </td>
         <td><select name='location' class='formulaire'>
+        <option value=''></option>
   <TMPL_LOOP db_locations>
       <option value='<TMPL_VAR location>'><TMPL_VAR location></option>
   </TMPL_LOOP>
                name='maxvolbytes' value='<TMPL_VAR maxvolbytes>'>
         </td>
     </tr>
+    <tr><td>Recycle Pool:</td>
+        <td><select name='poolrecycle' class='formulaire'>
+<TMPL_LOOP db_pools>
+             <option value='<TMPL_VAR name>'><TMPL_VAR name></option>
+</TMPL_LOOP>
+           </select>
+        </td>
+    </tr>
+    <tr><td> Comment: </td>
+        <td>
+          <input class='formulaire' type='text' title='a comment'
+               name='comment' value='<TMPL_VAR comment>'>
+        </td>
+    </tr>
+
     </table>
 <table>
  <td>
   </label>
   <label>
   <input type="image" name='action' title='Update from pool'
-    value='update_from_pool' src='/bweb/update.png'> Update
+    value='update_from_pool' src='/bweb/update.png'> Update from pool
   </label>
  </form>
  </td>
@@ -118,6 +132,14 @@ for (var i=0; ok && i < document.form1.pool.length; ++i) {
    }
 }
 
+ok=1;
+for (var i=0; ok && i < document.form1.pool.length; ++i) {
+   if (document.form1.poolrecycle[i].value == '<TMPL_VAR poolrecycle>') {
+      document.form1.poolrecycle[i].selected = true;
+      ok=0;
+   }
+}
+
 ok=1;
 for (var i=0; ok && i < document.form1.location.length; ++i) {
    if (document.form1.location[i].value == '<TMPL_VAR location>') {
@@ -134,4 +156,4 @@ for (var i=0; ok && i < document.form1.volstatus.length; ++i) {
    }
 }
 
-</script>
\ No newline at end of file
+</script>