Blank 'notes' page for Part model

This commit is contained in:
Oliver Walters 2020-01-31 20:38:29 +11:00
parent aa2f63830e
commit da01177d23
3 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,13 @@
{% extends "part/part_base.html" %}
{% load static %}
{% load i18n %}
{% block details %}
{% include 'part/tabs.html' with tab='notes' %}
<h4>{% trans "Part Notes" %}</h4>
Notes field goes here
{% endblock %}

View File

@ -54,4 +54,7 @@
<li{% ifequal tab 'attachments' %} class="active"{% endifequal %}>
<a href="{% url 'part-attachments' part.id %}">{% trans "Attachments" %} {% if part.attachment_count > 0 %}<span class="badge">{{ part.attachment_count }}</span>{% endif %}</a>
</li>
<li{% ifequal tab 'notes' %} class="active"{% endifequal %}>
<a href="{% url 'part-notes' part.id %}">{% trans "Notes" %}</a>
</li>
</ul>

View File

@ -52,6 +52,7 @@ part_detail_urls = [
url(r'^orders/?', views.PartDetail.as_view(template_name='part/orders.html'), name='part-orders'),
url(r'^track/?', views.PartDetail.as_view(template_name='part/track.html'), name='part-track'),
url(r'^attachments/?', views.PartDetail.as_view(template_name='part/attachments.html'), name='part-attachments'),
url(r'^notes/?', views.PartDetail.as_view(template_name='part/notes.html'), name='part-notes'),
url(r'^qr_code/?', views.PartQRCode.as_view(), name='part-qr'),