|
|
|
@ -945,7 +945,7 @@ func (s *Server) handleValidateCarNumber() http.HandlerFunc {
|
|
|
|
if !isUnique {
|
|
|
|
if !isUnique {
|
|
|
|
w.Write([]byte("<div class='alert alert-danger'>Car number is already in use</div>"))
|
|
|
|
w.Write([]byte("<div class='alert alert-danger'>Car number is already in use</div>"))
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
w.WriteHeader(http.StatusOK)
|
|
|
|
w.Write([]byte("<div class='alert alert-success'>Car number is available</div>"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|