Initial deploy setup
deploy / deploy (push) Canceled after 0s

This commit is contained in:
Jens
2026-07-21 14:00:00 +02:00
commit b8091e59bd
285 changed files with 27854 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
from __future__ import annotations
from django import forms
class ManualImportForm(forms.Form):
source_url = forms.URLField(
required=False,
label="Vacature-URL",
max_length=1000,
widget=forms.URLInput(attrs={"autocomplete": "off"}),
)
pasted_text = forms.CharField(
required=False,
label="Tekst plakken",
widget=forms.Textarea(
attrs={
"rows": 6,
"placeholder": "Plak hier de vacaturetekst of relevante pagina-inhoud.",
}
),
)
def clean(self):
data = super().clean()
source_url = (data.get("source_url") or "").strip()
pasted_text = (data.get("pasted_text") or "").strip()
if not source_url and not pasted_text:
raise forms.ValidationError("Vul een URL of een tekstfragment in.")
return {"source_url": source_url, "pasted_text": pasted_text}