diff options
Diffstat (limited to 'templates/parts/entry.html')
-rw-r--r-- | templates/parts/entry.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/parts/entry.html b/templates/parts/entry.html index 9f05ffa..300f543 100644 --- a/templates/parts/entry.html +++ b/templates/parts/entry.html @@ -48,13 +48,15 @@ >Gem </button> {{end}} - {{ if .Detached }} + {{ if .Detached}} + {{ if .DateInfo.IsToday }} <button hx-get="/tracking" hx-trigger="click" hx-target="#entry-bar" hx-swap="outerHTML" >Tilbage</button> + {{ end }} {{ else }} {{ if .Entry }} <button @@ -77,5 +79,5 @@ hx-target="#entry-bar" hx-swap="outerHTML" >Manuel</button> - {{ end }} + {{ end }}<input readonly type="text" name="date" {{if .Entry}}value="{{ .Entry.Date }}"{{end}} /> </form> |