add.html 1.68 KB
Newer Older
1
2
{{extend 'db_layout.html'}}

3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<div>
    <table>
        <tr>
            <td >
                <label for="file" id="file__label"> file </label>
            </td>
            <td >
                <input id="upload_file" type="file" name="file" >
            </td>
            <td >
            </td>
        </tr>
    </table>
</div>

18
<form id="upload_form" action="DB_ADDRESS/file/add_form" enctype="multipart/form-data" method="post">
19
20
21
22
23
24
25
26
27
28
    <input type="hidden" name="patient_id" value="{{=request.vars["id"]}}" >
    
    <table>
        <tbody>
            <tr>
                <td>
                    <label for="sampling_date" id="sampling_date__label">sampling date: </label>
                </td>
                <td>
                    <input class="date" id="sampling_date" name="sampling_date" type="text" value="">
Marc Duez's avatar
Marc Duez committed
29
                    <span>(format: yyyy-mm-dd)</span>
30
31
32
33
34
35
36
37
38
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    <label for="file_info" id="file_info__label">Info: </label>
                </td>
                <td>
39
                    <textarea class="text" cols="40" id="file_info" name="file_info" rows="10"></textarea>
40
41
42
43
44
45
46
47
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td >
Marc Duez's avatar
Marc Duez committed
48
                    <span class="button" onclick="db.call('patient/info', { id : '{{=request.vars['id']}}' } )"> back to list </span>
49
50
51
52
53
54
55
56
                    <input type="submit" value="Soumettre" class="btn">
                </td>
                <td>
                </td>
            </tr>
        </tbody>
    </table>
</form>