mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
24 lines
729 B
Cheetah
24 lines
729 B
Cheetah
{{ define "content" }}
|
|
<div class="editor container {{ .Class }}">
|
|
<form method="POST" action="./">
|
|
{{ if or (eq .Class "frontmatter-only") (eq .Class "complete") }}
|
|
<div class="frontmatter">
|
|
{{ template "blocks" .FrontMatter }}
|
|
<button class="add">Add field</button>
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ if or (eq .Class "content-only") (eq .Class "complete") }}
|
|
<div class="content">
|
|
<div id="editor" data-mode="{{ .Mode }}"></div>
|
|
<textarea name="content">{{ .Content }}</textarea>
|
|
</div>
|
|
{{ end }}
|
|
|
|
<div>
|
|
<input type="submit" data-type="{{ .Class }}" value="Save">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
{{ end }}
|