mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 13:05:42 +00:00
Moved top-level templates to a top-level dir
It just seems fitting is all
This commit is contained in:
43
InvenTree/templates/base.html
Normal file
43
InvenTree/templates/base.html
Normal file
@ -0,0 +1,43 @@
|
||||
{% load static %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
|
||||
|
||||
|
||||
<!-- Local stylesheet -->
|
||||
<link rel="stylesheet" href="{% static 'css/inventree.css' %}">
|
||||
|
||||
<!-- Bootstrap javascript -->
|
||||
<!--
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
|
||||
-->
|
||||
|
||||
<title>
|
||||
{% block title %}
|
||||
InvenTree
|
||||
{% endblock %}
|
||||
</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
{% include "navbar.html" %}
|
||||
|
||||
<div class="container-fluid inventree-content">
|
||||
{% block content %}
|
||||
<!-- Each view fills in here.. -->
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
11
InvenTree/templates/build_status.html
Normal file
11
InvenTree/templates/build_status.html
Normal file
@ -0,0 +1,11 @@
|
||||
{% if build.status == build.PENDING %}
|
||||
<span class='label label-info'>
|
||||
{% elif build.status == build.HOLDING %}
|
||||
<span class='label label-warning'>
|
||||
{% elif build.status == build.CANCELLED %}
|
||||
<span class='label label-danger'>
|
||||
{% elif build.status == build.COMPLETE %}
|
||||
<span class='label label-success'>
|
||||
{% endif %}
|
||||
{{ build.get_status_display }}
|
||||
</span>
|
19
InvenTree/templates/create_edit_obj.html
Normal file
19
InvenTree/templates/create_edit_obj.html
Normal file
@ -0,0 +1,19 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% load static %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class='panel panel-primary'>
|
||||
<div class='panel-heading'>
|
||||
{% block obj_title %}
|
||||
Object title goes here
|
||||
{% endblock %}
|
||||
</div>
|
||||
<div class='panel-body'>
|
||||
{% load crispy_forms_tags %}
|
||||
{% crispy form %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
25
InvenTree/templates/delete_obj.html
Normal file
25
InvenTree/templates/delete_obj.html
Normal file
@ -0,0 +1,25 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="panel panel-danger">
|
||||
<div class="panel-heading">
|
||||
{% block del_title %}
|
||||
Deletion title goes here
|
||||
{% endblock %}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<p><b>This is a permanent action and cannot be undone.</b></p>
|
||||
|
||||
{% block del_body %}
|
||||
{% endblock %}
|
||||
|
||||
<form action="" method="post">{% csrf_token %}
|
||||
<input type="submit" name='confirm' value="Confirm" />
|
||||
<input type="submit" name="cancel" value="Cancel" />
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
16
InvenTree/templates/navbar.html
Normal file
16
InvenTree/templates/navbar.html
Normal file
@ -0,0 +1,16 @@
|
||||
{% load static %}
|
||||
|
||||
<nav class="navbar navbar-default">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<a class="navbar-brand" href="/"><img src="{% static 'img/inventree.png' %}" width="40" height="40"/></a>
|
||||
</div>
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a href="{% url 'part-index' %}">Parts</a></li>
|
||||
<li><a href="{% url 'stock-index' %}">Stock</a></li>
|
||||
<li><a href="{% url 'build-index' %}">Build</a></li>
|
||||
<li><a href="{% url 'supplier-index' %}">Suppliers</a></li>
|
||||
<li><a href="{% url 'customer-order-index' %}">Customer Orders</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
7
InvenTree/templates/url.html
Normal file
7
InvenTree/templates/url.html
Normal file
@ -0,0 +1,7 @@
|
||||
{% if url %}
|
||||
<a href="{{ url }}">
|
||||
{% if text %}{{ text }}
|
||||
{% else %}{{ url }}
|
||||
{% endif %}
|
||||
</a>
|
||||
{% endif %}
|
5
InvenTree/templates/yesnolabel.html
Normal file
5
InvenTree/templates/yesnolabel.html
Normal file
@ -0,0 +1,5 @@
|
||||
{% if value %}
|
||||
<span class='label label-success'>Yes</span>
|
||||
{% else %}
|
||||
<span class='label label-warning'>No</span>
|
||||
{% endif %}
|
Reference in New Issue
Block a user