t+= "This Document is still <strong class=headline>waiting for approval</strong>.<BR><BR>"
t+="It has first been sent to approval on: <strong class=headline>%s</strong><BR>" % dFirstReq
if dLastReq == "0000-00-00 00:00:00":
t+= "Last approval e-mail was sent on: <strong class=headline>%s</strong><BR>" % dFirstReq
else:
t+= "Last approval e-mail was sent on: <strong class=headline>%s</strong><BR>" % dLastReq
t+="<BR>You can send an approval request e-mail again by clicking the following button:"
t+= "<BR><INPUT class=\"adminbutton\" type=submit name=send value=\"Send Again\" onClick=\"return confirm('WARNING! An e-mail will be send to your referee if you confirm.')\">"
# We also display a button for the referee
if acc_authorize_action(uid, "referee",verbose=0,doctype=doctype, categ=categ):
t+= "<br>As a referee for this document, you may click this button to approve or reject it:"