Skip to content

Commit

Permalink
remove refs to bootstrap3 template folder
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Jan 21, 2025
1 parent afc45d3 commit 7e0ea7a
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 7 deletions.
7 changes: 2 additions & 5 deletions edc_pharmacy/admin/prescription/rx_refill_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from django.utils.html import format_html
from django_audit_fields.admin import audit_fieldset_tuple
from edc_appointment.models import Appointment
from edc_dashboard.utils import get_bootstrap_version
from edc_utils import convert_php_dateformat, formatted_age, get_utcnow

from ...admin_site import edc_pharmacy_admin
Expand Down Expand Up @@ -119,9 +118,7 @@ def duration(self, obj=None):
refill_end_date=format_html(" ".join(refill_end_date)),
number_of_days=obj.number_of_days,
)
return render_to_string(
f"edc_pharmacy/bootstrap{get_bootstrap_version()}/duration.html", context=context
)
return render_to_string("edc_pharmacy/duration.html", context=context)

@admin.display(description="Rx")
def prescription(self, obj=None):
Expand All @@ -146,7 +143,7 @@ def description(self, obj=None):
"rx_refill": obj,
}
return render_to_string(
f"edc_pharmacy/bootstrap{get_bootstrap_version()}/rx_refill_description.html",
"edc_pharmacy/rx_refill_description.html",
context,
)

Expand Down
File renamed without changes.
3 changes: 1 addition & 2 deletions edc_pharmacy/views/home_view.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
from django.conf import settings
from django.views.generic.base import TemplateView
from edc_dashboard.utils import get_bootstrap_version
from edc_dashboard.view_mixins import EdcViewMixin
from edc_navbar import NavbarViewMixin


class HomeView(EdcViewMixin, NavbarViewMixin, TemplateView):
template_name = f"edc_pharmacy/bootstrap{get_bootstrap_version()}/home.html"
template_name = "edc_pharmacy/home.html"
navbar_name = settings.APP_NAME
navbar_selected_item = "pharmacy"

0 comments on commit 7e0ea7a

Please sign in to comment.