\RequirePackage{translate}

% In a devoir controls the adding of an identification part (first and last...)
\newboolean{devoir@boolean@withIdentity}
\setboolean{devoir@boolean@withIdentity}{true}

\newcommand*{\withIdentity}{\setboolean{devoir@boolean@withIdentity}{true}}
\newcommand*{\withoutIdentity}{\setboolean{devoir@boolean@withIdentity}{false}}

\numero{\translate{Assignment}}


\title{\insertsep{\imta@var@type}{\hspace{-0.8ex},}{\imta@var@code}}
%\subtitle{\imta@var@matiere}
\setboolean{imta@boolean@withDate}{true}

\RequirePackage{lastpage}
\renewcommand*{\middlefoot}{%
  \textrm{\thepage{} sur {\color{black}\pageref{LastPage}}}%
}
\renewcommand*{\righthead}{\small\imta@var@numero}

% Cartouche
\newcommand{\cartouche}{%
  \ifthenelse{\boolean{devoir@boolean@withIdentity}}{%
    \fbox{%
      \begin{minipage}{15cm}%
        \rule{0mm}{8mm} {\Large\textbf{\translate{First name}:}}

        \rule[-4mm]{0mm}{13mm} {\Large\textbf{\translate{Last name}:}}
      \end{minipage}%
    }%
  }{}%
}

