Skip to content

Commit

Permalink
We can do the filter the month translation in a javascript filter eve…
Browse files Browse the repository at this point in the history
…n in the letters, we don't need a django filter, so lets remove it
  • Loading branch information
fredkingham committed Jun 18, 2019
1 parent 8cf235c commit f422be1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 51 deletions.
3 changes: 1 addition & 2 deletions apps/tb/templates/tb/letters/partials/index_case.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{% load elcid_utils %}
{% if index_case_list.exists %}
<b>
{{ models.IndexCase.get_display_name }}{{ index_case_list|pluralize}}:
Expand All @@ -14,7 +13,7 @@
# {{ index_case.hospital_number }}
{% endif %}
{% if index_case.diagnosis_day or index_case.diagnosis_month or index_case.diagnosis_year %}
{{ index_case.diagnosis_day }} {{ index_case.diagnosis_month|month }} {{ index_case.diagnosis_year }}
{{ index_case.diagnosis_day }} [[{{ index_case.diagnosis_month }}|month ]] {{ index_case.diagnosis_year }}
{% endif %}
<br />
{% endif %}
Expand Down
3 changes: 1 addition & 2 deletions apps/tb/templates/tb/letters/partials/tb_history.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{% load elcid_utils %}
<b>
Previous TB Diagnosis:
</b>
Expand All @@ -7,7 +6,7 @@
{{ tb_history.tb_type }} {{ tb_history.site_of_tb }}
{% if tb_history.diagnosis_date_year or tb_history.diagnosis_date_month or tb_history.diagnosis_date_day %}
-
{{ tb_history.diagnosis_date_day }} {{ tb_history.diagnosis_date_month|month }} {{ tb_history.diagnosis_date_year }}
{{ tb_history.diagnosis_date_day }} [[ {{ tb_history.diagnosis_date_month }}|month ]] {{ tb_history.diagnosis_date_year }}
{% endif %}
<br />

Expand Down
47 changes: 0 additions & 47 deletions elcid/templatetags/elcid_utils.py

This file was deleted.

0 comments on commit f422be1

Please sign in to comment.