Skip to content

Commit

Permalink
Merge pull request #200 from os2ulf/feature/OS2UOL-1026
Browse files Browse the repository at this point in the history
OS2UOL-1026: Added pretix widget to course_educators and internship
  • Loading branch information
SorenBonde authored Nov 28, 2024
2 parents 38eb336 + 4e87fc6 commit f0cd17e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
11 changes: 8 additions & 3 deletions components/views/course_educatorsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,21 @@ const periodPriceDurationDescription = computed(() => {
const registrationData = computed(() => {
return {
bundle: props.data?.bundle,
deadline: props.data?.field_registration_deadline,
description: props.data?.field_registration_procedure,
description: props.data?.field_registration_description,
email: props.data?.field_registration_email,
phone: props.data?.field_registration_phone,
title: props.data?.field_registration_title,
url: props.data?.field_registration_url,
price: props.data?.field_price,
price_description: props.data?.field_description_of_price,
free: props.data?.field_is_free,
event_shop_url: props.data?.event_shop_url,
field_pretix_widget_type: props.data?.field_pretix_widget_type,
};
});
const practicalInfoData = computed(() => {
const data = [
{
Expand Down Expand Up @@ -415,11 +419,12 @@ const currentUrl = computed(() => {
<div
v-if="
data.field_registration_deadline ||
data.field_registration_procedure ||
data.field_registration_description ||
data.field_registration_email ||
data.field_registration_phone ||
data.field_registration_title ||
data.field_registration_url
data.field_registration_url ||
(data.event_shop_url && data.field_pretix_widget_type)
"
id="course-registration"
class="col-xs-12 col-sm-12 col-md-12 educators__section-registration"
Expand Down
5 changes: 4 additions & 1 deletion components/views/internshipView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ const registrationData = computed(() => {
price: '',
price_description: '',
free: '',
event_shop_url: props.data?.event_shop_url,
field_pretix_widget_type: props.data?.field_pretix_widget_type,
};
});
Expand Down Expand Up @@ -360,7 +362,8 @@ const currentUrl = computed(() => {
data.field_desc_application_procedure ||
data.field_application_email ||
data.field_application_phone ||
data.field_application_url
data.field_application_url ||
(data.event_shop_url && data.field_pretix_widget_type)
"
id="course-registration"
class="col-xs-12 col-sm-12 col-md-12 internship__section-registration"
Expand Down

0 comments on commit f0cd17e

Please sign in to comment.