Skip to content

Commit

Permalink
changed INDUCTION_URL to POST_INDUCTION_URL & remove duplicate CONTAC…
Browse files Browse the repository at this point in the history
…T_PAGE_URL
  • Loading branch information
jabelone committed Nov 14, 2023
1 parent 5fb8a3d commit 2d5af2a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
4 changes: 2 additions & 2 deletions memberportal/api_general/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def get(self, request):
"signup": {
"inductionLink": config.INDUCTION_ENROL_LINK,
"requireAccessCard": config.REQUIRE_ACCESS_CARD,
"contactPageUrl": config.CONTACT_PAGE_URL,
"postInductionUrl": config.POST_INDUCTION_URL,
"collectVehicleRegistrationPlate": config.COLLECT_VEHICLE_REGISTRATION_PLATE,
},
"enableWebcams": config.ENABLE_WEBCAMS,
Expand Down Expand Up @@ -703,7 +703,7 @@ def post(self, request):
"induction we will go over the basic safety and operational "
f"aspects of {config.SITE_OWNER}. To book in, click the link below."
)
link = config.INDUCTION_URL
link = config.POST_INDUCTION_URL
btn_text = "Register for Induction"

new_user.email_link(subject, title, message, link, btn_text)
Expand Down
12 changes: 4 additions & 8 deletions memberportal/membermatters/constance_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,10 @@
"The publicly accessible URL of your MemberMatters instance.",
),
"MAIN_SITE_URL": ("https://membermatters.org", "The URL of your main website."),
"CONTACT_PAGE_URL": (
"https://membermatters.org",
"The URL of your contact page (displayed during signup if "
"REQUIRE_ACCESS_CARD == False).",
),
"INDUCTION_URL": (
"POST_INDUCTION_URL": (
"https://eventbrite.com.au",
"The URL members should visit to book in for a site induction.",
"The URL members should visit to book in for a site induction after finishing the online induction."
" (displayed during signup if REQUIRE_ACCESS_CARD == False)",
),
# Logo and favicon
"SITE_LOGO": (
Expand Down Expand Up @@ -450,7 +446,7 @@
"Discourse SSO Protocol",
("DISCOURSE_SSO_PROTOCOL_SECRET_KEY",),
),
("URLs", ("SITE_URL", "MAIN_SITE_URL", "CONTACT_PAGE_URL", "INDUCTION_URL")),
("URLs", ("SITE_URL", "MAIN_SITE_URL", "POST_INDUCTION_URL")),
("Memberbucks", ("MEMBERBUCKS_MAX_TOPUP",)),
(
"Images",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
<div class="row justify-start q-mt-md">
<q-space />
<q-btn
:href="features.signup.contactPageUrl"
:href="features.signup.postInductionUrl"
target="_blank"
color="primary"
:label="$tc('button.contactUs')"
Expand Down

0 comments on commit 2d5af2a

Please sign in to comment.