Commit fa83ec04 authored by HERBERT Ryan's avatar HERBERT Ryan

sample_set add sample type to view

In order to make it more clear what kind of sample set is being viewed
parent aeb86e13
...@@ -219,6 +219,7 @@ def all(): ...@@ -219,6 +219,7 @@ def all():
return dict(query = result, return dict(query = result,
type = type,
isAdmin = isAdmin, isAdmin = isAdmin,
reverse = False) reverse = False)
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
{{if isAdmin:}} <td onclick="db.call('sample_set/permission', {'id' :'{{=data.id}}'} )" > <i class="icon-key" title="set permissions"></i> </td> {{else:}} <td></td> {{pass}} {{if isAdmin:}} <td onclick="db.call('sample_set/permission', {'id' :'{{=data.id}}'} )" > <i class="icon-key" title="set permissions"></i> </td> {{else:}} <td></td> {{pass}}
{{if data.has_permission:}} {{if data.has_permission:}}
<td onclick="db.call('sample_set/edit', {'id' :'{{=data.id}}'} )" > <i class="icon-pencil-2" title="{{='edit %s information' % 'sample_set'}}"></i> </td> <td onclick="db.call('sample_set/edit', {'id' :'{{=data.id}}'} )" > <i class="icon-pencil-2" title="{{='edit %s information' % 'sample_set'}}"></i> </td>
<td onclick="db.call('sample_set/confirm', {'id' :'{{=data.id}}'} )" > <i class="icon-erase" title="{{='delete %s' % 'sample_set'}}"></i> </td> <td onclick="db.call('sample_set/confirm', {'id' :'{{=data.id}}'} )" > <i class="icon-erase" title="{{='delete %s' % type}}"></i> </td>
{{else:}} <td></td><td></td>{{pass}} {{else:}} <td></td><td></td>{{pass}}
</tr> </tr>
{{pass}} {{pass}}
...@@ -78,15 +78,15 @@ ...@@ -78,15 +78,15 @@
<div class="db_block_left"> <div class="db_block_left">
{{if auth.can_create_patient():}} {{if auth.can_create_patient():}}
<span class="button2" onclick="db.call('sample_set/add')"> + new sample_set </span> <span class="button2" onclick="db.call('sample_set/add')"> + new {{=type}} </span>
<span class="button2" onclick="db.call('sample_set/custom', {'filter': '{{=request.vars['filter']}}' })"> compare samples/patients </span> <span class="button2" onclick="db.call('sample_set/custom', {'filter': '{{=request.vars['filter']}}' })"> compare samples/patients </span>
{{else:}} {{else:}}
<!-- <span class="button2 inactive" onclick="db.call('sample_set/add')" title="you don't have permission to create new patient"> add sample_set </span> --> <!-- <span class="button2 inactive" onclick="db.call('sample_set/add')" title="you don't have permission to create new {{=type}}"> add sample_set </span> -->
{{pass}} {{pass}}
</div> </div>
<div class="db_block_right"> <div class="db_block_right">
<br /> <br />
{{ =len(query) }} sample_set, {{ =total_file_count }} files ({{ =vidjil_utils.format_size(total_size) }}) {{ =len(query) }} {{=type}}s, {{ =total_file_count }} files ({{ =vidjil_utils.format_size(total_size) }})
</div> </div>
</div> </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