edit.html 2.52 KB
Newer Older
marc's avatar
marc committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
{{extend 'db_layout.html'}}

{{
info = db.run[request.vars["id"]]
}}

<form id="data_form" action="DB_ADDRESS/run/edit_form" enctype="multipart/form-data" method="post">
    <input type="HIDDEN" id="run_id" name="id" value="{{=request.vars["id"]}}"> 
    <table>
        <tbody>
            <tr>
                <td><label for="run_id_label" id="run_id_label__label">Run ID:</label></td>
                <td><input class="date" id="run_id_label" name="id_label" type="text" value="{{=info.id_label}}"><span></span></td>
                <td></td>
            </tr>
            <tr>
                <td > <label for="run_name" id="run_name__label">Name: </label> </td>
                <td > <input class="string" id="run_name" name="name" type="text" value="{{=info.name}}"><span>*</span></td>
                <td > </td>
            </tr>
            <tr>
                <td> <label for="run_run_date" id="run_run_date__label">Date: </label></td>
                <td> <input class="date" id="run_run_date" name="run_date" type="text" value="{{if info.run_date:}}{{=info.run_date}}{{pass}}"><span>(yyyy-mm-dd)</span></td>
                <td> </td>
            </tr>
            <tr>
                <td> <label for="run_info" id="run_info__label">Info: </label> </td> 
28
                <td> <textarea onfocus="new VidjilAutoComplete().setupAtWho(this);" data-needs-atwho="true" data-group-id="{{=group_id}}" class="text" cols="40" id="run_info" name="info" rows="10">{{=info.info}}</textarea> </td>
marc's avatar
marc committed
29 30
                <td></td>
            </tr>
marc's avatar
marc committed
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
			<tr>
			<td><label for="sequencer" id="sequencer__label">Sequencer: </label></td>
			<td><input list="sequencer" id="sequencer" name="sequencer" type="text" size="40" value="{{=info.sequencer}}"></td>
                  <datalist id="sequencer">
                  {{for row in sequencer_list :}}
                      <option value="{{=row['sequencer']}}">
                  {{pass}}
                  </datalist>
			</tr>
			<tr>
			<td><label for="pcr" id="pcr__label">PCR </label></td>
			<td><input list="pcr" id="pcr" name="pcr" type="text" size="40" value="{{=info.pcr}}"></td>
                  <datalist id="pcr">
                  {{for row in pcr_list :}}
                      <option value="{{=row['pcr']}}">
                  {{pass}}
                  </datalist>
			</tr>
marc's avatar
marc committed
49 50 51 52 53 54 55 56 57 58 59 60 61
            <tr>
                <td> </td>
                <td> <input type="submit" value="Soumettre" class="btn"> </td>
                <td> </td>
            </tr>
        </tbody>
    </table>
    
</form>

<div>
    (* required fields)
</div>