Commit 4ce7e521 authored by Marc Duez's avatar Marc Duez

server / less : add some style to database info

parent c4d39ad9
......@@ -885,3 +885,45 @@ span .substitution{
left: -webkit-calc(~"50% - 480px");
left: calc(~"50% - 480px");
}
.db_table{
width: 100%;
border-collapse: collapse;
}
.db_table .column1{
width: 20%;
}
.db_table .column2{
width: 100px;
}
.db_table .column4{
width: 50px;
}
.db_table .column5{
width: 20px;
}
.db_table th{
border-bottom: solid;
border-color: @border;
border-width: 1px;
}
.db_table tr{
border-bottom: solid;
border-color: @border;
border-width: 1px;
cursor: pointer;
}
.db_table tr:hover{
background: @highlight;
}
.db_table td{
border-width:0px;
}
......@@ -4,12 +4,13 @@
<div>
<h3>{{=message}}</h3>
<table >
<tr><td> name </td>
<td> standard </td>
<table class="db_table">
<tr><td class="column2"> name </td>
<td class="column2"> standard </td>
<td> info </td>
<td> command </td>
<td> </td>
<td class="column5"> </td>
<td class="column5"> </td>
</tr>
{{
query = None
......
......@@ -4,20 +4,20 @@
<div>
<h3>{{=message}}</h3>
<table >
<tr><td> name </td>
<td> birth </td>
<table class="db_table">
<tr><td class="column1"> name </td>
<td class="column2"> birth </td>
<td> info </td>
<td> </td>
<td> </td>
<td class="column5"> </td>
<td class="column5"> </td>
</tr>
{{
query = None
c_id = ""
query = db(db.patient).select()
for row in query :}}
<tr>
<td onclick="db.call('patient/info', {'id' :'{{=row.id}}'} )" > {{=row.last_name + " " + row.first_name }} </td>
<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>
......
......@@ -26,16 +26,16 @@
</select>
</span>
</div>
</div></br>
<table>
</div>
<table class="db_table">
<thead>
<tr><td> file_name </td>
<td> </td>
<td> </td>
<td> </td>
<td> sampling date </td>
<tr><td class="column1"> file_name </td>
<td class="column2"> sampling date </td>
<td> info </td>
<td> status </td>
<td class="column4"> status </td>
<td class="column5"> </td>
<td class="column5"> </td>
<td class="column5"> </td>
</tr>
</thead>
<tbody>
......@@ -53,9 +53,6 @@
for row in query :}}
<tr>
<td> {{ (filename, str) = db.sequence_file.data_file.retrieve(row.sequence_file.data_file)}} {{=filename}}</td>
<td> <a href="{{=URL('download', scheme='http', args=row.sequence_file.data_file)}}" >dl</a> </td>
<td onclick="db.call('file/edit', {'id' :'{{=row.sequence_file.id}}', 'patient_id' :'{{=request.vars['id']}}'} )" > e </td>
<td onclick="db.call('file/confirm', {'id' :'{{=row.sequence_file.id}}', 'patient_id' :'{{=request.vars['id']}}'} )" > X </td>
<td> {{=row.sequence_file.sampling_date}} </td>
<td> {{=row.sequence_file.info}} </td>
<td> {{if row.data_file.id == None :}}
......@@ -64,11 +61,13 @@
ready
{{pass}}
</td>
<td> <a href="{{=URL('download', scheme='http', args=row.sequence_file.data_file)}}" >dl</a> </td>
<td onclick="db.call('file/edit', {'id' :'{{=row.sequence_file.id}}', 'patient_id' :'{{=request.vars['id']}}'} )" > e </td>
<td onclick="db.call('file/confirm', {'id' :'{{=row.sequence_file.id}}', 'patient_id' :'{{=request.vars['id']}}'} )" > X </td>
</tr>
{{pass}}
</tbody>
</table>
</br>
<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>
......
......@@ -4,11 +4,11 @@
<div>
<h3>{{=message}}</h3>
<table >
<tr><td> name </td>
<table class="db_table">
<tr class="db_head"><td class="column1"> name </td>
<td> info </td>
<td> </td>
<td> </td>
<td class="column5"> </td>
<td class="column5"> </td>
</tr>
{{
query = None
......
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