diff --git a/assets/templates/items/form.tmpl b/assets/templates/items/form.tmpl index 96294ba..4f1a79c 100644 --- a/assets/templates/items/form.tmpl +++ b/assets/templates/items/form.tmpl @@ -5,6 +5,11 @@ {{ $fields_present = true }} {{ end }} +{{ $shares_present := false }} +{{ if (gt (len (index .item.FieldsSection "fields")) 0) }} + {{ $shares_present = true }} +{{ end }} +
@@ -13,6 +18,7 @@ Fields {{ end }} Relations + Shares
@@ -98,6 +104,14 @@
+ + {{ if $shares_present }} + + {{ end }}