Administration, organizations access rights and véhicles booking

This commit is contained in:
2022-08-12 14:53:54 +02:00
parent 7225d027c9
commit 0bb915059d
34 changed files with 1839 additions and 245 deletions

View File

@@ -1,7 +1,9 @@
package renderer
import (
"encoding/json"
"fmt"
"html/template"
"time"
)
@@ -47,6 +49,11 @@ func GenderISO5218(d any) string {
return ""
}
func JSON(v any) template.JS {
result, _ := json.Marshal(v)
return template.JS(result)
}
func Dict(v ...interface{}) map[string]interface{} {
dict := map[string]interface{}{}
lenv := len(v)