nirvash/templates/file_upload_process.html

18 lines
No EOL
410 B
HTML

{{ $slug := ((.Context).Value "params").Slug }}
{{ $uploadError := ((.Context).Value "file-manager").AddFile $slug . }}
{{ template "header" . }}
{{ if $uploadError }}
<h2>Upload Error</h2>
<span class="adapter-error">{{($uploadError).Error}}</span>
{{ else }}
<h2>Upload Successful</h2>
<span class="adapter-success">The file has been uploaded successfuly</span>
{{ end }}
{{ template "footer" . }}