Add "Hide legal representative field" project field.

master
Carl Kittelberger 2017-02-21 16:08:45 +01:00
parent b472c0b574
commit 66710c84f6
Signed by: icedream
GPG Key ID: C1D30A06E6490C14
2 changed files with 14 additions and 7 deletions

View File

@ -59,10 +59,16 @@ var exportTemplate = template.Must(template.
\department{<.Project.Department>} \department{<.Project.Department>}
\newcommand{\wrSigningField}[0]{ \newcommand{\wrSigningField}[0]{
<if .Project.HideLegalRepSignField>
\begin{tabularx}{\textwidth}{| X | X | X |} \begin{tabularx}{\textwidth}{| X | X | X |}
<else>
\begin{tabularx}{\textwidth}{| X | X |}
<end>
\hline \hline
<T "trainee"> & <T "trainee"> &
<if not .Project.HideLegalRepSignField>
<T "legal_representative"> & <T "legal_representative"> &
<end>
<T "instructor"> \\[2cm] <T "instructor"> \\[2cm]
\hline \hline
\end{tabularx} \end{tabularx}

View File

@ -6,6 +6,7 @@ type Project struct {
Department string `json:"Department"` Department string `json:"Department"`
FirstDayMonday bool `json:"First day is monday"` FirstDayMonday bool `json:"First day is monday"`
OnlyShowWorkDays bool `json:"Only show work days"` OnlyShowWorkDays bool `json:"Only show work days"`
HideLegalRepSignField bool `json:"Hide legal representative field"`
Begin Date `json:"Begin"` Begin Date `json:"Begin"`
End Date `json:"End"` End Date `json:"End"`
Weeks []Week `json:"Weeks"` Weeks []Week `json:"Weeks"`