Commit 4a302d03 authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team
Browse files

modules/, patient/index.html: be quiet when there is no birth date

parent 01c887df
......@@ -75,6 +75,10 @@ def anon_birth(patient_id, user_id):
birth = db.patient[patient_id].birth
if birth is None:
return ""
age = age_years_months(birth)
if auth.has_permission("anon", "patient", patient_id, user_id):
......@@ -43,7 +43,7 @@
{{=vidjil_utils.anon_names(row['id'], row['first_name'], row['last_name'], row['anon_allowed'])}}
<td> {{=row['birth'] }} </td>
<td> {{ if row['birth'] is not None: }} {{=row['birth'] }} {{ pass }} </td>
<td> {{=row['info'] }} </td>
<td> {{=row['confs']}}</td>
{{if isAdmin:}} <td> {{=row['groups']}}</td>{{pass}}
Supports Markdown
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