-
-
Notifications
You must be signed in to change notification settings - Fork 671
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1493 from SchrodingersGat/multi-location-print
Split "part category" view into separate pages
- Loading branch information
Showing
17 changed files
with
525 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{% extends "part/category.html" %} | ||
|
||
{% load i18n %} | ||
{% load inventree_extras %} | ||
{% load static %} | ||
|
||
{% block menubar %} | ||
{% include 'part/category_navbar.html' with tab='subcategories' %} | ||
{% endblock %} | ||
|
||
{% block category_content %} | ||
|
||
<div class='panel panel-default panel-inventree'> | ||
|
||
<div class='panel-heading'> | ||
<h4>{% trans "Subcategories" %}</h4> | ||
</div> | ||
|
||
<div id='button-toolbar'> | ||
<div class='button-toolbar container-fluid' style='float: right;'> | ||
|
||
<div class='filter-list' id='filter-list-category'> | ||
<!-- An empty div in which the filter list will be constructed --> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<table class='table table-striped table-condensed' id='subcategory-table' data-toolbar='#button-toolbar'></table> | ||
|
||
</div> | ||
{% endblock %} | ||
|
||
{% block js_ready %} | ||
{{ block.super }} | ||
|
||
enableNavbar({ | ||
label: 'category', | ||
toggleId: '#category-menu-toggle', | ||
}); | ||
|
||
loadPartCategoryTable($('#subcategory-table'), { | ||
params: { | ||
{% if category %} | ||
parent: {{ category.pk }} | ||
{% else %} | ||
parent: 'null' | ||
{% endif %} | ||
} | ||
}); | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.