Commit d5522533 authored by Marc Duez's avatar Marc Duez

server : file views, put the file input outside the <form> to handle it separatly

parent dab56f09
{{extend 'db_layout.html'}} {{extend 'db_layout.html'}}
<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>
<form id="upload_form" action="DB_ADDRESS/file/add_form" enctype="multipart/form-data" method="post"> <form id="upload_form" action="DB_ADDRESS/file/add_form" enctype="multipart/form-data" method="post">
<input type="hidden" name="patient_id" value="{{=request.vars["id"]}}" > <input type="hidden" name="patient_id" value="{{=request.vars["id"]}}" >
<table> <table>
<tbody> <tbody>
<tr>
<td >
<label for="file" id="file__label"> file </label>
</td>
<td >
<input id="upload_file" type="file" name="file" >
</td>
<td >
</td>
</tr>
<tr> <tr>
<td> <td>
<label for="sampling_date" id="sampling_date__label">sampling date: </label> <label for="sampling_date" id="sampling_date__label">sampling date: </label>
......
...@@ -4,8 +4,19 @@ ...@@ -4,8 +4,19 @@
info = db.sequence_file[request.vars["id"]] info = db.sequence_file[request.vars["id"]]
}} }}
<div>
<table>
<tr>
<td >
<input id="upload_file" type="file" name="file" >
</td>
<td >
</td>
</tr>
</table>
</div>
<form id="data_form" action="DB_ADDRESS/file/edit_form" enctype="multipart/form-data" method="post"> <form id="upload_form" action="DB_ADDRESS/file/edit_form" enctype="multipart/form-data" method="post">
<input type="hidden" id="file_id" name="id" value="{{=request.vars["id"]}}" > <input type="hidden" id="file_id" name="id" value="{{=request.vars["id"]}}" >
<table> <table>
......
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