3 <h1 class='newstitle'><TMPL_UNLESS name>New</TMPL_UNLESS> Autochanger </h1>
6 <form name='form1' action="?" method='get'>
10 <select name='ach' class='formulaire' id='ach'>
11 <TMPL_LOOP devices><option value='<TMPL_VAR name>'><TMPL_VAR name></option></TMPL_LOOP>
15 <tr><td>Pre-command :</td>
16 <td> <input class="formulaire" type='text' id='precmd' value='sudo'
17 title='can be "sudo" or "ssh storage@storagehost"...' name='precmd'>
20 <tr><td>mtx command :</td>
21 <td> <input class="formulaire" type='text' name='mtxcmd' size='32'
22 value='/usr/sbin/mtx' id='mtxcmd'>
26 <td> <input class="formulaire" type='text' name='device'
27 value='/dev/changer' id='device'>
30 <tr><td><b>Drives</b></td><td/></tr>
33 <td><input class='formulaire' type='checkbox' id='drive_<TMPL_VAR name>'
34 name='drives' value='<TMPL_VAR name>'><TMPL_VAR name>
36 <td>index <input type='text' title='drive index' class='formulaire'
37 id='index_<TMPL_VAR name>' value=''
38 name='index_<TMPL_VAR name>' size='3'>
43 <input type="image" name='action' value='ach_add' src='/bweb/save.png'>
47 <script type="text/javascript" language="JavaScript">
49 for (var i=0; i < document.form1.ach.length; ++i) {
50 if (document.form1.ach[i].value == '<TMPL_VAR name>') {
51 document.form1.ach[i].selected = true;
56 document.getElementById('mtxcmd').value='<TMPL_VAR mtxcmd>';
59 document.getElementById('precmd').value='<TMPL_VAR precmd>';
62 document.getElementById('device').value='<TMPL_VAR device>';
66 document.getElementById('drive_<TMPL_VAR name>').checked=true;
67 document.getElementById('index_<TMPL_VAR name>').value=<TMPL_VAR index>;