Add text
This commit is contained in:
parent
746f42b82a
commit
00b73b8ac2
3
main.go
3
main.go
|
@ -33,7 +33,7 @@ var indexPageTemplate = `<html>
|
||||||
<form action="/moment" class="form" method="post">
|
<form action="/moment" class="form" method="post">
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="label">What did you do in the last <em class="js-counter"></em> minutes:</label>
|
<label class="label">What did you do in the last <em class="js-counter"></em> minutes:</label>
|
||||||
<div class="control"><input type="text" name="memo" class="input"></div>
|
<div class="control"><input type="text" name="memo" class="input" autofocus placeholder="add note / accomplishments"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<div class="control">
|
<div class="control">
|
||||||
|
@ -223,6 +223,7 @@ func loadMoments(db *bolt.DB, today string) ([]Moment, error) {
|
||||||
moments = append(moments, moment)
|
moments = append(moments, moment)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO(peter): if there are no moments, here we can add a moment for the start of the day
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user