Add "Hide legal representative field" project field.
parent
b472c0b574
commit
66710c84f6
|
@ -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}
|
||||||
|
|
|
@ -2,11 +2,12 @@ package project
|
||||||
|
|
||||||
// Project represents the root structure of a project file.
|
// Project represents the root structure of a project file.
|
||||||
type Project struct {
|
type Project struct {
|
||||||
Name string `json:"Name"`
|
Name string `json:"Name"`
|
||||||
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"`
|
||||||
Begin Date `json:"Begin"`
|
HideLegalRepSignField bool `json:"Hide legal representative field"`
|
||||||
End Date `json:"End"`
|
Begin Date `json:"Begin"`
|
||||||
Weeks []Week `json:"Weeks"`
|
End Date `json:"End"`
|
||||||
|
Weeks []Week `json:"Weeks"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue