1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 10:00:01 +00:00

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

View file

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