Add update location page.
This commit is contained in:
parent
44e39fa44a
commit
8cd11b350d
4 changed files with 212 additions and 0 deletions
9
html.go
9
html.go
|
|
@ -21,6 +21,7 @@ var (
|
|||
reportDetail = newBuiltTemplate("report-detail", "base")
|
||||
reportEvidence = newBuiltTemplate("report-evidence", "base")
|
||||
reportSchedule = newBuiltTemplate("report-schedule", "base")
|
||||
reportUpdate = newBuiltTemplate("report-update", "base")
|
||||
signin = newBuiltTemplate("signin", "base")
|
||||
signup = newBuiltTemplate("signup", "base")
|
||||
)
|
||||
|
|
@ -147,6 +148,14 @@ func htmlReportSchedule(w io.Writer, code string) error {
|
|||
return reportSchedule.ExecuteTemplate(w, data)
|
||||
}
|
||||
|
||||
func htmlReportUpdate(w io.Writer, code string) error {
|
||||
nextURL := BaseURL + "/report/" + code + "/evidence"
|
||||
data := ContentReportDetail{
|
||||
NextURL: nextURL,
|
||||
}
|
||||
return reportUpdate.ExecuteTemplate(w, data)
|
||||
}
|
||||
|
||||
func htmlSignin(w io.Writer, errorCode string) error {
|
||||
data := ContentSignin{
|
||||
InvalidCredentials: errorCode == "invalid-credentials",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue