mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 04:55:44 +00:00
reduce templates to the raw basics
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -7,13 +7,6 @@
|
|||||||
{% endblock page_title %}
|
{% endblock page_title %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<h3>{% trans "Permission Denied" %}</h3>
|
||||||
<div class='container-fluid'>
|
{% trans "You do not have permission to view this page." %}
|
||||||
<h3>{% trans "Permission Denied" %}</h3>
|
|
||||||
|
|
||||||
<div class='alert alert-danger alert-block'>
|
|
||||||
{% trans "You do not have permission to view this page." %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
@ -9,15 +9,5 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h3>{% trans "Authentication Failure" %}</h3>
|
<h3>{% trans "Authentication Failure" %}</h3>
|
||||||
|
{% trans "You have been logged out from InvenTree." %}
|
||||||
<div class='alert alert-danger alert-block'>
|
|
||||||
{% trans "You have been logged out from InvenTree." %}
|
|
||||||
</div>
|
|
||||||
<hr>
|
|
||||||
<div class='btn-group float-right' role='group'>
|
|
||||||
<a type='button' class='btn btn-primary' href='{% url "account_login" %}'>
|
|
||||||
<span class='fas fa-sign-in-alt'></span> {% trans "Login" %}
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
@ -7,13 +7,6 @@
|
|||||||
{% endblock page_title %}
|
{% endblock page_title %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<h3>{% trans "Page Not Found" %}</h3>
|
||||||
<div class='container-fluid'>
|
{% trans "The requested page does not exist" %}
|
||||||
<h3>{% trans "Page Not Found" %}</h3>
|
|
||||||
|
|
||||||
<div class='alert alert-danger alert-block'>
|
|
||||||
{% trans "The requested page does not exist" %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
@ -7,14 +7,7 @@
|
|||||||
{% endblock page_title %}
|
{% endblock page_title %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<h3>{% trans "Internal Server Error" %}</h3>
|
||||||
<div class='container-fluid'>
|
{% blocktrans %}The {{ inventree_title }} server raised an internal error{% endblocktrans %}<br>
|
||||||
<h3>{% trans "Internal Server Error" %}</h3>
|
{% trans "Refer to the error log in the admin interface for further details" %}
|
||||||
|
|
||||||
<div class='alert alert-danger alert-block'>
|
|
||||||
{% blocktrans %}The {{ inventree_title }} server raised an internal error{% endblocktrans %}<br>
|
|
||||||
{% trans "Refer to the error log in the admin interface for further details" %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
@ -11,61 +11,9 @@
|
|||||||
{% trans 'Site is in Maintenance' %}
|
{% trans 'Site is in Maintenance' %}
|
||||||
{% endblock page_title %}
|
{% endblock page_title %}
|
||||||
|
|
||||||
{% block body_class %}login-screen' style='background: url({% inventree_splash %}); background-size: cover;{% endblock body_class %}
|
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
<h3>{% block body_title %}{% trans 'Site is in Maintenance' %}{% endblock body_title %}</h3>
|
||||||
<div class='container-fluid'>
|
{% block content %}
|
||||||
<div class='notification-area' id='alerts'>
|
{% trans 'The site is currently in maintenance and should be up again soon!' %}
|
||||||
<!-- Div for displayed alerts -->
|
{% endblock content %}
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class='main body-wrapper login-screen d-flex'>
|
|
||||||
|
|
||||||
<div class='login-container'>
|
|
||||||
<div class="row">
|
|
||||||
<div class='container-fluid'>
|
|
||||||
|
|
||||||
<div class='clearfix content-heading login-header d-flex flex-wrap'>
|
|
||||||
<img class="pull-left" alt='{% trans "Image" %}' src="{% inventree_logo %}" width="60" height="60"/>
|
|
||||||
{% include "spacer.html" %}
|
|
||||||
<span class='float-right'><h3>{% block body_title %}{% trans 'Site is in Maintenance' %}{% endblock body_title %}</h3></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class='container-fluid'>
|
|
||||||
<hr>
|
|
||||||
{% block content %}
|
|
||||||
{% trans 'The site is currently in maintenance and should be up again soon!' %}
|
|
||||||
{% endblock content %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% block extra_body %}
|
|
||||||
{% endblock extra_body %}
|
|
||||||
</div>
|
|
||||||
{% endblock body %}
|
{% endblock body %}
|
||||||
|
|
||||||
{% block js_base %}
|
|
||||||
<script type='text/javascript'>
|
|
||||||
$(document).ready(function () {
|
|
||||||
// notifications
|
|
||||||
{% if messages %}
|
|
||||||
{% for message in messages %}
|
|
||||||
showAlertOrCache(
|
|
||||||
'{{ message }}',
|
|
||||||
true,
|
|
||||||
{
|
|
||||||
style: 'info',
|
|
||||||
}
|
|
||||||
);
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
inventreeDocReady();
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
{% endblock js_base %}
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
@ -1,37 +0,0 @@
|
|||||||
{% extends "skeleton.html" %}
|
|
||||||
{% load i18n %}
|
|
||||||
{% load inventree_extras %}
|
|
||||||
|
|
||||||
{% block body %}
|
|
||||||
<body class='login-screen' style='background: url({% inventree_splash %}); background-size: cover;'>
|
|
||||||
<div class='container-fluid'>
|
|
||||||
<div class='notification-area' id='alerts'>
|
|
||||||
<!-- Div for displayed alerts -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class='main body-wrapper login-screen d-flex'>
|
|
||||||
|
|
||||||
<div class='login-container'>
|
|
||||||
<div class="row">
|
|
||||||
<div class='container-fluid'>
|
|
||||||
|
|
||||||
<div class='clearfix content-heading login-header d-flex flex-wrap'>
|
|
||||||
<img class="pull-left" src="{% inventree_logo %}" alt='{% trans "InvenTree logo" %}' width="60" height="60"/>
|
|
||||||
{% include "spacer.html" %}
|
|
||||||
<span class='float-right'><h3>{% inventree_title %}</h3></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class='container-fluid'>
|
|
||||||
<hr>
|
|
||||||
{% block content %}
|
|
||||||
{% endblock content %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% block extra_body %}
|
|
||||||
{% endblock extra_body %}
|
|
||||||
</div>
|
|
||||||
{% endblock body %}
|
|
@ -12,18 +12,14 @@
|
|||||||
|
|
||||||
{% include "favicon.html" %}
|
{% include "favicon.html" %}
|
||||||
|
|
||||||
<!-- CSS -->
|
|
||||||
<link rel="stylesheet" href="{% static 'css/inventree.css' %}">
|
|
||||||
|
|
||||||
<title>
|
<title>
|
||||||
{% block page_title %}
|
{% block page_title %}
|
||||||
{% endblock page_title %}
|
{% endblock page_title %}
|
||||||
</title>
|
</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class='{% block body_class %}{% endblock body_class %}'>
|
<body>
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{% endblock body %}
|
{% endblock body %}
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Reference in New Issue
Block a user