diff --git a/opal/core/patient_lists.py b/opal/core/patient_lists.py index a265e60fd..dee42f126 100644 --- a/opal/core/patient_lists.py +++ b/opal/core/patient_lists.py @@ -259,6 +259,14 @@ def visible_to(klass, user): return False +class CardListPatientList(PatientList, utils.AbstractBase): + card_header_template = "patient_lists/partials/card_header.html" + card_body_template = "patient_lists/partials/card_body.html" + card_footer_template = "patient_lists/partials/card_footer.html" + card_link = "[[ '/#/patient/' + row.demographics[0].patient_id ]]" + template_name = "patient_lists/card_list.html" + + """ Begin Definitions of Patient List App Metadata entries """ diff --git a/opal/templates/patient_lists/card_list.html b/opal/templates/patient_lists/card_list.html new file mode 100644 index 000000000..4158028b4 --- /dev/null +++ b/opal/templates/patient_lists/card_list.html @@ -0,0 +1,46 @@ +{% load forms %} +
+ There are no patients on this list. +
++ + Would you like to add one? + +
++ {% include column.detail_template_path %} +
+ {% endif %} + {% endfor %} ++ {% include column.detail_template_path %} +
+ {% endif %} + {% endfor %} +