Compare commits

...

7 Commits

2 changed files with 11 additions and 162 deletions

View File

@ -14,27 +14,7 @@
\begin{Form}[action=http://localhost:5000/,method=post] \begin{Form}[action=http://localhost:5000/,method=post]
\paPage{QSM Allgemeiner Teil}{ \paPage{QSM Allgemeiner Teil}{
% Abschnitt 1: Antragsteller : entweder Institution oder Person % Abschnitt 1: Institution (sofern vorhanden)
% -> 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}
}
\FormSection{Institution (sofern vorhanden)}{% \FormSection{Institution (sofern vorhanden)}{%
% Radio buttons : horizontal oben % Radio buttons : horizontal oben
\begin{tabular}{@{}p{0.3\textwidth}p{0.35\textwidth}p{0.35\textwidth}@{}} \begin{tabular}{@{}p{0.3\textwidth}p{0.35\textwidth}p{0.35\textwidth}@{}}
@ -50,7 +30,7 @@
% Validate: E-Mail-Adresse % Validate: E-Mail-Adresse
\newcommand{\validateEmail}{\detokenize{ \newcommand{\validateEmail}{\detokenize{
var email = event.value; 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."); app.alert("Ungueltige E-Mail-Adresse: " + email + ". Bitte geben Sie eine gueltige E-Mail-Adresse ein.");
event.rc = false; event.rc = false;
} }
@ -374,135 +354,6 @@
% %
% Falls keine zutrifft, muss eine Begründung, warum die Maßnahme trotzdem förderungswürdig ist, angegeben werden. % Falls keine zutrifft, muss eine Begründung, warum die Maßnahme trotzdem förderungswürdig ist, angegeben werden.
\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 & \\
\textbf{Genehmigter Exkursionsantrag der Fakultät} & \raisebox{-1pt}{\CheckBox[
name=pa-anh-fakultaet,
width=1em,
height=1em
]{}} \\
Nur bei Exkursionen kann je nach Fakultät unterschiedlich sein &
\end{tabular}
}
% \Submit{Absenden} % \Submit{Absenden}
} }
\paPage{Vergleichsangebote}{
% Auswahl der Position in der Kostenaufstellung, für die Vergleichsangebote eingereicht werden; Bezeichnung des benötigten Angebots
\vspace{-2em}
\FormSection{}{%
% Nebeneinander: Links Position, rechts Bezeichnung; Tabellenzelle; Ohne Überschrift; Ohne Bezeichner (Inhalt des Drop-downs enthält "Position #")
\begin{tabular}{@{}p{0.1\textwidth}p{0.92\textwidth}@{}}
\textbf{Position} & \textbf{Bezeichnung} \\
\CustomChoiceMenuDefault{pa-offer-position}{}{width=\linewidth,default=-}{
-=-,
Pos. 1=1,
Pos. 2=2,
Pos. 3=3,
Pos. 4=4,
Pos. 5=5,
Pos. 6=6,
Pos. 7=7,
Pos. 8=8,
Pos. 9=9,
Pos. 10=10,
Pos. 11=11,
Pos. 12=12,
Pos. 13=13,
Pos. 14=14,
Pos. 15=15,
Pos. 16=16,
Pos. 17=17,
Pos. 18=18,
Pos. 19=19,
Pos. 20=20,
Pos. 21=21,
Pos. 22=22,
Pos. 23=23,
Pos. 24=24
} & \CustomTextFieldDefault{pa-offer-name}{}{Bezeichnung}{width=\linewidth} \\
\end{tabular}
}
\FormSection{Angebot 1 (bevorzugt)}{%
\begin{tabular}{@{}p{0.3\textwidth}p{0.35\textwidth}p{0.35\textwidth}@{}}
\textbf{Bezeichnung} & \multicolumn{2}{p{0.73\textwidth}}{
\CustomTextFieldDefault{pa-offer-1-provider}{}{Anbieter}{width=\linewidth}
} \\
\textbf{Angebotssumme} & & \hspace{\fill} \CustomTextFieldDefault{pa-offer-1-amount-euro}{}{Angebotssumme (\euro)}{width=6em,align=2,default={0,00},validate=\validateCurrency}~\euro \\
\end{tabular}
\vspace{0.5em}\\
\textbf{Kommentar / Begründung:}\vspace{0.5em}\\
\TextField[
name=pa-offer-1-comment,
multiline,
width=1.055\textwidth,
height=3\baselineskip,
bordercolor=black,
backgroundcolor=white,
charsize=12pt,
align=0,
readonly=\isReadOnlyVariant
]{}\vspace{-1.5em}
}
\FormSection{Angebot 2}{%
\begin{tabular}{@{}p{0.3\textwidth}p{0.35\textwidth}p{0.35\textwidth}@{}}
\textbf{Bezeichnung} & \multicolumn{2}{p{0.73\textwidth}}{
\CustomTextFieldDefault{pa-offer-2-provider}{}{Anbieter}{width=\linewidth}
} \\
\textbf{Angebotssumme} & & \hspace{\fill} \CustomTextFieldDefault{pa-offer-2-amount-euro}{}{Angebotssumme (\euro)}{width=6em,align=2,default={0,00},validate=\validateCurrency}~\euro \\
\end{tabular}
\vspace{0.5em}\\
\textbf{Kommentar:}\vspace{0.5em}\\
\TextField[
name=pa-offer-2-comment,
multiline,
width=1.055\textwidth,
height=2\baselineskip,
bordercolor=black,
backgroundcolor=white,
charsize=12pt,
align=0,
readonly=\isReadOnlyVariant
]{}\vspace{-1.5em}
}
\FormSection{Angebot 3}{%
\begin{tabular}{@{}p{0.3\textwidth}p{0.35\textwidth}p{0.35\textwidth}@{}}
\textbf{Bezeichnung} & \multicolumn{2}{p{0.73\textwidth}}{
\CustomTextFieldDefault{pa-offer-3-provider}{}{Anbieter}{width=\linewidth}
} \\
\textbf{Angebotssumme} & & \hspace{\fill} \CustomTextFieldDefault{pa-offer-3-amount-euro}{}{Angebotssumme (\euro)}{width=6em,align=2,default={0,00},validate=\validateCurrency}~\euro \\
\end{tabular}
\vspace{0.5em}\\
\textbf{Kommentar:}\vspace{0.5em}\\
\TextField[
name=pa-offer-3-comment,
multiline,
width=1.055\textwidth,
height=2\baselineskip,
bordercolor=black,
backgroundcolor=white,
charsize=12pt,
align=0,
readonly=\isReadOnlyVariant
]{}\vspace{-1.5em}
}
}
\end{Form} \end{Form}

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) { \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 \huge
\iffalse \CustomTextFieldThuge{pa-id}{}{Jahr/Antragsnummer}{width=3.8cm,readonly=true}
\CustomTextFieldThuge{pa-id}{}{Jahr/Antragsnummer}{width=3.8cm} \CustomTextFieldThuge{pa-key}{}{}{
\CustomTextFieldThuge{pa-key}{}{}{ name=pa-key,
name=pa-key, width=0.1pt,
width=0.1pt, readonly=true,
readonly=true, bordercolor=white,
bordercolor=white, backgroundcolor=white,
backgroundcolor=white, maxlen=16
maxlen=16 }
}
\fi
}; };
\node[anchor=north, inner sep=0pt, xshift=0cm, yshift=-0.5cm, opacity=0.3] (logo\the\numexpr\value{logoCounter}+2) at (current page.north) { \node[anchor=north, inner sep=0pt, xshift=0cm, yshift=-0.5cm, opacity=0.3] (logo\the\numexpr\value{logoCounter}+2) at (current page.north) {