Update to be compatible with online app

This commit is contained in:
Frederik Beimgraben 2025-09-01 16:14:41 +02:00
parent aa1e8c2abc
commit c5aa64c41e
2 changed files with 11 additions and 49 deletions

View File

@ -14,27 +14,7 @@
\begin{Form}[]
\paPage{VSM Allgemeiner Teil}{
% Abschnitt 1: Antragsteller : entweder Institution oder Person
% -> aktiviert/deaktiviert zugehörige Felder (über radio buttons) mit JavaScript
\FormSection{Antragsteller}{%
% Radio buttons : horizontal oben
\begin{tabular}{@{}p{0.3\textwidth}p{0.35\textwidth}p{0.35\textwidth}@{}}
\textbf{Art des Antragstellers} & \raisebox{-1pt}{\ChoiceMenu[
radio,
name=pa-applicant-type,
width=1em,
height=1em,
radiosymbol=\ding{108}
]{}{=person}} Person & \raisebox{-1pt}{\ChoiceMenu[
radio,
name=pa-applicant-type,
width=1em,
height=1em,
radiosymbol=\ding{108}
]{}{=institution}} Institution
\end{tabular}\vspace{-1em}
}
% Abschnitt 1: Institution (sofern vorhanden)
\FormSection{Institution (sofern vorhanden)}{%
% Radio buttons : horizontal oben
\begin{tabular}{@{}p{0.3\textwidth}p{0.35\textwidth}p{0.35\textwidth}@{}}
@ -50,7 +30,7 @@
% Validate: E-Mail-Adresse
\newcommand{\validateEmail}{\detokenize{
var email = event.value;
if (email && !/^[a-zA-Z0-9._\%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$/.test(email)) { /*$*/
if (email && !/^[a-zA-Z0-9._\%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2}$/.test(email)) { /*$*/
app.alert("Ungueltige E-Mail-Adresse: " + email + ". Bitte geben Sie eine gueltige E-Mail-Adresse ein.");
event.rc = false;
}
@ -342,23 +322,7 @@
\end{tabular}
}
\FormSection{Checkliste: Anhänge}{
\vspace{0.5em}
\begin{minipage}{1.05\textwidth}
\setstretch{1.0}\color{black}\dinfont
Hier bitte alle mit dem Dokument eingereichten Dokumente ankreuzen:
\vspace{1em}
\end{minipage}
\begin{tabular}{@{}p{\textwidth}p{0.05\textwidth}@{}}
\textbf{Beiblatt Vergleichsangebote} & \raisebox{-1pt}{\CheckBox[
name=pa-anh-vergleichsangebote,
width=1em,
height=1em
]{}} \\
Jeweils ein Formular pro Position siehe Kostenaufstellung & \\
\end{tabular}
}
% \Submit{Absenden}
}

View File

@ -142,17 +142,15 @@
%
\node[anchor=north east, inner sep=0pt, xshift=-2cm, yshift=-5.5cm, opacity=0.3] (logo\the\numexpr\value{logoCounter}+1) at (current page.north east) {
\huge
\iffalse
\CustomTextFieldThuge{pa-id}{}{Jahr/Antragsnummer}{width=3.8cm}
\CustomTextFieldThuge{pa-key}{}{}{
name=pa-key,
width=0.1pt,
readonly=true,
bordercolor=white,
backgroundcolor=white,
maxlen=16
}
\fi
\CustomTextFieldThuge{pa-id}{}{Jahr/Antragsnummer}{width=3.8cm}
\CustomTextFieldThuge{pa-key}{}{}{
name=pa-key,
width=0.1pt,
readonly=true,
bordercolor=white,
backgroundcolor=white,
maxlen=16
}
};
\node[anchor=north, inner sep=0pt, xshift=0cm, yshift=-0.5cm, opacity=0.3] (logo\the\numexpr\value{logoCounter}+2) at (current page.north) {