mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	Merge pull request #1508 from matmair/use-spaces
use spaces instead of tabs
This commit is contained in:
		@@ -19,18 +19,18 @@
 | 
			
		||||
 | 
			
		||||
{% block js_ready %}
 | 
			
		||||
{{ block.super }}
 | 
			
		||||
	
 | 
			
		||||
	/* Hide Button Toolbar */
 | 
			
		||||
	window.onload = function hideButtonToolbar() {
 | 
			
		||||
		var toolbar = document.getElementById("button-toolbar");
 | 
			
		||||
		toolbar.style.display = "none";
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
    /* Hide Button Toolbar */
 | 
			
		||||
    window.onload = function hideButtonToolbar() {
 | 
			
		||||
        var toolbar = document.getElementById("button-toolbar");
 | 
			
		||||
        toolbar.style.display = "none";
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    loadParametricPartTable(
 | 
			
		||||
        "#parametric-part-table",
 | 
			
		||||
        { 
 | 
			
		||||
        	headers: {{ headers|safe }},
 | 
			
		||||
        	data: {{ parameters|safe }},
 | 
			
		||||
            headers: {{ headers|safe }},
 | 
			
		||||
            data: {{ parameters|safe }},
 | 
			
		||||
        }
 | 
			
		||||
    );
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -44,7 +44,7 @@
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
{% if category %}
 | 
			
		||||
	$("#param-table").inventreeTable({
 | 
			
		||||
    $("#param-table").inventreeTable({
 | 
			
		||||
        url: "{% url 'api-part-category-parameters' pk=category.pk %}",
 | 
			
		||||
        queryParams: {
 | 
			
		||||
            ordering: 'name',
 | 
			
		||||
@@ -66,7 +66,7 @@
 | 
			
		||||
                field: 'default_value',
 | 
			
		||||
                title: '{% trans "Default Value" %}',
 | 
			
		||||
                sortable: 'true',
 | 
			
		||||
				formatter: function(value, row, index, field) {
 | 
			
		||||
                formatter: function(value, row, index, field) {
 | 
			
		||||
                    var bEdit = "<button title='{% trans "Edit Template" %}' class='template-edit btn btn-default btn-glyph' type='button' pk='" + row.pk + "'><span class='fas fa-edit'></span></button>";
 | 
			
		||||
                    var bDel = "<button title='{% trans "Delete Template" %}' class='template-delete btn btn-default btn-glyph' type='button' pk='" + row.pk + "'><span class='fas fa-trash-alt icon-red'></span></button>";
 | 
			
		||||
 | 
			
		||||
@@ -79,7 +79,7 @@
 | 
			
		||||
        ]
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
	$("#new-param").click(function() {
 | 
			
		||||
    $("#new-param").click(function() {
 | 
			
		||||
        launchModalForm("{% url 'category-param-template-create' category.pk %}", {
 | 
			
		||||
            success: function() {
 | 
			
		||||
                $("#param-table").bootstrapTable('refresh');
 | 
			
		||||
 
 | 
			
		||||
@@ -21,7 +21,7 @@
 | 
			
		||||
        {% include "InvenTree/settings/setting.html" with key="STOCK_STALE_DAYS" icon="fa-calendar" %}
 | 
			
		||||
        {% include "InvenTree/settings/setting.html" with key="STOCK_ALLOW_EXPIRED_SALE" icon="fa-truck" %}
 | 
			
		||||
        {% include "InvenTree/settings/setting.html" with key="STOCK_ALLOW_EXPIRED_BUILD" icon="fa-tools" %}
 | 
			
		||||
    	{% include "InvenTree/settings/setting.html" with key="STOCK_OWNERSHIP_CONTROL" icon="fa-users" %}
 | 
			
		||||
        {% include "InvenTree/settings/setting.html" with key="STOCK_OWNERSHIP_CONTROL" icon="fa-users" %}
 | 
			
		||||
    </tbody>
 | 
			
		||||
</table>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 
 | 
			
		||||
@@ -25,12 +25,12 @@
 | 
			
		||||
</form>
 | 
			
		||||
 | 
			
		||||
{% if invalid_color_theme %}
 | 
			
		||||
	<div class="alert alert-danger alert-block" role="alert" style="display: inline-block;">
 | 
			
		||||
	{% blocktrans %}
 | 
			
		||||
		The CSS sheet "{{invalid_color_theme}}.css" for the currently selected color theme was not found.<br>
 | 
			
		||||
		Please select another color theme :)
 | 
			
		||||
	{% endblocktrans %}
 | 
			
		||||
	</div>
 | 
			
		||||
    <div class="alert alert-danger alert-block" role="alert" style="display: inline-block;">
 | 
			
		||||
    {% blocktrans %}
 | 
			
		||||
        The CSS sheet "{{invalid_color_theme}}.css" for the currently selected color theme was not found.<br>
 | 
			
		||||
        Please select another color theme :)
 | 
			
		||||
    {% endblocktrans %}
 | 
			
		||||
    </div>
 | 
			
		||||
{% endif %}
 | 
			
		||||
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user