diff --git a/server/web2py/applications/vidjil/views/sample_set/add.html b/server/web2py/applications/vidjil/views/sample_set/add.html new file mode 100644 index 0000000000000000000000000000000000000000..c6a5da8ec0a44e25845d11539dcdbdd9e30dc5c3 --- /dev/null +++ b/server/web2py/applications/vidjil/views/sample_set/add.html @@ -0,0 +1,34 @@ +{{extend 'db_layout.html'}} + +
+ + + + + + + + + + + + + + + + + + + + + + + +
*
+ {{= SELECT(*[OPTION(g['name'], _value=g['id']) for g in groups], _name="sample_set_group", _value=master_group, value=master_group) }} +
+
+ +
+ (* required fields) +
diff --git a/server/web2py/applications/vidjil/views/sample_set/all.html b/server/web2py/applications/vidjil/views/sample_set/all.html new file mode 100644 index 0000000000000000000000000000000000000000..d54bcf4715d13523fc2d12fca1bfc1b7b7cca797 --- /dev/null +++ b/server/web2py/applications/vidjil/views/sample_set/all.html @@ -0,0 +1,92 @@ +{{extend 'db_layout.html'}} +{{import vidjil_utils}} + +{{total_file_count = 0 ; total_size = 0}} + +

+ +
+
+ search + +
+
+ +
+ + + + + + + +{{if isAdmin:}} {{pass}} +{{if isAdmin:}} {{pass}} + + + + + + + + + + + {{for data in query :}} + + + + +{{if isAdmin:}} {{pass}} +{{if isAdmin:}} {{pass}} + + {{ total_file_count += data.file_count ; total_size += data.size }} + +{{if isAdmin:}} {{else:}} {{pass}} + {{if data.has_permission:}} + + + {{else:}} {{pass}} + + {{pass}} + +
name info results groups creator files
+ {{= data.get_name()}} + {{=data.get_info()}} + {{ configs = [] }} + {{for conf in data.conf_list :}} + {{filename = patient_name + " (" + conf['name'] + ")"}} + {{if conf['fused_file'] is not None :}} + {{ configs.append(str(A(conf['name'], _href="index.html?sample_set=" + str(row['id']) + "&config=" + str(conf['id']), _type="text/html", + _onclick="event.preventDefault();event.stopPropagation();if( event.which == 2 ) { window.open(this.href); } else { db.load_data( { 'sample_set' : '" + str(data.id) + "' , 'config' : " + str(conf['id']) + " }, '" + filename + "' ); }"))) }} + {{else:}} + {{ configs.append(conf['name']) }} + {{pass}} + {{pass}} + {{= XML(", ".join(configs)) }} + {{=data.groups}} {{=data.creator}} {{=data.file_count}} ({{=vidjil_utils.format_size(data.size)}})
+
+
+ +
+
+ +{{if auth.can_create_patient():}} + + new sample_set + compare samples/patients +{{else:}} + +{{pass}} + +
+
+
+ {{ =len(query) }} sample_set, {{ =total_file_count }} files ({{ =vidjil_utils.format_size(total_size) }}) +
+
diff --git a/server/web2py/applications/vidjil/views/sample_set/edit.html b/server/web2py/applications/vidjil/views/sample_set/edit.html new file mode 100644 index 0000000000000000000000000000000000000000..fddad6761ea0e29e446f7ff83f29a6c4d744eb49 --- /dev/null +++ b/server/web2py/applications/vidjil/views/sample_set/edit.html @@ -0,0 +1,33 @@ +{{extend 'db_layout.html'}} + +{{ +info = db.generic_sample_set[request.vars["id"]] +}} + +
+ + + + + + + + + + + + + + + + + + + +
*
+ +
+ +
+ (* required fields) +