Commit 5da33014 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

views/file/edit.html: Puts runs and pre-process in production

This two views (file/add.html and file/edit.html) should definitely be
merged. The form has been renamed as for file/add.html.

Fix 6d28e261
parent 6feadff2
......@@ -12,31 +12,32 @@ info = db.sequence_file[request.vars["id"]]
<input type="hidden" id="file_id" name="id" value="{{=request.vars["id"]}}" >
<table>
<tbody>
<tr class='devel-mode db_table_split' ><td colspan="2"> sequence file(s) </td></tr>
<tr class='devel-mode'>
<td><label for="pre_process" id="pre_process__label">pre-process: </label></td>
<tr class='db_table_split' ><td colspan="2"> sequence file(s) </td></tr>
<tr>
<td><label for="pre_process" id="pre_process__label">pre-process scenario: </label></td>
<td><select id="pre_process" name="pre_process" onChange="db.pre_process_onChange()">
<option data-file="1" value="0">none</option>
<option data-file="1" value="0">no pre-process (1 file)</option>
{{for row in pre_process_list :}}
<option data-file="{{=row["file"]}}" value="{{=row["id"]}}" {{if row["id"]==file.pre_process_id :}}selected{{pass}}>
<option title="{{=row["info"]}}" data-file="{{=row["file"]}}" value="{{=row["id"]}}" {{if row["id"]==file.pre_process_id :}}selected{{pass}}>
{{=row["id"]}} &ndash; {{=row["name"]}}
</option> {{pass}}
</select>
</td>
<td></td>
</tr>
<tr id="file_field">
<td ><label for="file" id="file__label"> file </label></td>
<td ><label for="file" id="file__label"> file 1 </label></td>
<td ><input class="upload_field" id="upload_file" type="file"></td>
<td >* (.fa, .fastq, .fa.gz, .fastq.gz, .clntab) </td>
</tr>
<tr id="file2_field">
<td class='devel-mode'><label for="file2" id="file2__label"> file2 </label></td>
<td class='devel-mode'><input class="upload_field" id="upload_file2" type="file" ></td>
<td class='devel-mode'>* (.fa, .fastq, .fa.gz, .fastq.gz, .clntab) </td>
<td><label for="file2" id="file2__label"> file 2 </label></td>
<td><input class="upload_field" id="upload_file2" type="file" ></td>
<td>* (.fa, .fastq, .fa.gz, .fastq.gz, .clntab) </td>
</tr>
<tr class='devel-mode db_table_split' ><td colspan="2"> sample set(s) </td></tr>
<tr class='devel-mode'>
<tr class='db_table_split' ><td colspan="2"> patient and run </td></tr>
<tr>
<td><label for="patient_id" id="patient_id__label">patient: </label></td>
<td><input list="patients" id="patient_list" name="patient_id" type="text" size="80" value="{{=patient}}"></td>
<datalist id="patients">
......@@ -44,9 +45,9 @@ info = db.sequence_file[request.vars["id"]]
<option value="{{=row}}">
{{pass}}
</datalist>
<td rowspan="2">* you must associate a sequence file with at least one patient or run</td>
<td rowspan="2">* you must associate this upload with at least one patient or run</td>
</tr>
<tr class='devel-mode'>
<tr>
<td><label for="run_id" id="run_id__label">run: </label></td>
<td><input list="runs" id="run_list" name="run_id" type="text" size="80" value="{{=run}}"></td>
<datalist id="runs">
......@@ -58,7 +59,7 @@ info = db.sequence_file[request.vars["id"]]
</tr>
<tr class='devel-mode db_table_split' ><td colspan="2"> infos </td></tr>
<tr class='db_table_split' ><td colspan="2"> sample information </td></tr>
<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" size="20" value="{{=file.sampling_date}}"></td>
......
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