<!-- Template for compensating impedance files -->
<br>
<h1>Manual impedance compensation</h1>
<br>
<h3>For automatic impedance compensation or compensation of multiple file use the hio_korr program directly</h3>

<div class="content-container fit-content">
<form method="post" action="/cgi-bin/celltest/utilities.cgi" enctype="multipart/form-data" name="comp">
[% INCLUDE print_hidden.tt %]
<input type="hidden" name="action" value="imp_comp">
<table class="imp_comp"<tbody>
<tr><th>Measure file (i2b format!)</th><th>Compensation file (i2b format!)</th></tr>
<tr><th><textarea name="measure" rows="25" class="textfield" wrap="off">[% data.measure %]</textarea></th><th><textarea name="compensation" rows="25" class="textfield" wrap="off">[% data.compensation %]</textarea></th></tr>
<tr><th>Compensation mode: <label>
<input type="radio" name="mode" value="Add" [% IF data.mode == 'Add' %]checked=checked[% END %]>Add</label><label><input type="radio" name="mode" value="Subtract" [% IF data.mode == 'Subtract' %]checked=checked[% END %]>Subtract</label><label><input type="radio" name="mode" value="Multiply" [% IF data.mode == 'Multiply' %]checked=checked[% END %]>Multiply</label><label><input type="radio" name="mode" value="Divide" [% IF data.mode == 'Divide' %]checked=checked[% END %]>Divide</label></th></td><td>
<button style="float:right;">Calculate</button></td></tr>
</tbody></table>
</form>
</div>

<style>
.imp_comp {
   text-align:left;
}

.imp_comp th, .imp_comp td {
   padding:5px;
}

.textfield {
   min-width:500px;
}
</style>