Commit 4b8f6fc9 authored by Marc Duez's avatar Marc Duez

server : update config views

parent 55009115
......@@ -4,57 +4,47 @@
<table>
<tbody>
<tr>
<td >
<label for="config_name" id="config_name__label"> Name: </label>
</td>
<td >
<input class="string" id="config_name" name="config_name" type="text" value="">
</td>
<td >
</td>
<td > <label for="config_name" id="config_name__label">Name: </label> </td>
<td > <input class="string" id="config_name" name="config_name" type="text" value=""> </td>
<td > </td>
</tr>
<tr>
<td>
<label for="config_germline" id="config_germline__label"> germline: </label>
</td>
<td>
<select id="config_germline" name="config_germline">
<td><label for="config_germline" id="config_germline__label">Germline: </label></td>
<td><select id="config_germline" name="config_germline">
<option value="TRG">TRG</option>
<option value="IGH">IGH</option>
</select>
</td>
<td>
</td>
<option value="multi">multi</option>
</select></td>
<td></td>
</tr>
<tr>
<td>
<label for="config_command" id="config_command__label">Command: </label>
</td>
<td>
<textarea class="text" cols="40" id="config_command" name="config_command" rows="4"></textarea>
</td>
<td>
</td>
<td> <label for="config_program" id="config_program__label">Program: </label> </td>
<td><select id="config_program" name="config_program">
<option value="none">none</option>
<option value="vidjil">vidjil</option>
<option value="euro-mrd pipeline">euro-mrd pipeline</option>
</select></td>
<td> </td>
</tr>
<tr>
<td>
<label for="config_info" id="config_info__label">Info: </label>
</td>
<td>
<textarea class="text" cols="40" id="config_info" name="config_info" rows="10"></textarea>
</td>
<td>
</td>
<td> <label for="config_command" id="config_command__label">Command: </label> </td>
<td> <textarea class="text" cols="60" id="config_command" name="config_command" rows="2"></textarea> </td>
<td> </td>
</tr>
<tr>
<td>
</td>
<td >
<span class="button" onclick="db.call('config/index')"> back to list </span>
<input type="submit" value="Soumettre" class="btn">
</td>
<td>
</td>
<td> <label for="config_fuse_command" id="config_fuse_command__label">Fuse command: </label> </td>
<td> <textarea class="text" cols="60" id="config_fuse_command" name="config_fuse_command" rows="2"></textarea> </td>
<td> </td>
</tr>
<tr>
<td> <label for="config_info" id="config_info__label">Info: </label> </td>
<td> <textarea class="text" cols="60" id="config_info" name="config_info" rows="10"></textarea> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td ><input type="submit" value="Soumettre" class="btn"> </td>
<td> </td>
</tr>
</tbody>
</table>
......
......@@ -9,28 +9,41 @@ info = db.config[request.vars["id"]]
<table>
<tbody>
<tr>
<td > <label for="config_name" id="config_name__label"> Name: </label> </td>
<td > <input class="string" id="config_name" name="config_name" type="text" value="{{=info.name}}"> </td> <td >
</td>
<td > <label for="config_name" id="config_name__label">Name: </label> </td>
<td > <input class="string" id="config_name" name="config_name" type="text" value="{{=info.name}}"> </td>
<td > </td>
</tr>
<tr>
<td><label for="config_germline" id="config_germline__label">Germline: </label></td>
<td><select id="config_germline" name="config_germline">
<option value="TRG" {{if info.germline == "TRG":}}selected="selected"{{pass}}>TRG</option>
<option value="IGH" {{if info.germline == "IGH":}}selected="selected"{{pass}}>IGH</option>
<option value="multi" {{if info.germline == "multi":}}selected="selected"{{pass}}>multi</option>
</select></td>
<td></td>
</tr>
<tr>
<td> <label for="config_program" id="config_program__label">Program: </label> </td>
<td><select id="config_program" name="config_program">
<option value="none" {{if info.program == "none":}}selected="selected"{{pass}}>none</option>
<option value="vidjil" {{if info.program == "vidjil":}}selected="selected"{{pass}}>vidjil</option>
<option value="euro-mrd pipeline" {{if info.program == "euro-mrd pipeline":}}selected="selected"{{pass}}>euro-mrd pipeline</option>
</select></td>
<td> </td>
</tr>
<tr>
<td> <label for="config_command" id="config_command__label">Command: </label> </td>
<td> <input class="string" id="config_command" name="config_command" type="text" value="{{=info.command}}"> </td>
<td> <textarea class="text" cols="60" id="config_command" name="config_command" rows="2">{{=info.command}}</textarea> </td>
<td> </td>
</tr>
<tr>
<td><label for="config_germline" id="config_germline__label"> germline: </label></td>
<td>
<select id="config_germline" name="config_germline">
<option value="TRG" {{if info.germline == "TRG":}}selected="selected"{{pass}}>TRG</option>
<option value="IGH" {{if info.germline == "IGH":}}selected="selected"{{pass}}>IGH</option>
</select>
</td>
<td></td>
<td> <label for="config_fuse_command" id="config_fuse_command__label">Fuse command: </label> </td>
<td> <textarea class="text" cols="60" id="config_fuse_command" name="config_fuse_command" rows="2">{{=info.fuse_command}}</textarea> </td>
<td> </td>
</tr>
<tr>
<td> <label for="config_info" id="config_info__label">Info: </label> </td>
<td> <textarea class="text" cols="40" id="config_info" name="config_info" rows="10"> {{=info.info}} </textarea> </td>
<td> <textarea class="text" cols="80" id="config_info" name="config_info" rows="10">{{=info.info}}</textarea> </td>
<td> </td>
</tr>
<tr>
......
......@@ -10,8 +10,9 @@
<table class="db_table" id="table">
<thead>
<tr><td class="column2"> name </td>
<td class="column2"> germline </td>
<td class="column1"> command </td>
<td class="column1"> program </td>
<td class="column1"> germline </td>
<td class="column2"> command </td>
<td> info </td>
<td class="column5"> </td>
<td class="column5"> </td>
......@@ -24,6 +25,7 @@
for row in query :}}
<tr>
<td> {{=row.name }} </td>
<td> {{=row.program }} </td>
<td> {{=row.germline }} </td>
<td> {{=row.command }} </td>
<td> {{=row.info }} </td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment