oef/templates/users_show.html.tpl

28 lines
693 B
Smarty
Raw Normal View History

{{ define "content" }}
<div class="container">
{{template "breadcrumb" toSlice "ELEMENTS" (all "User") (.Data|string) "current"}}
{{template "show_header" dict "title" (.Data|string) "updatePath" (.Data.ID|update "User") "deletePath" (.Data.ID|delete "User")}}
<h2 class="karmen-relation-header">GENERAL SECTION</h2>
<div class="row">
<div class="col-md-12">
{{$options := `
title: "RELATIONS"
model: "MODEL"
icon: "ICON_CLASS"
`}}
{{$noElements := "NO ELEMENTS"}}
{{template "relation_list" dict "options" ($options|yaml) "data" .Data.RELATIONS "noElements" $noElements}}
</div>
</div>
</div>
{{ end }}