]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/bweb/tpl/update_media.tpl
ebl add recyclecount + comment to display_media_zoom
[bacula/bacula] / gui / bweb / tpl / update_media.tpl
index fa1dd3285844e6165cf5fc960082b8325ed5df08..150842a7d876ec98ed5d7a46861434c1f6e6887e 100644 (file)
                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>
 <button class='formulaire' name='action' value='do_update_media'>Apply<br/>
-   <img src='/bweb/apply.png'>
-  </button>
-  <button class='formulaire' name='action' title='Update from pool'
-    value='update_from_pool'>Update<br/>
-   <img src='/bweb/update.png' title='Update from pool'>
-  </button>
<label>
+  <input type="image" name='action' value='do_update_media' src='/bweb/apply.png'> Apply
+  </label>
+  <label>
+  <input type="image" name='action' title='Update from pool'
+    value='update_from_pool' src='/bweb/update.png'> Update
+  </label>
  </form>
  </td>
  <td>
   <form action='?' method='GET'>
    <input type='hidden' name='pool' value='<TMPL_VAR poolname>'>
-    <button class='formulaire' name='action' value='media'>View Pool<br/>
-     <img src='/bweb/zoom.png'>
-    </button>
+   <label>
+    <input type="image" name='action' value='media'
+     src='/bweb/zoom.png'>View Pool
+   </label>
   </form>
  </td>
 </table>
 </div>
 
-<script language='JavaScript'>
+<script type="text/javascript" language='JavaScript'>
 var ok=1;
 for (var i=0; ok && i < document.form1.pool.length; ++i) {
    if (document.form1.pool[i].value == '<TMPL_VAR poolname>') {
@@ -117,6 +133,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>') {