{{ extends "_base" }} {{ import "../../_modules/form" }} {{ block script() }} {{ end }} {{ block body_content() }} {{ .Chart.Name ? "Edit" : "Create" }} chart {{ i18n("field.name") }} {{ i18n("field.title") }} {{ i18n("field.desc") }} {{ i18n("field.width") }} {{ yield option(value="1", selected=.Chart.Width) }} {{ yield option(value="2", selected=.Chart.Width) }} {{ yield option(value="3", selected=.Chart.Width) }} {{ yield option(value="4", selected=.Chart.Width) }} {{ yield option(value="5", selected=.Chart.Width) }} {{ yield option(value="6", selected=.Chart.Width) }} {{ yield option(value="7", selected=.Chart.Width) }} {{ yield option(value="8", selected=.Chart.Width) }} {{ yield option(value="9", selected=.Chart.Width) }} {{ yield option(value="10", selected=.Chart.Width) }} {{ yield option(value="11", selected=.Chart.Width) }} {{ yield option(value="12", selected=.Chart.Width) }} {{ i18n("field.height") }} {{ i18n("field.unit") }} {{ yield option(value="", label="None", selected=.Chart.Unit) }} {{ yield option(value="percent:100", label="0-100", selected=.Chart.Unit) }} {{ yield option(value="percent:1", label="0.0-1.0", selected=.Chart.Unit) }} {{ yield option(value="time:ns", label="Nanoseconds", selected=.Chart.Unit) }} {{ yield option(value="time:µs", label="Microseconds", selected=.Chart.Unit) }} {{ yield option(value="time:ms", label="Milliseconds", selected=.Chart.Unit) }} {{ yield option(value="time:s", label="Seconds", selected=.Chart.Unit) }} {{ yield option(value="time:m", label="Minutes", selected=.Chart.Unit) }} {{ yield option(value="time:h", label="Hours", selected=.Chart.Unit) }} {{ yield option(value="time:d", label="Days", selected=.Chart.Unit) }} {{ yield option(value="size:bits", label="Bits", selected=.Chart.Unit) }} {{ yield option(value="size:bytes", label="Bytes", selected=.Chart.Unit) }} {{ yield option(value="size:kilobytes", label="Kilobytes", selected=.Chart.Unit) }} {{ yield option(value="size:megabytes", label="Megabytes", selected=.Chart.Unit) }} {{ yield option(value="size:gigabytes", label="Gigabytes", selected=.Chart.Unit) }} {{ i18n("field.type") }} {{ yield radio(name="type", value="line", label="Line", checked=.Chart.Type) }} {{ yield radio(name="type", value="bar", label="Bar", checked=.Chart.Type) }} {{ yield radio(name="type", value="pie", label="Pie", checked=.Chart.Type) }} {{ yield radio(name="type", value="gauge", label="Gauge", checked=.Chart.Type) }} {*{{ yield radio(name="type", value="table", label="Table", checked=.Chart.Type) }}*} {{ i18n("field.dashboard") }} {{ yield radio(name="dashboard", value="", label="Any", checked=.Chart.Dashboard) }} {{ yield radio(name="dashboard", value="home", label="Home", checked=.Chart.Dashboard) }} {{ yield radio(name="dashboard", value="service", label="Service", checked=.Chart.Dashboard) }} {*{{ yield radio(name="dashboard", value="task", label="Task", checked=.Chart.Dashboard) }}*} Metrics Legend Query {{ range i, c := .Chart.Metrics }} {{ end }} {{ yield form_submit(url="/system/chart/") }} {{ end }}