Skip to content

Commit

Permalink
add Conditions of participation
Browse files Browse the repository at this point in the history
  • Loading branch information
Miningmark committed Dec 15, 2024
1 parent b96bd63 commit ad23a35
Show file tree
Hide file tree
Showing 16 changed files with 78 additions and 64 deletions.
Binary file added public/downloads/Infoblatt_Showacts_2025.pdf
Binary file not shown.
Binary file added public/downloads/Programmheft-Infoblatt.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 2 additions & 1 deletion src/pages/api/contactRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ CREATE TABLE contact_requests (
subject VARCHAR(50) NOT NULL,
message TEXT NOT NULL,
privacy_policy BOOLEAN NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
processed BOOLEAN DEFAULT FALSE
)
ENGINE=InnoDB
DEFAULT CHARSET=utf8mb4
Expand Down
5 changes: 3 additions & 2 deletions src/pages/api/helferRegistration.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ CREATE TABLE helfer (
gender VARCHAR(20),
privacy_policy BOOLEAN,
contact_forwarding BOOLEAN,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
street VARCHAR(100),
postal_code VARCHAR(10),
city VARCHAR(50),
Expand All @@ -44,7 +43,9 @@ CREATE TABLE helfer (
assembly_friday BOOLEAN,
workTime_saturday VARCHAR(255),
workTime_sunday VARCHAR(255),
image_url VARCHAR(255)
image_url VARCHAR(255),
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
processed BOOLEAN DEFAULT FALSE
)
ENGINE=InnoDB
DEFAULT CHARSET=utf8mb4
Expand Down
3 changes: 2 additions & 1 deletion src/pages/api/presseAkreditierung.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ CREATE TABLE presse_akkreditierungen (
verification TEXT NOT NULL,
message TEXT NOT NULL,
privacy_policy BOOLEAN NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
processed BOOLEAN DEFAULT FALSE
)
ENGINE=InnoDB
DEFAULT CHARSET=utf8mb4
Expand Down
3 changes: 2 additions & 1 deletion src/pages/api/registrationAsArtist.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ CREATE TABLE registration_artist (
picture_rights BOOLEAN NOT NULL,
artist_conditions BOOLEAN NOT NULL,
image_url VARCHAR(255),
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
processed BOOLEAN DEFAULT FALSE
)
ENGINE=InnoDB
DEFAULT CHARSET=utf8mb4
Expand Down
3 changes: 2 additions & 1 deletion src/pages/api/registrationAsShowact.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ CREATE TABLE registration_showact (
picture_rights BOOLEAN NOT NULL,
showact_conditions BOOLEAN NOT NULL,
image_url VARCHAR(255),
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
processed BOOLEAN DEFAULT FALSE
)
ENGINE=InnoDB
DEFAULT CHARSET=utf8mb4
Expand Down
3 changes: 2 additions & 1 deletion src/pages/api/registrationAsVendor.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ CREATE TABLE registration_vendor (
picture_rights BOOLEAN NOT NULL,
vendor_conditions BOOLEAN NOT NULL,
image_url VARCHAR(255),
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
processed BOOLEAN DEFAULT FALSE
)
ENGINE=InnoDB
DEFAULT CHARSET=utf8mb4
Expand Down
17 changes: 3 additions & 14 deletions src/pages/api/registrationAsWorkshop.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ CREATE TABLE registration_workshop (
privacy_policy BOOLEAN NOT NULL,
data_storage BOOLEAN NOT NULL,
picture_rights BOOLEAN NOT NULL,
workshop_conditions BOOLEAN NOT NULL,
image_url VARCHAR(255),
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
processed BOOLEAN DEFAULT FALSE
)
ENGINE=InnoDB
DEFAULT CHARSET=utf8mb4
Expand Down Expand Up @@ -102,9 +102,6 @@ export default async function handler(req, res) {
const privacyPolicy = ["true", "yes", "1"].includes(fields.privacyPolicy[0].toLowerCase());
const dataStorage = ["true", "yes", "1"].includes(fields.dataStorage[0].toLowerCase());
const pictureRights = ["true", "yes", "1"].includes(fields.pictureRights[0].toLowerCase());
const workshopConditions = ["true", "yes", "1"].includes(
fields.workshopConditions[0].toLowerCase()
);

const errors = [];

Expand Down Expand Up @@ -206,12 +203,6 @@ export default async function handler(req, res) {
message: "Bildrechte müssen bestätigt werden",
});
}
if (typeof workshopConditions !== "boolean" || workshopConditions === false) {
errors.push({
field: "workshopConditions",
message: "Workshop-Bedingungen müssen bestätigt werden",
});
}

