{{ $ID := .Schema.ModelID }} {{ $new := eq $ID 0 }} {{ $edit := ne $ID 0 }} {{ $inlineData := .Schema.InlinesData }} {{ $RootURL := .RootURL }} {{ $ReadOnlyF := .ReadOnlyF }} {{range $index, $element := .Schema.Fields}} {{if .FormDisplay}} {{ $readonly := .ReadOnly }} {{ $type := .Type }} {{ $is_readonly := or (eq $readonly "true") (and (eq $readonly "true,edit") $edit) (and (eq $readonly "true,new") $new) (eq .Name $ReadOnlyF)}} {{ if eq .Type "id" }} {{ else }} {{ end }} {{if eq $type "string"}} {{else if eq $type "code"}} {{else if (or (eq $type "image") (eq $type "file"))}} {{else if eq $type "multilingual"}} {{$required := .Required}} {{else if eq $type "date"}} {{else if eq $type "email"}} {{else if or (eq $type "number") (eq $type "progress_bar")}} {{else if eq $type "bool"}} {{else if eq $type "id"}} {{else if eq $type "list"}} {{else if eq $type "fk"}} {{else if eq $type "m2m"}} {{else if eq $type "link"}} {{else if eq $type "password"}} {{else if eq $type "html"}} {{else}} {{end}} {{end}} {{end}}
{{if ne $ID 0}} {{end}} {{if .CanUpdate}}
{{if not .SaveAndContinue}} {{end}}
{{end}}
{{ if eq .Help "" }}{{ else }} {{.Help}}{{ end }} {{if ne "" (.ErrMsg)}} {{.ErrMsg}}{{ end }} {{if eq $type "file"}} {{.Value}} {{else}} {{end}}
{{ $MainModel := .Schema.Name }} {{ $MainModelS := .Schema.ModelName }} {{ $MainModelID := .Schema.ModelID }} {{ $langCode := .Language.Code}} {{ if eq .Schema.ModelID 0 }} {{ else }} {{ range $inlineIndex, $inlineSchema := .Schema.Inlines }} {{ $Inline := . }}




{{$modelName := .Name}} {{range $Inline.Fields}} {{if .ListDisplay}} {{end}} {{end}} {{$inline := index $inlineData $inlineIndex}} {{range $inline.Rows}} {{ range . }} {{end}} {{end}}
{{if eq .Type "id"}}{{$modelName}}{{else}}{{.Name}}{{end}}
{{.}}
{{ end }} {{ end }}