]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/location_edit.tpl
ebl Update Location.Enabled to be like Media.Enabled
[bacula/bacula] / gui / bweb / tpl / location_edit.tpl
1 <br/>
2 <div class='titlediv'>
3   <h1 class='newstitle'> 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     <input type="image" name='action' value='location_save'
28      src='/bweb/save.png'>
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>