%TMPL:INCLUDE{"view"}%

%TMPL:DEF{"form"}%%TMPL:END%

%TMPL:DEF{"beforetext"}%<!-- --> 
<h1>[[%WEB%.%TOPIC%]]</h1>

%RENDERFORDISPLAY{exclude="TopicType|TopicTitle"}%

<noautolink>
%RENDERMETADATA{
  "effort" 
  topic="%BASEWEB%.%BASETOPIC%"
  fields="Date, From, To, Description"
  header="<div class='metaDataView timeTrackerView'>$n| *Pos* | *Date* | *From* | *To* | *Description* | *Hours* | *Charge*| *Tax*| $n"
  format="| $index | $Date | $From | $To | $Description |  $percntTMPL:P{\"hours\"}$percnt |  $percntTMPL:P{\"charge\"}$percnt |  $percntTMPL:P{\"tax\"}$percnt$actions |$n"
  footer="||||| %MAKETEXT{"Sum"}% |  $percntTMPL:P{\"sumabove\"}$percnt |  $percntTMPL:P{\"sumabove\"}$percnt |  $percntTMPL:P{\"sumabove\"}$percnt |
||||| %MAKETEXT{"Total"}% |||  <b>&euro;&nbsp;$percntCALC{\"$FORMAT(NUMBER, 2, $EVAL($T(R$ROW(-1):C$COLUMN())+$T(R$ROW(-1):C$COLUMN(-1))))\"}$percnt</b> |
  </div>"
  sort="Date"
  edittitle="%MAKETEXT{"Edit this effort"}%"
}%
</noautolink>

%NEWMETADATA{"effort" 
  buttontitle="%MAKETEXT{"Add effort"}%"
  title="%MAKETEXT{"Add a new effort"}%"
}%
%INCLUDE{"%SYSTEMWEB%/JSCalendarContribInline"}%

<style>
.timeTrackerView tbody tr td:nth-child(2) {
  white-space:nowrap;
}
.effort {
  margin:0;
  padding:0;
  border:0;
}
</style>

%TMPL:END%

%TMPL:DEF{"hours"}%%CALC{"$FORMAT(NUMBER, 2, $TIMEDIFF($TIME($T(R$ROW():C2) - $T(R$ROW():C3)),$TIME($T(R$ROW():C2) - $T(R$ROW():C4)),hour))"}%%TMPL:END%

%TMPL:DEF{"charge"}%%CALC{"$FORMAT(NUMBER, 2, $EVAL($T(R$ROW():C$COLUMN(-1))*%FORMFIELD{"Rate" default="%STDRATE%" alttext="%STDRATE%"}%))"}%%TMPL:END%

%TMPL:DEF{"tax"}%%CALC{"$FORMAT(NUMBER, 2, $EVAL($T(R$ROW():C$COLUMN(-1))*%FORMFIELD{"Tax" default="0" alttext="0}%/100))"}%%TMPL:END%

%TMPL:DEF{"sumabove"}%%CALC{"$FORMAT(NUMBER, 2, $SUM($ABOVE()))"}%%TMPL:END%

Kontakt
Pädagogische Hochschule Schwyz
Zaystrasse 42
CH-6410 Goldau
T +41 41 859 05 90
info@phsz.ch Dies ist ein Wiki des Fachkerns Medien und Informatik der Pädagogischen Hochschule Schwyz. Für Fragen wenden Sie sich bitte an wikiadmin@phsz.ch