2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Many improves of the slidies

This commit is contained in:
Oliver Walters
2019-06-18 19:05:09 +10:00
parent 783b8964d1
commit 65a8a30f87
8 changed files with 289 additions and 50 deletions

View File

@ -33,7 +33,7 @@
<link rel="stylesheet" href="{% static 'css/bootstrap-table-group-by.css' %}">
<link rel="stylesheet" href="{% static 'css/select2.css' %}">
<link rel="stylesheet" href="{% static 'css/select2-bootstrap.css' %}">
<link rel="stylesheet" href="{% static 'css/bootstrap-toggle.min.css' %}">
<link rel="stylesheet" href="{% static 'css/bootstrap-toggle.css' %}">
<link rel="stylesheet" href="{% static 'css/inventree.css' %}">
{% block css %}
@ -92,7 +92,7 @@ InvenTree
<script type='text/javascript' src="{% static 'script/bootstrap/bootstrap-table.js' %}"></script>
<script type='text/javascript' src="{% static 'script/bootstrap/bootstrap-table-en-US.min.js' %}"></script>
<script type='text/javascript' src="{% static 'script/bootstrap/bootstrap-table-group-by.js' %}"></script>
<script type='text/javascript' src="{% static 'script/bootstrap/bootstrap-toggle.min.js' %}"></script>
<script type='text/javascript' src="{% static 'script/bootstrap/bootstrap-toggle.js' %}"></script>
<script type="text/javascript" src="{% static 'script/select2/select2.js' %}"></script>
<script type='text/javascript' src="{% static 'script/moment.js' %}"></script>

View File

@ -1,8 +1,3 @@
<div>
<input type="checkbox" data-toggle="toggle" data-on="" data-off="" {% if state %}checked="checked"{% endif %}>
{% if state %}
<span class='glyphicon glyphicon-small glyphicon-ok'></span>
{% else %}
<span class='glyphicon glyphicon-small glyphicon-remove'></span>
{% endif %}
<input type="checkbox" data-onstyle="success" data-size='small' data-toggle="toggle" {% if disabled %}disabled="disabled" {% endif %}{% if state %}checked="checked"{% endif %}>
</div>