]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/bweb/tpl/location_edit.tpl
bacula-web: Replaced Get_human_file_size() function by Utils::Get_Human_Size
[bacula/bacula] / gui / bweb / tpl / location_edit.tpl
index 482041b97f6cecf48a4e9fe57200cc3c8f0ef251..7de0315990a1070ea1d993b0366fc6d947441055 100644 (file)
@@ -1,27 +1,40 @@
 <br/>
 <div class='titlediv'>
-  <h1 class='newstitle'> Location : <TMPL_VAR Location></h1>
+  <h1 class='newstitle'> __Volume location:__ <TMPL_VAR Location></h1>
 </div>
 <div class='bodydiv'>
-   <form action="?" method='get'>
+   <form name='form1' action="?" method='get'>
     <input type='hidden' name='location' value='<TMPL_VAR location>'>
     <table>
-     <tr><td>Location :</td>     
+     <tr><td>__Location:__</td>     
          <td> 
           <input class="formulaire" type='text' value='<TMPL_VAR location>' size='32' name='newlocation'> 
          </td>
      </tr>
-     <tr><td>Cost :</td> 
+     <tr><td>__Cost:__</td> 
          <td> <input class="formulaire" type='text' value='<TMPL_VAR cost>' name='cost' size='3'>
          </td>
      </tr>
-     <tr><td>Enabled :</td> 
-         <td> <input class="formulaire" type='checkbox' name='enabled' <TMPL_IF enabled> checked </TMPL_IF> >
-         </td>
-     </tr>
+    <tr><td>__Enabled:__</td>
+        <td> <select name='enabled' class='formulaire'>
+           <option value='yes'>__yes__</option>
+           <option value='no'>__no__</option>
+           <option value='archived'>__archived__</option>
+           </select>
+        </td>
+    </tr>
     </table>
-    <button name='action' value='location_save' class='formulaire'>
-     <img src='/bweb/save.png'>
-    </button>
+    <button type="submit" class="bp" name='action' value='location_save'>
+      <img src='/bweb/save.png' alt=''>__Save__</button>
    </form>
 </div>
+
+<script type="text/javascript" language='JavaScript'>
+ok=1;
+for (var i=0; ok && i < document.form1.enabled.length; ++i) {
+   if (document.form1.enabled[i].value == '<TMPL_VAR enabled>') {
+      document.form1.enabled[i].selected = true;
+      ok=0;
+   }
+}
+</script>