// Fehler prüfen
if (errors.length > 0) {
Expand Down Expand Up @@ -274,9 +265,8 @@ export default async function handler(req, res) {
privacy_policy,
data_storage,
picture_rights,
workshop_conditions,
image_url
) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)`;
) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)`;

const values = [
clientIp,
Expand All @@ -302,7 +292,6 @@ export default async function handler(req, res) {
privacyPolicy,
dataStorage,
pictureRights,
workshopConditions,
filePath || null,
];

Expand Down
26 changes: 21 additions & 5 deletions src/pages/registration/registrationAsArtist.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,11 @@ export default function RegistrationAsArtist() {
Sichert euch euren Platz auf der YumeKai 2025!
<br />
<br />
Bitte beachtet die Teilnahme- und Auswahlbedingungen für Künstler.
Bitte beachtet die{" "}
<StyledLink href="/downloads/Teilnahmebedingungen_Kuenstler_2025.pdf" target="_blank">
Teilnahme- und Auswahlbedingungen für Künstler
</StyledLink>
.
<br />
<br />
Bei Fragen oder eventuellen Unklarheiten wendest du dich per E-Mail an:{" "}
Expand Down Expand Up @@ -503,7 +507,16 @@ export default function RegistrationAsArtist() {
/>
<p>Der Zugang wird von einem YumeKai-Helfer auf dem ausgewählten Gerät eingerichtet.</p>
<RadioButton
title="Programmheft"
title={
<>
<span>
Programmheft{" "}
<StyledLink href="/downloads/Programmheft-Infoblatt.pdf" target="_blanck">
Infoblatt
</StyledLink>{" "}
</span>
</>
}
names={["Nein", "Viertel Seite (30€)", "Halbe Seite (45€)", "Ganze Seite (85€)"]}
options={["Nein", "Viertel Seite", "Halbe Seite", "Ganze Seite"]}
selectedOption={programmBooklet}
Expand Down Expand Up @@ -597,8 +610,8 @@ export default function RegistrationAsArtist() {
title="licensedMusic"
content={
<p>
Ich habe zur Kenntnis genommen, dass GEMA-Lizenzierte Bild- oder Tonwiedergabe
nicht erlaubt ist.<RequiredNote>*</RequiredNote>
Ich habe zur Kenntnis genommen, dass GEMA-Lizenzierte Tonwiedergabe nicht erlaubt
ist.<RequiredNote>*</RequiredNote>
</p>
}
isChecked={licensedMusic}
Expand Down Expand Up @@ -630,7 +643,10 @@ export default function RegistrationAsArtist() {
content={
<p>
Ich habe die{" "}
<StyledLink href="" target="_blank">
<StyledLink
href="/downloads/Teilnahmebedingungen_Kuenstler_2025.pdf"
target="_blank"
>
Teilnahmebedingungen
</StyledLink>{" "}
gelesen und akzeptiere diese.<RequiredNote>*</RequiredNote>
Expand Down
8 changes: 6 additions & 2 deletions src/pages/registration/registrationAsShowact.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,11 @@ export default function RegistrationAsShowact() {
Sichert euch euren Platz auf der YumeKai 2025!
<br />
<br />
Bitte beachtet die Teilnahme- und Auswahlbedingungen für Showacts.
Bitte beachtet die{" "}
<StyledLink href="/downloads/Infoblatt_Showacts_2025.pdf" target="_blank">
Teilnahme- und Auswahlbedingungen für Showacts
</StyledLink>
.
<br />
<br />
Bei Fragen oder eventuellen Unklarheiten wendest du dich per E-Mail an:{" "}
Expand Down Expand Up @@ -616,7 +620,7 @@ export default function RegistrationAsShowact() {
content={
<p>
Ich habe die{" "}
<StyledLink href="" target="_blank">
<StyledLink href="/downloads/Infoblatt_Showacts_2025.pdf" target="_blank">
Teilnahmebedingungen
</StyledLink>{" "}
gelesen und akzeptiere diese.<RequiredNote>*</RequiredNote>
Expand Down
26 changes: 21 additions & 5 deletions src/pages/registration/registrationAsVendor.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,11 @@ export default function RegistrationAsVendor() {
Sichert euch euren Platz auf der YumeKai 2025!
<br />
<br />
Bitte beachtet die Teilnahme- und Auswahlbedingungen für Händler.
Bitte beachtet die{" "}
<StyledLink href="/downloads/Teilnahmebedingungen_Haendler_2025.pdf" target="_blank">
Teilnahme- und Auswahlbedingungen für Händler
</StyledLink>
.
<br />
<br />
Bei Fragen oder eventuellen Unklarheiten wendest du dich per E-Mail an:{" "}
Expand Down Expand Up @@ -528,7 +532,16 @@ export default function RegistrationAsVendor() {
isError={errors.some((error) => error.field === "wlan")}
/>
<RadioButton
title="Programmheft"
title={
<>
<span>
Programmheft{" "}
<StyledLink href="/downloads/Programmheft-Infoblatt.pdf" target="_blanck">
Infoblatt
</StyledLink>{" "}
</span>
</>
}
names={["Nein", "Viertel Seite (30€)", "Halbe Seite (45€)", "Ganze Seite (85€)"]}
options={["Nein", "Viertel Seite", "Halbe Seite", "Ganze Seite"]}
selectedOption={programmBooklet}
Expand Down Expand Up @@ -640,8 +653,8 @@ export default function RegistrationAsVendor() {
title="licensedMusic"
content={
<p>
Ich habe zur Kenntnis genommen, dass GEMA-Lizenzierte Bild- oder Tonwiedergabe
nicht erlaubt ist.<RequiredNote>*</RequiredNote>
Ich habe zur Kenntnis genommen, dass GEMA-Lizenzierte Tonwiedergabe nicht erlaubt
ist.<RequiredNote>*</RequiredNote>
</p>
}
isChecked={licensedMusic}
Expand Down Expand Up @@ -673,7 +686,10 @@ export default function RegistrationAsVendor() {
content={
<p>
Ich habe die{" "}
<StyledLink href="" target="_blank">
<StyledLink
href="/downloads/Teilnahmebedingungen_Haendler_2025.pdf"
target="_blank"
>
Teilnahmebedingungen
</StyledLink>{" "}
gelesen und akzeptiere diese.<RequiredNote>*</RequiredNote>
Expand Down
28 changes: 0 additions & 28 deletions src/pages/registration/registrationAsWorkshop.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ export default function RegistrationAsWorkshop() {
const [privacyPolicy, setPrivacyPolicy] = useState(false);
const [dataStorage, setDataStorage] = useState(false);
const [pictureRights, setPictureRights] = useState(false);
const [workshopConditions, setWorkshopConditions] = useState(false);

const [errors, setErrors] = useState([]);
const [success, setSuccess] = useState("");
Expand Down Expand Up @@ -123,7 +122,6 @@ export default function RegistrationAsWorkshop() {
privacyPolicy: useRef(null),
dataStorage: useRef(null),
pictureRights: useRef(null),
workshopConditions: useRef(null),
};

async function submit(event) {
Expand Down Expand Up @@ -220,13 +218,6 @@ export default function RegistrationAsWorkshop() {
if (!pictureRights)
newErrors.push({ field: "pictureRights", message: "Bildrechte müssen bestätigt werden" });

//Teilnahmebedingungen
if (!workshopConditions)
newErrors.push({
field: "workshopConditions",
message: "Teilnahmebedingungen müssen akzeptiert werden",
});

//Check if there are any errors
if (newErrors.length > 0) {
setErrors(newErrors);
Expand Down Expand Up @@ -275,7 +266,6 @@ export default function RegistrationAsWorkshop() {
formData.append("privacyPolicy", privacyPolicy);
formData.append("dataStorage", dataStorage);
formData.append("pictureRights", pictureRights);
formData.append("workshopConditions", workshopConditions);
formData.append("file", file);

try {
Expand Down Expand Up @@ -314,7 +304,6 @@ export default function RegistrationAsWorkshop() {
setPrivacyPolicy(false);
setDataStorage(false);
setPictureRights(false);
setWorkshopConditions(false);
setFile(null);
setPreviewUrl(null);
setErrors([]);
Expand Down Expand Up @@ -668,23 +657,6 @@ export default function RegistrationAsWorkshop() {
isError={errors.some((error) => error.field === "pictureRights")}
require
/>
<CheckBox
title="workshopConditions"
content={
<p>
Ich habe die{" "}
<StyledLink href="" target="_blank">
Teilnahmebedingungen
</StyledLink>{" "}
gelesen und akzeptiere diese.<RequiredNote>*</RequiredNote>
</p>
}
isChecked={workshopConditions}
inputChange={(value) => setWorkshopConditions(value)}
inputRef={refs.workshopConditions}
isError={errors.some((error) => error.field === "workshopConditions")}
require
/>

{errors && (
<ul>
Expand Down
17 changes: 14 additions & 3 deletions src/pages/voranmeldungen.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ export default function Voranmeldungen() {
Bei sonstigen Fragen oder eventuellen Unklarheiten wendest du dich per E-Mail an:{" "}
<StyledLink href="mailto:info@yumekai.de">info@yumekai.de</StyledLink> oder benutzt
unser <StyledLink href="/kontaktformular">Kontaktformular</StyledLink>. Bitte beachtet
die <StyledLink href="">Teilnahme- und Auswahlbedingungen für Künstler</StyledLink>.
die{" "}
<StyledLink href="/downloads/Teilnahmebedingungen_Kuenstler_2025.pdf" target="_blank">
Teilnahme- und Auswahlbedingungen für Künstler
</StyledLink>
.
<br />
<br />
<strong>Die Anmeldung für Künstler läuft bis zum 29. Februar 2025.</strong>
Expand Down Expand Up @@ -182,7 +186,10 @@ export default function Voranmeldungen() {
<StyledLink href="mailto:info@yumekai.de">info@yumekai.de</StyledLink> oder benutzt
unser <StyledLink href="/kontaktformular">Kontaktformular</StyledLink>. Bitte beachtet
die{" "}
<StyledLink href="">Teilnahme- und Auswahlbedingungen für Verkaufsstände</StyledLink>.
<StyledLink href="/downloads/Teilnahmebedingungen_Haendler_2025.pdf" target="_blank">
Teilnahme- und Auswahlbedingungen für Händler
</StyledLink>
.
<br />
<br />
<strong>Die Anmeldung für Händler läuft bis zum 15. März 2025.</strong>
Expand Down Expand Up @@ -237,7 +244,11 @@ export default function Voranmeldungen() {
Bei sonstigen Fragen oder eventuellen Unklarheiten wendest du dich per E-Mail an:{" "}
<StyledLink href="mailto:info@yumekai.de">info@yumekai.de</StyledLink> oder benutzt
unser <StyledLink href="/kontaktformular">Kontaktformular</StyledLink>. Bitte beachtet
die <StyledLink href="">Teilnahme- und Auswahlbedingungen für Showacts</StyledLink>.
die{" "}
<StyledLink href="/downloads/Infoblatt_Showacts_2025.pdf" target="_blank">
Teilnahme- und Auswahlbedingungen für Showacts
</StyledLink>
.
<br />
<br />
<strong>Die Anmeldung für Showact&apos;s läuft bis zum 31. März 2025.</strong>
Expand Down

0 comments on commit ad23a35

Please sign in to comment.