mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 01:36:08 +08:00
25 lines
653 B
HTML
25 lines
653 B
HTML
{% import "components/form.html" as form with context %}
|
|
{% if ddoc.highlight or handler.hasPerm(perm.PERM_HIGHLIGHT_DISCUSSION) %}
|
|
{{ form.form_checkbox({
|
|
label:'Highlight',
|
|
name:'highlight',
|
|
value:ddoc.highlight|default(false)
|
|
}) }}
|
|
{% endif %}
|
|
{{ form.form_text({
|
|
label:'Title',
|
|
name:'title',
|
|
value:ddoc.title|default(''),
|
|
autofocus:true,
|
|
required:true
|
|
}) }}
|
|
{{ form.form_textarea({
|
|
columns:12,
|
|
label:'Content',
|
|
name:'content',
|
|
value:ddoc.content|default(''),
|
|
hotkeys:'ctrl+enter:submit',
|
|
markdown:true,
|
|
required:true
|
|
}) }}
|