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'>
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'>
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' class='formulaire'
39 id='index_<TMPL_VAR name>' value=''
40 name='index_<TMPL_VAR name>' size='3'>
45 <input type="image" name='action' value='ach_add' src='/bweb/save.png'>
49 <script type="text/javascript" language="JavaScript">
51 for (var i=0; i < document.form1.ach.length; ++i) {
52 if (document.form1.ach[i].value == '<TMPL_VAR name>') {
53 document.form1.ach[i].selected = true;
58 document.getElementById('mtxcmd').value='<TMPL_VAR mtxcmd>';
61 document.getElementById('precmd').value='<TMPL_VAR precmd>';
64 document.getElementById('device').value='<TMPL_VAR device>';
68 document.getElementById('drive_<TMPL_VAR name>').checked=true;
69 document.getElementById('index_<TMPL_VAR name>').value=<TMPL_VAR index>;