Commit 855e8d0c authored by Marc Duez's avatar Marc Duez
Browse files

server : update views

parent 6155a06b
......@@ -5,9 +5,12 @@
<a class="button" onclick="db.call('results_file/index');">.vidjil file list</a>
</br>Database maintenace:
</br>Database maintenance:
<a class="button" href="/vidjil/appadmin/index">administration</a>
<a class="button" onclick="db.call('admin/repair_missing_files');">fix missing files</a>
<a class="button" onclick="db.call('admin/repair');">repair db</a>
<a class="button" onclick="db.call('admin/make_backup');">make backup</a>
</br>
<hr>
......
......@@ -3,6 +3,15 @@
<h2>{{=T( request.args(0).replace('_',' ').capitalize() )}}</h2>
<div>
{{if db(db.auth_user.id > 0).count() == 0:}}
<a class="button" onclick="db.call('default/init_db');">init database</a>
<a class="button" onclick="db.call('default/init_from_csv');">load backup</a>
{{else:}}
{{form['_id'] ="login_form"}}
{{=form}}
......@@ -52,6 +61,7 @@ This software is for research use only and comes with no warranty.
concerning storage and processing of health-related personal data.
</p>
{{pass}}
{{pass}}
</div>
......@@ -56,9 +56,8 @@
</tr>
</thead>
<tbody>
{{for row in query :}}
{{if row.results_file.scheduler_task_id is None :}}
{{if row.results_file.scheduler_task_id is None or db.scheduler_task[row.results_file.scheduler_task_id ] is None:}}
{{status = '' }}
{{else:}}
{{status = db.scheduler_task[row.results_file.scheduler_task_id ].status }}
......
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