Files
old-backend/app/views/qor/actions/9.action.tmpl
2023-09-07 13:04:34 +02:00

13 lines
460 B
Cheetah

{{$context := .}}
{{$result := .Result}}
{{$allowed_actions := (allowed_actions $context.Resource.GetActions $context.Action $result)}}
{{$resource := .Resource}}
{{if gt (len $allowed_actions) 0 }}
<div class="qor-action-forms" data-toggle="qor.action.bulk">
{{range $action := $allowed_actions}}
{{render_with "shared/action_item" (to_map "Action" $action "Result" $result "Context" $context "Resource" $resource)}}
{{end}}
</div>
{{end}}