Skip to content

Commit

Permalink
revert nhs-organisations url to api.rcpch.ac.uk
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourpeas committed Jun 6, 2024
1 parent 39d12d5 commit 5337e2d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion project/npda/templates/npda_users.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "base.html" %}
{% load static %}
{% block content %}
<div class="flex flex-row min-h-screen justify-center px-10" hx-get="/npda_users" hx-trigger="npda_users from:body" hx-target="#npda_user_table">
<div class="flex flex-col justify-center px-10" hx-get="/npda_users" hx-trigger="npda_users from:body" hx-target="#npda_user_table">
<div class="overflow-x-auto sm:-mx-6 lg:-mx-8">
<div class="inline-block min-w-full py-2 sm:px-6 lg:px-8">
{% url 'npda_users' as hx_post %}
Expand Down
4 changes: 2 additions & 2 deletions project/npda/templates/partials/npda_user_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
<tbody>
{% for npda_user in npdauser_list %}
<tr class="border-b bg-white text-rcpch_light_blue border-gray-100 hover:bg-r hover:bg-rcpch_light_blue hover:text-white">
<td>
<td class="px-6 py-4 text-center">
<div class='has-tooltip items-center'>
<span class='tooltip rounded shadow-lg px-2 py-2 bg-gray-500 text-white -mt-4 text-left'>NPDA User Unique ID</span>
<a href="{% url 'npdauser-update' npda_user.pk %}" class="px-2 flex text-left hover:text-rcpch_pink"><strong>{{ npda_user.pk }}</strong></a>
<a href="{% url 'npdauser-update' npda_user.pk %}" class="px-2 flex text-center hover:text-rcpch_pink"><strong>{{ npda_user.pk }}</strong></a>
</div>
</td>
<td class="text-left">
Expand Down
5 changes: 1 addition & 4 deletions project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@
RCPCH_CENSUS_PLATFORM_URL = os.getenv("RCPCH_CENSUS_PLATFORM_URL")
RCPCH_CENSUS_PLATFORM_TOKEN = os.getenv("RCPCH_CENSUS_PLATFORM_TOKEN")
# TODO #83 - Fix the broken env in Azure and remove hardcoded URL
RCPCH_NHS_ORGANISATIONS_API_URL = os.getenv(
"RCPCH_NHS_ORGANISATIONS_API_URL",
"https://rcpch-nhs-organisations.azurewebsites.net",
)
RCPCH_NHS_ORGANISATIONS_API_URL = os.getenv("RCPCH_NHS_ORGANISATIONS_API_URL")
RCPCH_NHS_ORGANISATIONS_API_URL = "https://rcpch-nhs-organisations.azurewebsites.net"

# This is the NHS Spine services - it does not require authentication
Expand Down

0 comments on commit 5337e2d

Please sign in to comment.