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

{{
HERBERT Ryan's avatar
HERBERT Ryan committed
4
info = db.generic[request.vars["id"]]
5 6 7 8 9 10 11 12 13 14 15 16 17
}}

<form id="data_form" action="DB_ADDRESS/sample_set/edit_form" enctype="multipart/form-data" method="post">
    <input type="HIDDEN" id="sample_set_id" name="id" value="{{=request.vars["id"]}}"> 
    <table>
        <tbody>
            <tr>
                <td > <label for="sample_set_name" id="sample_set_name__label">Name: </label> </td>
                <td > <input class="string" id="sample_set_name" name="name" type="text" value="{{=info.name}}"><span>*</span></td>
                <td > </td>
            </tr>
            <tr>
                <td> <label for="sample_set_info" id="sample_set_info__label">Info: </label> </td> 
18
                <td> <textarea onfocus="new VidjilAutoComplete().setupAtWho(this);" data-needs-atwho="true" data-group-id="{{=group_id}}" class="text" cols="40" id="sample_set_info" name="info" rows="10">{{=info.info}}</textarea> </td>
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
                <td></td>
            </tr>
            <tr>
                <td> </td>
                <td> <input type="submit" value="Soumettre" class="btn"> </td>
                <td> </td>
            </tr>
        </tbody>
    </table>
    
</form>

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