{{('message' in globals())}} {{extend 'layout_fluid.html'}} {{if 'message' in globals():}}

{{=message}}

{{ query = None c_id = ""}} {{if "admin" in auth.user_groups.values():}} {{query = db( db.patient.id==db.auth_permission.record_id ).select( orderby = db.patient.id) }} {{else:}} {{query = db( ( db.auth_permission.record_id==db.patient.id ) & ( db.auth_permission.table_name=="patient" ) & ( db.auth_permission.name=="read" ) & ( db.auth_permission.group_id.belongs(auth.user_groups) ) ).select( orderby = db.patient.id) }} {{pass}} {{for row in query :}} {{if (c_id != row.patient.id) : c_id = row.patient.id}} {{pass}} plop {{pass}}
name gender birth
{{=row.patient.last_name + " " + row.patient.first_name }} {{=row.patient.sex }} {{=row.patient.birth }} {{=row.patient.info }}
{{=A(str(T('back')),_href=URL('index'),_class="btn")}} {{=A(str(T('add patient')),_href=URL('add_patient_form'),_class="btn")}}

info

fenetre ajax / affichage info_patient ...
TODO
.
.
.
.
{{=A(str(T('edit info (TODO)')),_href=URL('index'),_class="btn")}}
{{elif 'content' in globals():}} {{=content}} {{else:}} {{=BEAUTIFY(response._vars)}} {{pass}}