edit.html 1.85 KB
Newer Older
1 2
{{extend 'db_layout.html'}}

3 4 5 6
{{
info = db.config[request.vars["id"]]
}}

7
<form id="data_form" action="DB_ADDRESS/config/edit_form" enctype="multipart/form-data" method="post">
8
    <input type="HIDDEN" id="config_id" name="id" value="{{=request.vars["id"]}}"> 
9 10 11 12 13 14 15 16 17 18 19 20
    <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>
            </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> </td>
            </tr>
Marc Duez's avatar
Marc Duez committed
21 22 23 24
            <tr>
                <td><label for="config_germline" id="config_germline__label"> germline: </label></td>
                <td>
                    <select id="config_germline" name="config_germline">
25 26
                        <option value="TRG" {{if info.germline == "TRG":}}selected="selected"{{pass}}>TRG</option>
                        <option value="IGH" {{if info.germline == "IGH":}}selected="selected"{{pass}}>IGH</option>
Marc Duez's avatar
Marc Duez committed
27 28 29 30
                    </select>
                </td>
                <td></td>
            </tr>
31 32 33 34 35 36 37
            <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> </td>
            </tr>
            <tr>
                <td> </td>
38
                <td ><input type="submit" value="Soumettre" class="btn"> </td>
39 40 41 42 43
                <td> </td>
            </tr>
        </tbody>
    </table>
</form>