Add markdown editor when editing own torrents

This commit is contained in:
Nathan Yam 2017-05-14 16:21:20 +10:00
parent de4891dfc6
commit d45c9dca43
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
{% block title %}Edit {{ torrent.display_name }} :: {{ config.SITE_NAME }}{% endblock %}
{% block body %}
{% from "_formhelpers.html" import render_field %}
{% from "_formhelpers.html" import render_markdown_editor %}
<h1>Edit Torrent</h1>
@ -28,7 +29,7 @@
<div class="row">
<div class="form-group col-md-6">
{{ render_field(form.description, class_='form-control') }}
{{ render_markdown_editor(form.description, field_name='description') }}
</div>
</div>