mirror of https://github.com/statping/statping
template fix
parent
64bedb7afb
commit
6b5660b8d8
2
Makefile
2
Makefile
|
@ -1,4 +1,4 @@
|
|||
VERSION=0.71
|
||||
VERSION=0.72
|
||||
BINARY_NAME=statup
|
||||
GOPATH:=$(GOPATH)
|
||||
GOCMD=go
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
{{define "form_service"}}
|
||||
{{$url := "/service"}}
|
||||
{{if .}}
|
||||
{{$url = "/service/{{.Id}}"}}
|
||||
{{end}}
|
||||
<form action="{{$url}}" method="POST">
|
||||
<form action="{{if .}}/service/{{.Id}}{{else}}/service{{end}}" method="POST">
|
||||
<div class="form-group row">
|
||||
<label for="service_name" class="col-sm-4 col-form-label">Service Name</label>
|
||||
<div class="col-sm-8">
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
{{define "form_user"}}
|
||||
{{$url := "/user"}}
|
||||
{{if .}}
|
||||
{{$url = "/user/{{.Id}}"}}
|
||||
{{end}}
|
||||
<form action="{{$url}}" method="POST">
|
||||
<form action="{{if .}}/user/{{.Id}}{{else}}/user{{end}}" method="POST">
|
||||
<div class="form-group row">
|
||||
<label for="username" class="col-sm-4 col-form-label">Username</label>
|
||||
<div class="col-6 col-md-4">
|
||||
|
|
Loading…
Reference in New Issue