27 lines
938 B
HTML
27 lines
938 B
HTML
{{- $defparams := dict "type" "button" "name" "submit"
|
|
"exec" "exec" "action" "" "label" "Submit" -}}
|
|
|
|
<div>
|
|
{{ $params := merge $defparams (
|
|
dict "mode" "view" "exec" "chmode" "action" "edit" "label" "Edit") -}}
|
|
{{ partial "pv/button" $params }}
|
|
|
|
{{- $params = merge $params (dict "action" "new" "label" "New") -}}
|
|
{{ partial "pv/button" $params }}
|
|
|
|
{{- $params = merge $params (
|
|
dict "mode" "edit new" "action" "view" "label" "Cancel") -}}
|
|
{{ partial "pv/button" $params }}
|
|
|
|
{{- $params = merge $defparams ( dict "mode" "edit" "label" "Save Changes") -}}
|
|
{{ partial "pv/button" $params }}
|
|
|
|
{{- $params = merge $params (dict "exec" "copynew" "label" "Copy Data") -}}
|
|
{{ partial "pv/button" $params }}
|
|
|
|
{{- $params = merge $params (dict "exec" "delete" "label" "Delete Item") -}}
|
|
{{ partial "pv/button" $params }}
|
|
|
|
{{- $params = merge $defparams ( dict "mode" "new" "label" "Create Item") -}}
|
|
{{ partial "pv/button" $params }}
|
|
</div>
|