Commit 900cf3f6 authored by Marc Duez's avatar Marc Duez

server : update views with a table

parent 329831fe
......@@ -6,29 +6,35 @@
<div>
<h3>{{=message}}</h3>
<table class="db_table">
<tr><td class="column2"> name </td>
<td class="column2"> standard </td>
<td> info </td>
<td> command </td>
<td class="column5"> </td>
<td class="column5"> </td>
</tr>
{{
query = None
c_id = ""
query = db(db.config.standard_id==db.standard_file.id).select()
for row in query :}}
<tr>
<td> {{=row.config.name }} </td>
<td> {{=row.standard_file.name}} </td>
<td> {{=row.config.info }} </td>
<td> {{=row.config.command }} </td>
<td onclick="db.call('config/edit', {'id' :'{{=row.config.id}}'} )" > e </td>
<td onclick="db.call('config/confirm', {'id' :'{{=row.config.id}}'} )" > X </td>
</tr>
{{pass}}
</table>
<div id="db_table_container">
<table class="db_table" id="table">
<thead>
<tr><td class="column2"> name </td>
<td class="column2"> standard </td>
<td> info </td>
<td> command </td>
<td class="column5"> </td>
<td class="column5"> </td>
</tr>
</thead>
{{
query = None
c_id = ""
query = db(db.config.standard_id==db.standard_file.id).select()
for row in query :}}
<tr>
<td> {{=row.config.name }} </td>
<td> {{=row.standard_file.name}} </td>
<td> {{=row.config.info }} </td>
<td> {{=row.config.command }} </td>
<td onclick="db.call('config/edit', {'id' :'{{=row.config.id}}'} )" > e </td>
<td onclick="db.call('config/confirm', {'id' :'{{=row.config.id}}'} )" > X </td>
</tr>
{{pass}}
</table>
<table class="db_table" id="db_fixed_header"></table>
</div>
<span class="button" onclick="db.call('config/add')"> new config </span>
</div>
......
......@@ -6,27 +6,33 @@
<div>
<h3>{{=message}}</h3>
<table class="db_table">
<tr><td class="column1"> name </td>
<td class="column2"> birth </td>
<td> info </td>
<td class="column5"> </td>
<td class="column5"> </td>
</tr>
{{
query = None
c_id = ""
query = db(db.patient).select()
for row in query :}}
<tr onclick="db.call('patient/info', {'id' :'{{=row.id}}'} )" >
<td> {{=row.last_name + " " + row.first_name }} </td>
<td> {{=row.birth }} </td>
<td> {{=row.info }} </td>
<td onclick="db.call('patient/edit', {'id' :'{{=row.id}}'} )" > e </td>
<td onclick="db.call('patient/confirm', {'id' :'{{=row.id}}'} )" > X </td>
</tr>
{{pass}}
</table>
<div id="db_table_container">
<table class="db_table" id="table">
<thead>
<tr><td class="column1"> name </td>
<td class="column2"> birth </td>
<td> info </td>
<td class="column5"> </td>
<td class="column5"> </td>
</tr>
</thead>
{{
query = None
c_id = ""
query = db(db.patient).select()
for row in query :}}
<tr onclick="db.call('patient/info', {'id' :'{{=row.id}}'} )" >
<td> {{=row.last_name + " " + row.first_name }} </td>
<td> {{=row.birth }} </td>
<td> {{=row.info }} </td>
<td onclick="db.call('patient/edit', {'id' :'{{=row.id}}'} )" > e </td>
<td onclick="db.call('patient/confirm', {'id' :'{{=row.id}}'} )" > X </td>
</tr>
{{pass}}
</table>
<table class="db_table" id="db_fixed_header"></table>
</div>
<span class="button" onclick="db.call('patient/add')"> add patient </span>
</div>
......
......@@ -29,7 +29,9 @@
</span>
</div>
</div>
<table class="db_table">
<div id="db_table_container">
<table class="db_table" id="table">
<thead>
<tr><td class="column1"> file_name </td>
<td class="column2"> sampling date </td>
......@@ -51,7 +53,7 @@
& (db.data_file.config_id==str(config_id) )
)
)
for row in query :}}
<tr>
<td> {{ (filename, str) = db.sequence_file.data_file.retrieve(row.sequence_file.data_file)}} {{=filename}}</td>
......@@ -70,6 +72,9 @@
{{pass}}
</tbody>
</table>
<table class="db_table" id="db_fixed_header"></table>
</div>
<span class="button" onclick="db.call('patient/index')"> back to list </span>
<span class="button" onclick="db.call('file/add', { 'id' : '{{=request.vars["id"]}}' } )"> add file </span>
<span class="button" onclick="db.load( { 'patient_id' : '{{=request.vars["id"]}}' , 'config_id' : {{=config_id}} } )" > see result </span>
......
......@@ -6,25 +6,31 @@
<div>
<h3>{{=message}}</h3>
<table class="db_table">
<tr class="db_head"><td class="column1"> name </td>
<td> info </td>
<td class="column5"> </td>
<td class="column5"> </td>
</tr>
{{
query = None
c_id = ""
query = db(db.standard_file).select()
for row in query :}}
<tr>
<td> {{=row.name }} </td>
<td> {{=row.info}} </td>
<td onclick="db.call('standard/edit', {'id' :'{{=row.id}}'} )" > e </td>
<td onclick="db.call('standard/confirm', {'id' :'{{=row.id}}'} )" > X </td>
</tr>
{{pass}}
</table>
<div id="db_table_container">
<table class="db_table" id="table">
<thead>
<tr class="db_head"><td class="column1"> name </td>
<td> info </td>
<td class="column5"> </td>
<td class="column5"> </td>
</tr>
</thead>
{{
query = None
c_id = ""
query = db(db.standard_file).select()
for row in query :}}
<tr>
<td> {{=row.name }} </td>
<td> {{=row.info}} </td>
<td onclick="db.call('standard/edit', {'id' :'{{=row.id}}'} )" > e </td>
<td onclick="db.call('standard/confirm', {'id' :'{{=row.id}}'} )" > X </td>
</tr>
{{pass}}
</table>
<table class="db_table" id="db_fixed_header"></table>
</div>
<span class="button" onclick="db.call('standard/add')"> add standard_file </span>
</div>
......
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