3 <h1 class='newstitle'><TMPL_UNLESS name>__New__</TMPL_UNLESS> __Autochanger__ </h1>
6 __You have to create a Location which will have the same name.__<br/><br/>
8 <form name='form1' action="?" method='get'>
10 <tr><td>__Name:__</td>
12 <select name='ach' class='formulaire' id='ach'>
13 <TMPL_LOOP devices><option value='<TMPL_VAR name>'><TMPL_VAR name></option></TMPL_LOOP>
17 <tr><td>__Pre-command:__</td>
18 <td> <input class="formulaire" type='text' id='precmd' value='sudo'
19 title='__can be "sudo" or "ssh storage@storagehost"...__' name='precmd'>
22 <tr><td>__mtx command:__</td>
23 <td> <input class="formulaire" type='text' name='mtxcmd' size='32'
24 value='/usr/sbin/mtx' id='mtxcmd'>
27 <tr><td>__Device:__</td>
28 <td> <input class="formulaire" type='text' name='device'
29 value='/dev/changer' id='device'>
32 <tr><td><b>__Drives__</b></td><td/></tr>
35 <td><input class='formulaire' type='checkbox' id='drive_<TMPL_VAR name>'
36 name='drives' value='<TMPL_VAR name>'><TMPL_VAR name>
38 <td>__index__ <input type='text' title='__drive index__'
40 id='index_<TMPL_VAR name>' value=''
41 name='index_<TMPL_VAR name>' size='3'>
46 <button type="submit" class="bp" name='action' value='ach_add'> <img src='/bweb/save.png' alt=''>__Save__</button>
50 <script type="text/javascript" language="JavaScript">
52 for (var i=0; i < document.form1.ach.length; ++i) {
53 if (document.form1.ach[i].value == '<TMPL_VAR name>') {
54 document.form1.ach[i].selected = true;
59 document.getElementById('mtxcmd').value='<TMPL_VAR mtxcmd>';
62 document.getElementById('precmd').value='<TMPL_VAR precmd>';
65 document.getElementById('device').value='<TMPL_VAR device>';
69 document.getElementById('drive_<TMPL_VAR name>').checked=true;
70 document.getElementById('index_<TMPL_VAR name>').value=<TMPL_VAR index>;