using feature in views

This commit is contained in:
Matthias 2021-04-15 14:52:08 +02:00
parent d49977bed3
commit 098ac0c461
23 changed files with 50 additions and 36 deletions

View File

@ -4,7 +4,7 @@
{% load inventree_extras %}
{% block page_title %}
InvenTree | Allocate Parts
{% inventree_title %} | {% trans "Allocate Parts" %}
{% endblock %}
{% block menubar %}

View File

@ -3,9 +3,10 @@
{% load static %}
{% load i18n %}
{% load status_codes %}
{% load inventree_extras %}
{% block page_title %}
InvenTree | {% trans "Build Order" %} - {{ build }}
{% inventree_title %} | {% trans "Build Order" %} - {{ build }}
{% endblock %}
{% block pre_content %}

View File

@ -5,7 +5,7 @@
{% load i18n %}
{% block page_title %}
InvenTree | {% trans "Build Orders" %}
{% inventree_title %} | {% trans "Build Orders" %}
{% endblock %}
{% block content %}

View File

@ -6,7 +6,7 @@
{% block page_title %}
InvenTree | {% trans "Company" %} - {{ company.name }}
{% inventree_title %} | {% trans "Company" %} - {{ company.name }}
{% endblock %}

View File

@ -2,9 +2,10 @@
{% load static %}
{% load i18n %}
{% load inventree_extras %}
{% block page_title %}
InvenTree | {% trans "Supplier List" %}
{% inventree_title %} | {% trans "Supplier List" %}
{% endblock %}
{% block content %}

View File

@ -1,9 +1,10 @@
{% extends "two_column.html" %}
{% load static %}
{% load i18n %}
{% load inventree_extras %}
{% block page_title %}
InvenTree | {% trans "Supplier Part" %}
{% inventree_title %} | {% trans "Supplier Part" %}
{% endblock %}
{% block thumbnail %}

View File

@ -6,7 +6,7 @@
{% load status_codes %}
{% block page_title %}
InvenTree | {% trans "Purchase Order" %}
{% inventree_title %} | {% trans "Purchase Order" %}
{% endblock %}
{% block thumbnail %}

View File

@ -5,7 +5,7 @@
{% load i18n %}
{% block page_title %}
InvenTree | {% trans "Purchase Orders" %}
{% inventree_title %} | {% trans "Purchase Orders" %}
{% endblock %}
{% block content %}

View File

@ -6,7 +6,7 @@
{% load status_codes %}
{% block page_title %}
InvenTree | {% trans "Sales Order" %}
{% inventree_title %} | {% trans "Sales Order" %}
{% endblock %}
{% block pre_content %}

View File

@ -5,7 +5,7 @@
{% load i18n %}
{% block page_title %}
InvenTree | {% trans "Sales Orders" %}
{% inventree_title %} | {% trans "Sales Orders" %}
{% endblock %}
{% block content %}

View File

@ -1,14 +1,15 @@
{% extends "base.html" %}
{% load static %}
{% load i18n %}
{% load inventree_extras %}
{% block page_title %}
{% if part %}
InvenTree | {% trans "Part" %} - {{ part.full_name }}
{% inventree_title %} | {% trans "Part" %} - {{ part.full_name }}
{% elif category %}
InvenTree | {% trans "Part Category" %} - {{ category }}
{% inventree_title %} | {% trans "Part Category" %} - {{ category }}
{% else %}
InvenTree | {% trans "Part List" %}
{% inventree_title %} | {% trans "Part List" %}
{% endif %}
{% endblock %}

View File

@ -5,7 +5,7 @@
{% load i18n %}
{% block page_title %}
InvenTree | {% trans "Stock Item" %} - {{ item }}
{% inventree_title %} | {% trans "Stock Item" %} - {{ item }}
{% endblock %}
{% block sidenav %}

View File

@ -1,12 +1,13 @@
{% extends "base.html" %}
{% load static %}
{% load i18n %}
{% load inventree_extras %}
{% block page_title %}
{% if location %}
InvenTree | {% trans "Stock Location" %} - {{ location }}
{% inventree_title %} | {% trans "Stock Location" %} - {{ location }}
{% else %}
InvenTree | {% trans "Stock" %}
{% inventree_title %} | {% trans "Stock" %}
{% endif %}
{% endblock %}

View File

@ -2,9 +2,10 @@
{% load static %}
{% load i18n %}
{% load inventree_extras %}
{% block page_title %}
InvenTree | {% trans "Search Results" %}
{% inventree_title %} | {% trans "Search Results" %}
{% endblock %}
{% block content %}

View File

