15 lines
683 B
HTML
15 lines
683 B
HTML
|
|
{{define "note-editor"}}
|
||
|
|
<div class="note-editor mt-2" data-note-key="{{.Scope}}:{{.ScopeKey}}" data-scope="{{.Scope}}" data-scope-key="{{.ScopeKey}}">
|
||
|
|
<div class="flex items-center justify-between mb-1">
|
||
|
|
<span class="text-xs text-gray-400">💬 备注 (Markdown)</span>
|
||
|
|
<span class="note-save-indicator text-xs"></span>
|
||
|
|
</div>
|
||
|
|
<textarea
|
||
|
|
class="note-textarea"
|
||
|
|
placeholder="{{if eq .Scope "overall"}}添加整体备注...{{else if eq .Scope "file"}}添加文件级备注...{{else}}添加备注...{{end}}"
|
||
|
|
rows="2"
|
||
|
|
oninput="NoteEditor.onInput(this, '{{.Scope}}', '{{.ScopeKey}}')"
|
||
|
|
>{{.Content}}</textarea>
|
||
|
|
</div>
|
||
|
|
{{end}}
|