You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Hydro/packages/ui-default/templates/partials/discussion_edit_form.html

46 lines
1.3 KiB
HTML

{% import "components/form.html" as form with context %}
<div class="row">
<div class="medium-8 columns">
<label>
{{ _('Title') }}
<input
name="title" placeholder="{{ _('title') }}"
value="{{ ddoc.title|default('') }}"
class="textbox" autofocus>
</label>
</div>
<div class="medium-2 columns">
<label>
<br>
<label class="checkbox">
<input type="checkbox" name="highlight" value="on" class="checkbox"
{%- if ddoc.highlight %} checked{% endif -%}
{%- if not handler.user.hasPerm(perm.PERM_HIGHLIGHT_DISCUSSION) %} disabled{% endif -%}
>{{ _('Highlight') }}
</label>
</label>
</div>
<div class="medium-2 columns">
<label>
<br>
<label class="checkbox">
<input type="checkbox" name="pin" value="on" class="checkbox"
{%- if ddoc.pin %} checked{% endif -%}
{%- if not handler.user.hasPerm(perm.PERM_PIN_DISCUSSION) %} disabled{% endif -%}
>{{ _('Pin') }}
</label>
</label>
</div>
</div>
{{ form.form_textarea({
columns:12,
label:'Content',
name:'content',
value:ddoc.content|default(''),
hotkeys:'ctrl+enter:submit',
markdown:true,
required:true,
extra_style:'height: 500px',
extra_textarea_class:'auto-resize'
}) }}