@ -16,6 +16,7 @@
{% include "InvenTree/settings/header.html" %}
<tbody>
{% include "InvenTree/settings/setting.html" with key="INVENTREE_INSTANCE" icon="fa-info-circle" %}
{% include "InvenTree/settings/setting.html" with key="INVENTREE_INSTANCE_TITLE" icon="fa-info-circle" %}
{% include "InvenTree/settings/setting.html" with key="INVENTREE_BASE_URL" icon="fa-globe" %}
{% include "InvenTree/settings/setting.html" with key="INVENTREE_COMPANY_NAME" icon="fa-building" %}
{% include "InvenTree/settings/setting.html" with key="INVENTREE_DEFAULT_CURRENCY" icon="fa-dollar-sign" %}

View File

@ -2,9 +2,10 @@
{% load i18n %}
{% load static %}
{% load inventree_extras %}
{% block page_title %}
InvenTree | {% trans "Settings" %}
{% inventree_title %} | {% trans "Settings" %}
{% endblock %}
{% block content %}

View File

@ -60,7 +60,7 @@
<title>
{% block page_title %}
InvenTree
{% inventree_title %}
{% endblock %}
</title>
</head>

View File

@ -1,6 +1,7 @@
{% load static %}
{% load i18n %}
{% load crispy_forms_tags %}
{% load crispy_forms_tags %}
{% load inventree_extras %}
<!DOCTYPE html>
<html lang="en">
@ -29,7 +30,7 @@
</style>
<title>
InvenTree
{% inventree_title %}
</title>
</head>
@ -42,7 +43,7 @@
<div class='container-fluid'>
<div class='clearfix content-heading login-header'>
<img class="pull-left" src="{% static 'img/inventree.png' %}" width="60" height="60"/>
<span><h3>InvenTree</h3></span>
<span><h3>{% inventree_title %} </h3></span>
</div>
<hr>

View File

@ -1,5 +1,6 @@
{% load static %}
{% load i18n %}
{% load inventree_extras %}
<!DOCTYPE html>
<html lang="en">
@ -28,7 +29,7 @@
</style>
<title>
InvenTree
{% inventree_title %}
</title>
</head>
@ -44,7 +45,7 @@
<div class='container-fluid'>
<div class='clearfix content-heading login-header'>
<img class="pull-left" src="{% static 'img/inventree.png' %}" width="60" height="60"/>
<span><h3>InvenTree</h3></span>
<span><h3>{% inventree_title %} </h3></span>
</div>
<hr>

View File

@ -1,6 +1,7 @@
{% load static %}
{% load i18n %}
{% load crispy_forms_tags %}
{% load crispy_forms_tags %}
{% load inventree_extras %}
<!DOCTYPE html>
<html lang="en">
@ -29,7 +30,7 @@
</style>
<title>
InvenTree
{% inventree_title %}
</title>
</head>
@ -42,7 +43,7 @@
<div class='container-fluid'>
<div class='clearfix content-heading login-header'>
<img class="pull-left" src="{% static 'img/inventree.png' %}" width="60" height="60"/>
<span><h3>InvenTree</h3></span>
<span><h3>{% inventree_title %} </h3></span>
</div>
<hr>

View File

@ -1,6 +1,7 @@
{% load static %}
{% load i18n %}
{% load crispy_forms_tags %}
{% load crispy_forms_tags %}
{% load inventree_extras %}
<!DOCTYPE html>
<html lang="en">
@ -29,7 +30,7 @@
</style>
<title>
InvenTree
{% inventree_title %}
</title>
</head>
@ -42,7 +43,7 @@
<div class='container-fluid'>
<div class='clearfix content-heading login-header'>
<img class="pull-left" src="{% static 'img/inventree.png' %}" width="60" height="60"/>
<span><h3>InvenTree</h3></span>
<span><h3>{% inventree_title %} </h3></span>
</div>
<hr>

View File

@ -1,6 +1,7 @@
{% load static %}
{% load i18n %}
{% load crispy_forms_tags %}
{% load crispy_forms_tags %}
{% load inventree_extras %}
<!DOCTYPE html>
<html lang="en">
@ -29,7 +30,7 @@
</style>
<title>
InvenTree
{% inventree_title %}
</title>
</head>
@ -42,7 +43,7 @@
<div class='container-fluid'>
<div class='clearfix content-heading login-header'>
<img class="pull-left" src="{% static 'img/inventree.png' %}" width="60" height="60"/>
<span><h3>InvenTree</h3></span>
<span><h3>{% inventree_title %} </h3></span>
</div>
<hr>
<div class='container-fluid'>

View File

@ -1,6 +1,7 @@
{% load static %}
{% load i18n %}
{% load crispy_forms_tags %}
{% load crispy_forms_tags %}
{% load inventree_extras %}
<!DOCTYPE html>
<html lang="en">
@ -29,7 +30,7 @@
</style>
<title>
InvenTree
{% inventree_title %}
</title>
</head>
@ -42,7 +43,7 @@
<div class='container-fluid'>
<div class='clearfix content-heading login-header'>
<img class="pull-left" src="{% static 'img/inventree.png' %}" width="60" height="60"/>
<span><h3>InvenTree</h3></span>
<span><h3>{% inventree_title %} </h3></span>
</div>
<hr>