Show timer, set time on create
This commit is contained in:
@ -7,6 +7,20 @@ import (
|
||||
templ TimerView(timer model.Timer) {
|
||||
<h1>This is timer { timer.Name } </h1>
|
||||
<p><a href="/">Back to list</a></p>
|
||||
<p>Start time: { timer.StartTime.String() }</p>
|
||||
<p>End time: { timer.EndTime.String() }</p>
|
||||
<p>Start time: <local-date>{ timer.StartTime.AsUTCString() }</local-date></p>
|
||||
<p>End time: <local-date>{ timer.EndTime.AsUTCString() }</local-date></p>
|
||||
<p>
|
||||
Total time:
|
||||
<timer-countdown
|
||||
start={ timer.StartTime.AsUTCString() }
|
||||
end={ timer.EndTime.AsUTCString() }
|
||||
></timer-countdown>
|
||||
</p>
|
||||
<p>
|
||||
Remaining time:
|
||||
<timer-countdown
|
||||
end={ timer.EndTime.AsUTCString() }
|
||||
></timer-countdown>
|
||||
</p>
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user