Commit f6b3d95d authored by Marc Duez's avatar Marc Duez

server : use confirm view instead of warning(javascript function)

parent 9bf0cda6
......@@ -22,6 +22,7 @@
<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>
......
......@@ -21,7 +21,7 @@
<td> {{=row.birth }} </td>
<td> {{=row.info }} </td>
<td onclick="db.call('patient/edit', {'id' :'{{=row.id}}'} )" > e </td>
<td onclick="db.warning(msg.delete_patient, 'db.request(\'patient/delete\', {\'id\' :\'{{=row.id}}\'} )' ) " > X </td>
<td onclick="db.call('patient/confirm', {'id' :'{{=row.id}}'} )" > X </td>
</tr>
{{pass}}
</table>
......
......@@ -55,7 +55,7 @@
<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.warning(msg.delete_file, 'db.request(\'file/delete\', {\'id\' :\'{{=row.sequence_file.id}}\'} )' ) " > X </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 :}}
......
......@@ -19,7 +19,7 @@
<td> {{=row.name }} </td>
<td> {{=row.info}} </td>
<td onclick="db.call('standard/edit', {'id' :'{{=row.id}}'} )" > e </td>
<td onclick="db.warning(msg.delete_standard, 'db.request(\'standard/delete\', {\'id\' :\'{{=row.id}}\'} )' ) " > X </td>
<td onclick="db.call('standard/confirm', {'id' :'{{=row.id}}'} )" > X </td>
</tr>
{{pass}}
</table>
......
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