Added views for QOR admin

This commit is contained in:
Nedim
2023-09-07 13:04:34 +02:00
parent 40c6366608
commit f02e5e49cb
180 changed files with 18556 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
{{$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}}