diff --git a/InvenTree/InvenTree/static/css/inventree.css b/InvenTree/InvenTree/static/css/inventree.css index 227b910755..b920205ca3 100644 --- a/InvenTree/InvenTree/static/css/inventree.css +++ b/InvenTree/InvenTree/static/css/inventree.css @@ -328,6 +328,12 @@ width: 100%; } +input[type="submit"] { + color: #333; + background-color: #e6e6e6; + border-color: #adadad; +} + .modal textarea { width: 100%; } diff --git a/InvenTree/part/templates/part/notes.html b/InvenTree/part/templates/part/notes.html index 412ea09b70..bbbafed4c1 100644 --- a/InvenTree/part/templates/part/notes.html +++ b/InvenTree/part/templates/part/notes.html @@ -8,27 +8,30 @@ {% include 'part/tabs.html' with tab='notes' %} -

{% trans "Part Notes" %}

{% if editing %} - +

{% trans "Part Notes" %}

{% csrf_token %} - - + {{ form }} +
+
{{ form.media }} {% else %} - -
-
- {% trans "Notes" %} - +
+
+

{% trans "Part Notes" %}

+
+ +
+
+
{{ part.notes | markdownify }}
@@ -41,8 +44,11 @@ {% block js_ready %} {{ block.super }} +{% if editing %} +{% else %} $("#edit-notes").click(function() { location.href = "{% url 'part-notes' part.id %}?edit=1"; }); +{% endif %} {% endblock %} \ No newline at end of file