2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-14 15:41:10 +00:00

Update requirements

- Use markdownify for rendering
- Use markdownx for editing
This commit is contained in:
Oliver Walters
2020-01-31 21:42:30 +11:00
parent da01177d23
commit c546ed5dcd
9 changed files with 42 additions and 33 deletions

View File

@@ -147,13 +147,6 @@
</div>
</div>
{% if part.notes %}
<div class="panel panel-default">
<div class="panel-heading"><b>{% trans "Notes" %}</b></div>
<div class="panel-body">{{ part.notes }}</div>
</div>
{% endif %}
{% endblock %}
{% block js_load %}

View File

@@ -1,6 +1,7 @@
{% extends "part/part_base.html" %}
{% load static %}
{% load i18n %}
{% load markdownify %}
{% block details %}
@@ -8,6 +9,18 @@
<h4>{% trans "Part Notes" %}</h4>
Notes field goes here
<div class='panel panel-default'>
<div class='panel-body'>
{{ part.notes | markdownify }}
</div>
</div>
<form method="post" action="">
{% csrf_token %}
{{ form }}
</form>
{{ form.media }}
{% endblock %}