mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 15:00:01 +00:00
Add markdown editor when editing own torrents
This commit is contained in:
parent
de4891dfc6
commit
d45c9dca43
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue