]> git.sur5r.net Git - bacula/bacula/blob - 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
1 <br/>
2 <div class='titlediv'>
3   <h1 class='newstitle'> __Volume location:__ <TMPL_VAR Location></h1>
4 </div>
5 <div class='bodydiv'>
6    <form name='form1' action="?" method='get'>
7     <input type='hidden' name='location' value='<TMPL_VAR location>'>
8     <table>
9      <tr><td>__Location:__</td>     
10          <td> 
11           <input class="formulaire" type='text' value='<TMPL_VAR location>' size='32' name='newlocation'> 
12          </td>
13      </tr>
14      <tr><td>__Cost:__</td> 
15          <td> <input class="formulaire" type='text' value='<TMPL_VAR cost>' name='cost' size='3'>
16          </td>
17      </tr>
18     <tr><td>__Enabled:__</td>
19         <td> <select name='enabled' class='formulaire'>
20            <option value='yes'>__yes__</option>
21            <option value='no'>__no__</option>
22            <option value='archived'>__archived__</option>
23            </select>
24         </td>
25     </tr>
26     </table>
27     <button type="submit" class="bp" name='action' value='location_save'>
28       <img src='/bweb/save.png' alt=''>__Save__</button>
29    </form>
30 </div>
31
32 <script type="text/javascript" language='JavaScript'>
33 ok=1;
34 for (var i=0; ok && i < document.form1.enabled.length; ++i) {
35    if (document.form1.enabled[i].value == '<TMPL_VAR enabled>') {
36       document.form1.enabled[i].selected = true;
37       ok=0;
38    }
39 }
40 </script>