mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 22:55:43 +00:00 
			
		
		
		
	Remove btn-default
This commit is contained in:
		@@ -394,6 +394,13 @@
 | 
				
			|||||||
    padding: .25em .5em;
 | 
					    padding: .25em .5em;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.table button {
 | 
				
			||||||
 | 
					    font-size: 90%;
 | 
				
			||||||
 | 
					    padding: 3px;
 | 
				
			||||||
 | 
					    padding-left: 5px;
 | 
				
			||||||
 | 
					    padding-right: 5px;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* grid display for part images */
 | 
					/* grid display for part images */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.table-img-grid tr {
 | 
					.table-img-grid tr {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -277,7 +277,7 @@
 | 
				
			|||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            <div class='col-sm-6'>
 | 
					            <div class='col-sm-6'>
 | 
				
			||||||
                <div class='btn-group float-right'>
 | 
					                <div class='btn-group float-right'>
 | 
				
			||||||
                    <button type='button' id='edit-notes' title='{% trans "Edit Notes" %}' class='btn btn-small btn-default'>
 | 
					                    <button type='button' id='edit-notes' title='{% trans "Edit Notes" %}' class='btn btn-small btn-outline-secondary'>
 | 
				
			||||||
                        <span class='fas fa-edit'>      
 | 
					                        <span class='fas fa-edit'>      
 | 
				
			||||||
                        </span>
 | 
					                        </span>
 | 
				
			||||||
                    </button>
 | 
					                    </button>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -40,10 +40,10 @@
 | 
				
			|||||||
                    </ul>
 | 
					                    </ul>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
                <!-- Buttons to switch between list and calendar views -->
 | 
					                <!-- Buttons to switch between list and calendar views -->
 | 
				
			||||||
                <button class='btn btn-default' type='button' id='view-calendar' title='{% trans "Display calendar view" %}'>
 | 
					                <button class='btn btn-outline-secondary' type='button' id='view-calendar' title='{% trans "Display calendar view" %}'>
 | 
				
			||||||
                    <span class='fas fa-calendar-alt'></span>
 | 
					                    <span class='fas fa-calendar-alt'></span>
 | 
				
			||||||
                </button>
 | 
					                </button>
 | 
				
			||||||
                <button class='btn btn-default' type='button' id='view-list' title='{% trans "Display list view" %}'>
 | 
					                <button class='btn btn-outline-secondary' type='button' id='view-list' title='{% trans "Display list view" %}'>
 | 
				
			||||||
                    <span class='fas fa-th-list'></span>
 | 
					                    <span class='fas fa-th-list'></span>
 | 
				
			||||||
                </button>
 | 
					                </button>
 | 
				
			||||||
                <div class='filter-list' id='filter-list-build'>
 | 
					                <div class='filter-list' id='filter-list-build'>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -24,9 +24,9 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
{% block form_buttons_top %}
 | 
					{% block form_buttons_top %}
 | 
				
			||||||
    {% if wizard.steps.prev %}
 | 
					    {% if wizard.steps.prev %}
 | 
				
			||||||
    <button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}" class="save btn btn-default">{% trans "Previous Step" %}</button>
 | 
					    <button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}" class="save btn btn-outline-secondary">{% trans "Previous Step" %}</button>
 | 
				
			||||||
    {% endif %}
 | 
					    {% endif %}
 | 
				
			||||||
    <button type="submit" class="save btn btn-default">{% trans "Submit Selections" %}</button>
 | 
					    <button type="submit" class="save btn btn-outline-secondary">{% trans "Submit Selections" %}</button>
 | 
				
			||||||
{% endblock form_buttons_top %}
 | 
					{% endblock form_buttons_top %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% block form_content %}
 | 
					{% block form_content %}
 | 
				
			||||||
@@ -39,7 +39,7 @@
 | 
				
			|||||||
                <div>
 | 
					                <div>
 | 
				
			||||||
                    <input type='hidden' name='col_name_{{ forloop.counter0 }}' value='{{ col.name }}'/>
 | 
					                    <input type='hidden' name='col_name_{{ forloop.counter0 }}' value='{{ col.name }}'/>
 | 
				
			||||||
                    {{ col.name }}
 | 
					                    {{ col.name }}
 | 
				
			||||||
                    <button class='btn btn-default btn-remove' onClick='removeColFromBomWizard()' id='del_col_{{ forloop.counter0 }}' style='display: inline; float: right;' title='{% trans "Remove column" %}'>
 | 
					                    <button class='btn btn-outline-secondary btn-remove' onClick='removeColFromBomWizard()' id='del_col_{{ forloop.counter0 }}' style='display: inline; float: right;' title='{% trans "Remove column" %}'>
 | 
				
			||||||
                        <span col_id='{{ forloop.counter0 }}' class='fas fa-trash-alt icon-red'></span>
 | 
					                        <span col_id='{{ forloop.counter0 }}' class='fas fa-trash-alt icon-red'></span>
 | 
				
			||||||
                    </button>
 | 
					                    </button>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
@@ -68,7 +68,7 @@
 | 
				
			|||||||
        {% with forloop.counter as row_index %}
 | 
					        {% with forloop.counter as row_index %}
 | 
				
			||||||
        <tr>
 | 
					        <tr>
 | 
				
			||||||
            <td style='width: 32px;'>
 | 
					            <td style='width: 32px;'>
 | 
				
			||||||
                <button class='btn btn-default btn-remove' onClick='removeRowFromBomWizard()' id='del_row_{{ row_index }}' style='display: inline; float: left;' title='{% trans "Remove row" %}'>
 | 
					                <button class='btn btn-outline-secondary btn-remove' onClick='removeRowFromBomWizard()' id='del_row_{{ row_index }}' style='display: inline; float: left;' title='{% trans "Remove row" %}'>
 | 
				
			||||||
                    <span row_id='{{ row_index }}' class='fas fa-trash-alt icon-red'></span>
 | 
					                    <span row_id='{{ row_index }}' class='fas fa-trash-alt icon-red'></span>
 | 
				
			||||||
                </button>
 | 
					                </button>
 | 
				
			||||||
            </td>
 | 
					            </td>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -16,9 +16,9 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
{% block form_buttons_top %}
 | 
					{% block form_buttons_top %}
 | 
				
			||||||
    {% if wizard.steps.prev %}
 | 
					    {% if wizard.steps.prev %}
 | 
				
			||||||
    <button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}" class="save btn btn-default">{% trans "Previous Step" %}</button>
 | 
					    <button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}" class="save btn btn-outline-secondary">{% trans "Previous Step" %}</button>
 | 
				
			||||||
    {% endif %}
 | 
					    {% endif %}
 | 
				
			||||||
    <button type="submit" class="save btn btn-default">{% trans "Submit Selections" %}</button>
 | 
					    <button type="submit" class="save btn btn-outline-secondary">{% trans "Submit Selections" %}</button>
 | 
				
			||||||
{% endblock form_buttons_top %}
 | 
					{% endblock form_buttons_top %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% block form_content %}
 | 
					{% block form_content %}
 | 
				
			||||||
@@ -48,7 +48,7 @@
 | 
				
			|||||||
            {% for row in rows %}
 | 
					            {% for row in rows %}
 | 
				
			||||||
            <tr {% if row.errors %} style='background: #ffeaea;'{% endif %} part-select='#select_part_{{ row.index }}'>
 | 
					            <tr {% if row.errors %} style='background: #ffeaea;'{% endif %} part-select='#select_part_{{ row.index }}'>
 | 
				
			||||||
                <td>
 | 
					                <td>
 | 
				
			||||||
                    <button class='btn btn-default btn-remove' onClick='removeRowFromBomWizard()' id='del_row_{{ row.index }}' style='display: inline; float: right;' title='{% trans "Remove row" %}'>
 | 
					                    <button class='btn btn-outline-secondary btn-remove' onClick='removeRowFromBomWizard()' id='del_row_{{ row.index }}' style='display: inline; float: right;' title='{% trans "Remove row" %}'>
 | 
				
			||||||
                            <span row_id='{{ row.index }}' class='fas fa-trash-alt icon-red'></span>
 | 
					                            <span row_id='{{ row.index }}' class='fas fa-trash-alt icon-red'></span>
 | 
				
			||||||
                    </button>
 | 
					                    </button>
 | 
				
			||||||
                </td>
 | 
					                </td>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -54,9 +54,9 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        {% block form_buttons_bottom %}
 | 
					        {% block form_buttons_bottom %}
 | 
				
			||||||
        {% if wizard.steps.prev %}
 | 
					        {% if wizard.steps.prev %}
 | 
				
			||||||
        <button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}" class="save btn btn-default">{% trans "Previous Step" %}</button>
 | 
					        <button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}" class="save btn btn-outline-secondary">{% trans "Previous Step" %}</button>
 | 
				
			||||||
        {% endif %}
 | 
					        {% endif %}
 | 
				
			||||||
        <button type="submit" class="save btn btn-default">{% trans "Upload File" %}</button>
 | 
					        <button type="submit" class="save btn btn-outline-secondary">{% trans "Upload File" %}</button>
 | 
				
			||||||
        </form>
 | 
					        </form>
 | 
				
			||||||
        {% endblock form_buttons_bottom %}
 | 
					        {% endblock form_buttons_bottom %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -41,7 +41,7 @@
 | 
				
			|||||||
                {{ part.full_name }} <small><em>{{ part.description }}</em></small>
 | 
					                {{ part.full_name }} <small><em>{{ part.description }}</em></small>
 | 
				
			||||||
            </td>
 | 
					            </td>
 | 
				
			||||||
            <td>
 | 
					            <td>
 | 
				
			||||||
                <button class='btn btn-default btn-create' onClick='newSupplierPartFromOrderWizard()' id='new_supplier_part_{{ part.id }}' part='{{ part.pk }}' title='{% trans "Create new supplier part" %}' type='button'>
 | 
					                <button class='btn btn-outline-secondary btn-create' onClick='newSupplierPartFromOrderWizard()' id='new_supplier_part_{{ part.id }}' part='{{ part.pk }}' title='{% trans "Create new supplier part" %}' type='button'>
 | 
				
			||||||
                    <span part='{{ part.pk }}' class='fas fa-plus-circle'></span>
 | 
					                    <span part='{{ part.pk }}' class='fas fa-plus-circle'></span>
 | 
				
			||||||
                </button>
 | 
					                </button>
 | 
				
			||||||
            </td>
 | 
					            </td>
 | 
				
			||||||
@@ -74,7 +74,7 @@
 | 
				
			|||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
            </td>
 | 
					            </td>
 | 
				
			||||||
            <td>
 | 
					            <td>
 | 
				
			||||||
                <button class='btn btn-default btn-remove' onclick='removeOrderRowFromOrderWizard()' id='del_item_{{ part.id }}' title='{% trans "Remove part" %}' type='button'>
 | 
					                <button class='btn btn-outline-secondary btn-remove' onclick='removeOrderRowFromOrderWizard()' id='del_item_{{ part.id }}' title='{% trans "Remove part" %}' type='button'>
 | 
				
			||||||
                    <span row='part_row_{{ part.id }}' class='fas fa-trash-alt icon-red'></span>
 | 
					                    <span row='part_row_{{ part.id }}' class='fas fa-trash-alt icon-red'></span>
 | 
				
			||||||
                </button>
 | 
					                </button>
 | 
				
			||||||
            </td>
 | 
					            </td>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -40,7 +40,7 @@
 | 
				
			|||||||
            <td>{{ supplier.order_items|length }}</td>
 | 
					            <td>{{ supplier.order_items|length }}</td>
 | 
				
			||||||
            <td>
 | 
					            <td>
 | 
				
			||||||
                <button 
 | 
					                <button 
 | 
				
			||||||
                    class='btn btn-default btn-create'
 | 
					                    class='btn btn-outline-secondary btn-create'
 | 
				
			||||||
                    id='new_po_{{ supplier.id }}'
 | 
					                    id='new_po_{{ supplier.id }}'
 | 
				
			||||||
                    title='{% blocktrans with name=supplier.name %}Create new purchase order for {{name}}{% endblocktrans %}'
 | 
					                    title='{% blocktrans with name=supplier.name %}Create new purchase order for {{name}}{% endblocktrans %}'
 | 
				
			||||||
                    type='button'
 | 
					                    type='button'
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -68,7 +68,7 @@
 | 
				
			|||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            <div class='col-sm-6'>
 | 
					            <div class='col-sm-6'>
 | 
				
			||||||
                <div class='btn-group float-right'>
 | 
					                <div class='btn-group float-right'>
 | 
				
			||||||
                    <button type='button' id='edit-notes' title='{% trans "Edit Notes" %}' class='btn btn-small btn-default'>
 | 
					                    <button type='button' id='edit-notes' title='{% trans "Edit Notes" %}' class='btn btn-outline-secondary'>
 | 
				
			||||||
                        <span class='fas fa-edit'>      
 | 
					                        <span class='fas fa-edit'>      
 | 
				
			||||||
                        </span>
 | 
					                        </span>
 | 
				
			||||||
                    </button>
 | 
					                    </button>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -21,13 +21,13 @@
 | 
				
			|||||||
                <span class='fas fa-plus-circle'></span> {% trans "New Purchase Order" %}
 | 
					                <span class='fas fa-plus-circle'></span> {% trans "New Purchase Order" %}
 | 
				
			||||||
            </button>
 | 
					            </button>
 | 
				
			||||||
            {% endif %}
 | 
					            {% endif %}
 | 
				
			||||||
            <button id='order-print' class='btn btn-default' title='{% trans "Print Order Reports" %}'>
 | 
					            <button id='order-print' class='btn btn-outline-secondary' title='{% trans "Print Order Reports" %}'>
 | 
				
			||||||
                <span class='fas fa-print'></span>
 | 
					                <span class='fas fa-print'></span>
 | 
				
			||||||
            </button>
 | 
					            </button>
 | 
				
			||||||
            <button class='btn btn-default' type='button' id='view-calendar' title='{% trans "Display calendar view" %}'>
 | 
					            <button class='btn btn-outline-secondary' type='button' id='view-calendar' title='{% trans "Display calendar view" %}'>
 | 
				
			||||||
                <span class='fas fa-calendar-alt'></span>
 | 
					                <span class='fas fa-calendar-alt'></span>
 | 
				
			||||||
            </button>
 | 
					            </button>
 | 
				
			||||||
            <button class='btn btn-default' type='button' id='view-list' title='{% trans "Display list view" %}'>
 | 
					            <button class='btn btn-outline-secondary' type='button' id='view-list' title='{% trans "Display list view" %}'>
 | 
				
			||||||
                <span class='fas fa-th-list'></span>
 | 
					                <span class='fas fa-th-list'></span>
 | 
				
			||||||
            </button>
 | 
					            </button>
 | 
				
			||||||
            <div class='filter-list' id='filter-list-purchaseorder'>
 | 
					            <div class='filter-list' id='filter-list-purchaseorder'>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -59,7 +59,7 @@
 | 
				
			|||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            <div class='col-sm-6'>
 | 
					            <div class='col-sm-6'>
 | 
				
			||||||
                <div class='btn-group float-right'>
 | 
					                <div class='btn-group float-right'>
 | 
				
			||||||
                    <button type='button' id='edit-notes' title='{% trans "Edit Notes" %}' class='btn btn-small btn-default'>
 | 
					                    <button type='button' id='edit-notes' title='{% trans "Edit Notes" %}' class='btn outline-secondary'>
 | 
				
			||||||
                        <span class='fas fa-edit'>      
 | 
					                        <span class='fas fa-edit'>      
 | 
				
			||||||
                        </span>
 | 
					                        </span>
 | 
				
			||||||
                    </button>
 | 
					                    </button>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -24,13 +24,13 @@
 | 
				
			|||||||
                <span class='fas fa-plus-circle'></span> {% trans "New Sales Order" %}
 | 
					                <span class='fas fa-plus-circle'></span> {% trans "New Sales Order" %}
 | 
				
			||||||
            </button>
 | 
					            </button>
 | 
				
			||||||
            {% endif %}
 | 
					            {% endif %}
 | 
				
			||||||
            <button id='order-print' class='btn btn-default' title='{% trans "Print Order Reports" %}'>
 | 
					            <button id='order-print' class='btn btn-outline-secondary' title='{% trans "Print Order Reports" %}'>
 | 
				
			||||||
                <span class='fas fa-print'></span>
 | 
					                <span class='fas fa-print'></span>
 | 
				
			||||||
            </button>
 | 
					            </button>
 | 
				
			||||||
            <button class='btn btn-default' type='button' id='view-calendar' title='{% trans "Display calendar view" %}'>
 | 
					            <button class='btn btn-outline-secondary' type='button' id='view-calendar' title='{% trans "Display calendar view" %}'>
 | 
				
			||||||
                <span class='fas fa-calendar-alt'></span>
 | 
					                <span class='fas fa-calendar-alt'></span>
 | 
				
			||||||
            </button>
 | 
					            </button>
 | 
				
			||||||
            <button class='btn btn-default' type='button' id='view-list' title='{% trans "Display list view" %}'>
 | 
					            <button class='btn btn-outline-secondary' type='button' id='view-list' title='{% trans "Display list view" %}'>
 | 
				
			||||||
                <span class='fas fa-th-list'></span>
 | 
					                <span class='fas fa-th-list'></span>
 | 
				
			||||||
            </button>
 | 
					            </button>
 | 
				
			||||||
            <div class='filter-list' id='filter-list-salesorder'>
 | 
					            <div class='filter-list' id='filter-list-salesorder'>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -26,7 +26,7 @@
 | 
				
			|||||||
    <div class="btn-group" role="group" aria-label="...">
 | 
					    <div class="btn-group" role="group" aria-label="...">
 | 
				
			||||||
        <!-- Export menu -->
 | 
					        <!-- Export menu -->
 | 
				
			||||||
        <div class='btn-group'>
 | 
					        <div class='btn-group'>
 | 
				
			||||||
            <button id='export-options' title='{% trans "Export actions" %}' class='btn btn-default dropdown-toggle' type='button' data-bs-toggle='dropdown'>
 | 
					            <button id='export-options' title='{% trans "Export actions" %}' class='btn btn-outline-secondary dropdown-toggle' type='button' data-bs-toggle='dropdown'>
 | 
				
			||||||
                <span class='fas fa-download'></span> <span class='caret'></span>
 | 
					                <span class='fas fa-download'></span> <span class='caret'></span>
 | 
				
			||||||
            </button>
 | 
					            </button>
 | 
				
			||||||
            <ul class='dropdown-menu' role='menu'>
 | 
					            <ul class='dropdown-menu' role='menu'>
 | 
				
			||||||
@@ -37,7 +37,7 @@
 | 
				
			|||||||
        {% if roles.part.change %}
 | 
					        {% if roles.part.change %}
 | 
				
			||||||
        <!-- Action menu -->
 | 
					        <!-- Action menu -->
 | 
				
			||||||
        <div class='btn-group'>
 | 
					        <div class='btn-group'>
 | 
				
			||||||
            <button id='bom-actions' title='{% trans "BOM actions" %}' class='btn btn-default dropdown-toggle' type='button' data-bs-toggle='dropdown'>
 | 
					            <button id='bom-actions' title='{% trans "BOM actions" %}' class='btn btn-outline-secondary dropdown-toggle' type='button' data-bs-toggle='dropdown'>
 | 
				
			||||||
                <span class='fas fa-wrench'></span> <span class='caret'></span>
 | 
					                <span class='fas fa-wrench'></span> <span class='caret'></span>
 | 
				
			||||||
            </button>
 | 
					            </button>
 | 
				
			||||||
            <ul class='dropdown-menu' role='menu'>
 | 
					            <ul class='dropdown-menu' role='menu'>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -24,9 +24,9 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
{% block form_buttons_top %}
 | 
					{% block form_buttons_top %}
 | 
				
			||||||
    {% if wizard.steps.prev %}
 | 
					    {% if wizard.steps.prev %}
 | 
				
			||||||
    <button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}" class="save btn btn-default">{% trans "Previous Step" %}</button>
 | 
					    <button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}" class="save btn btn-outline-secondary">{% trans "Previous Step" %}</button>
 | 
				
			||||||
    {% endif %}
 | 
					    {% endif %}
 | 
				
			||||||
    <button type="submit" class="save btn btn-default">{% trans "Submit Selections" %}</button>
 | 
					    <button type="submit" class="save btn btn-outline-secondary">{% trans "Submit Selections" %}</button>
 | 
				
			||||||
{% endblock form_buttons_top %}
 | 
					{% endblock form_buttons_top %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% block form_content %}
 | 
					{% block form_content %}
 | 
				
			||||||
@@ -39,7 +39,7 @@
 | 
				
			|||||||
                <div>
 | 
					                <div>
 | 
				
			||||||
                    <input type='hidden' name='col_name_{{ forloop.counter0 }}' value='{{ col.name }}'/>
 | 
					                    <input type='hidden' name='col_name_{{ forloop.counter0 }}' value='{{ col.name }}'/>
 | 
				
			||||||
                    {{ col.name }}
 | 
					                    {{ col.name }}
 | 
				
			||||||
                    <button class='btn btn-default btn-remove' onClick='removeColFromBomWizard()' id='del_col_{{ forloop.counter0 }}' style='display: inline; float: right;' title='{% trans "Remove column" %}'>
 | 
					                    <button class='btn btn-outline-secondary btn-remove' onClick='removeColFromBomWizard()' id='del_col_{{ forloop.counter0 }}' style='display: inline; float: right;' title='{% trans "Remove column" %}'>
 | 
				
			||||||
                        <span col_id='{{ forloop.counter0 }}' class='fas fa-trash-alt icon-red'></span>
 | 
					                        <span col_id='{{ forloop.counter0 }}' class='fas fa-trash-alt icon-red'></span>
 | 
				
			||||||
                    </button>
 | 
					                    </button>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
@@ -68,7 +68,7 @@
 | 
				
			|||||||
        {% with forloop.counter as row_index %}
 | 
					        {% with forloop.counter as row_index %}
 | 
				
			||||||
        <tr>
 | 
					        <tr>
 | 
				
			||||||
            <td style='width: 32px;'>
 | 
					            <td style='width: 32px;'>
 | 
				
			||||||
                <button class='btn btn-default btn-remove' onClick='removeRowFromBomWizard()' id='del_row_{{ row_index }}' style='display: inline; float: left;' title='{% trans "Remove row" %}'>
 | 
					                <button class='btn btn-outline-secondary btn-remove' onClick='removeRowFromBomWizard()' id='del_row_{{ row_index }}' style='display: inline; float: left;' title='{% trans "Remove row" %}'>
 | 
				
			||||||
                    <span row_id='{{ row_index }}' class='fas fa-trash-alt icon-red'></span>
 | 
					                    <span row_id='{{ row_index }}' class='fas fa-trash-alt icon-red'></span>
 | 
				
			||||||
                </button>
 | 
					                </button>
 | 
				
			||||||
            </td>
 | 
					            </td>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -16,9 +16,9 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
{% block form_buttons_top %}
 | 
					{% block form_buttons_top %}
 | 
				
			||||||
    {% if wizard.steps.prev %}
 | 
					    {% if wizard.steps.prev %}
 | 
				
			||||||
    <button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}" class="save btn btn-default">{% trans "Previous Step" %}</button>
 | 
					    <button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}" class="save btn btn-outline-secondary">{% trans "Previous Step" %}</button>
 | 
				
			||||||
    {% endif %}
 | 
					    {% endif %}
 | 
				
			||||||
    <button type="submit" class="save btn btn-default">{% trans "Submit Selections" %}</button>
 | 
					    <button type="submit" class="save btn btn-outline-secondary">{% trans "Submit Selections" %}</button>
 | 
				
			||||||
{% endblock form_buttons_top %}
 | 
					{% endblock form_buttons_top %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% block form_content %}
 | 
					{% block form_content %}
 | 
				
			||||||
@@ -49,7 +49,7 @@
 | 
				
			|||||||
            {% for row in rows %}
 | 
					            {% for row in rows %}
 | 
				
			||||||
            <tr {% if row.errors %} style='background: #ffeaea;'{% endif %} part-select='#select_part_{{ row.index }}'>
 | 
					            <tr {% if row.errors %} style='background: #ffeaea;'{% endif %} part-select='#select_part_{{ row.index }}'>
 | 
				
			||||||
                <td>
 | 
					                <td>
 | 
				
			||||||
                    <button class='btn btn-default btn-remove' onClick='removeRowFromBomWizard()' id='del_row_{{ row.index }}' style='display: inline; float: right;' title='{% trans "Remove row" %}'>
 | 
					                    <button class='btn btn-outline-secondary btn-remove' onClick='removeRowFromBomWizard()' id='del_row_{{ row.index }}' style='display: inline; float: right;' title='{% trans "Remove row" %}'>
 | 
				
			||||||
                            <span row_id='{{ row.index }}' class='fas fa-trash-alt icon-red'></span>
 | 
					                            <span row_id='{{ row.index }}' class='fas fa-trash-alt icon-red'></span>
 | 
				
			||||||
                    </button>
 | 
					                    </button>
 | 
				
			||||||
                </td>
 | 
					                </td>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -60,9 +60,9 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        {% block form_buttons_bottom %}
 | 
					        {% block form_buttons_bottom %}
 | 
				
			||||||
        {% if wizard.steps.prev %}
 | 
					        {% if wizard.steps.prev %}
 | 
				
			||||||
        <button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}" class="save btn btn-default">{% trans "Previous Step" %}</button>
 | 
					        <button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}" class="save btn btn-outline-secondary">{% trans "Previous Step" %}</button>
 | 
				
			||||||
        {% endif %}
 | 
					        {% endif %}
 | 
				
			||||||
        <button type="submit" class="save btn btn-default">{% trans "Upload File" %}</button>
 | 
					        <button type="submit" class="save btn btn-outline-secondary">{% trans "Upload File" %}</button>
 | 
				
			||||||
        </form>
 | 
					        </form>
 | 
				
			||||||
        {% endblock form_buttons_bottom %}
 | 
					        {% endblock form_buttons_bottom %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -188,7 +188,7 @@
 | 
				
			|||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            <div class='col-sm-6'>
 | 
					            <div class='col-sm-6'>
 | 
				
			||||||
                <div class='btn-group float-right'>
 | 
					                <div class='btn-group float-right'>
 | 
				
			||||||
                    <button type='button' id='edit-notes' title='{% trans "Edit Notes" %}' class='btn btn-small btn-default'>
 | 
					                    <button type='button' id='edit-notes' title='{% trans "Edit Notes" %}' class='btn btn-outline-secondary'>
 | 
				
			||||||
                        <span class='fas fa-edit'>      
 | 
					                        <span class='fas fa-edit'>      
 | 
				
			||||||
                        </span>
 | 
					                        </span>
 | 
				
			||||||
                    </button>
 | 
					                    </button>
 | 
				
			||||||
@@ -293,7 +293,7 @@
 | 
				
			|||||||
                            <a href='/part/{{ part.id }}/'>{{ part }}</a>
 | 
					                            <a href='/part/{{ part.id }}/'>{{ part }}</a>
 | 
				
			||||||
                            <div class='btn-group' style='float: right;'>
 | 
					                            <div class='btn-group' style='float: right;'>
 | 
				
			||||||
                                {% if roles.part.change %}
 | 
					                                {% if roles.part.change %}
 | 
				
			||||||
                                <button title='{% trans "Delete" %}' class='btn btn-default delete-related-part' url="{% url 'part-related-delete' part_related.id %}" type='button'><span class='fas fa-trash-alt icon-red'/></button>
 | 
					                                <button title='{% trans "Delete" %}' class='btn btn-outline-secondary delete-related-part' url="{% url 'part-related-delete' part_related.id %}" type='button'><span class='fas fa-trash-alt icon-red'/></button>
 | 
				
			||||||
                                {% endif %}
 | 
					                                {% endif %}
 | 
				
			||||||
                            </div>
 | 
					                            </div>
 | 
				
			||||||
                        </td>
 | 
					                        </td>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -32,7 +32,7 @@
 | 
				
			|||||||
                <div>
 | 
					                <div>
 | 
				
			||||||
                    <input type='hidden' name='col_name_{{ forloop.counter0 }}' value='{{ col.name }}'/>
 | 
					                    <input type='hidden' name='col_name_{{ forloop.counter0 }}' value='{{ col.name }}'/>
 | 
				
			||||||
                    {{ col.name }}
 | 
					                    {{ col.name }}
 | 
				
			||||||
                    <button class='btn btn-default btn-remove' onClick='removeColFromBomWizard()' id='del_col_{{ forloop.counter0 }}' style='display: inline; float: right;' title='{% trans "Remove column" %}'>
 | 
					                    <button class='btn btn-outline-secondary btn-remove' onClick='removeColFromBomWizard()' id='del_col_{{ forloop.counter0 }}' style='display: inline; float: right;' title='{% trans "Remove column" %}'>
 | 
				
			||||||
                        <span col_id='{{ forloop.counter0 }}' class='fas fa-trash-alt icon-red'></span>
 | 
					                        <span col_id='{{ forloop.counter0 }}' class='fas fa-trash-alt icon-red'></span>
 | 
				
			||||||
                    </button>
 | 
					                    </button>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
@@ -61,7 +61,7 @@
 | 
				
			|||||||
        {% with forloop.counter as row_index %}
 | 
					        {% with forloop.counter as row_index %}
 | 
				
			||||||
        <tr>
 | 
					        <tr>
 | 
				
			||||||
            <td style='width: 32px;'>
 | 
					            <td style='width: 32px;'>
 | 
				
			||||||
                <button class='btn btn-default btn-remove' onClick='removeRowFromBomWizard()' id='del_row_{{ row_index }}' style='display: inline; float: left;' title='{% trans "Remove row" %}'>
 | 
					                <button class='btn btn-outline-secondary btn-remove' onClick='removeRowFromBomWizard()' id='del_row_{{ row_index }}' style='display: inline; float: left;' title='{% trans "Remove row" %}'>
 | 
				
			||||||
                    <span row_id='{{ row_index }}' class='fas fa-trash-alt icon-red'></span>
 | 
					                    <span row_id='{{ row_index }}' class='fas fa-trash-alt icon-red'></span>
 | 
				
			||||||
                </button>
 | 
					                </button>
 | 
				
			||||||
            </td>
 | 
					            </td>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -38,7 +38,7 @@
 | 
				
			|||||||
            {% for row in rows %}
 | 
					            {% for row in rows %}
 | 
				
			||||||
            <tr {% if row.errors %} style='background: #ffeaea;'{% endif %} part-select='#select_part_{{ row.index }}'>
 | 
					            <tr {% if row.errors %} style='background: #ffeaea;'{% endif %} part-select='#select_part_{{ row.index }}'>
 | 
				
			||||||
                <td>
 | 
					                <td>
 | 
				
			||||||
                    <button class='btn btn-default btn-remove' onClick='removeRowFromBomWizard()' id='del_row_{{ row.index }}' style='display: inline; float: right;' title='{% trans "Remove row" %}'>
 | 
					                    <button class='btn btn-outline-secondary btn-remove' onClick='removeRowFromBomWizard()' id='del_row_{{ row.index }}' style='display: inline; float: right;' title='{% trans "Remove row" %}'>
 | 
				
			||||||
                            <span row_id='{{ row.index }}' class='fas fa-trash-alt icon-red'></span>
 | 
					                            <span row_id='{{ row.index }}' class='fas fa-trash-alt icon-red'></span>
 | 
				
			||||||
                    </button>
 | 
					                    </button>
 | 
				
			||||||
                </td>
 | 
					                </td>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -24,9 +24,9 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
{% block form_buttons_top %}
 | 
					{% block form_buttons_top %}
 | 
				
			||||||
    {% if wizard.steps.prev %}
 | 
					    {% if wizard.steps.prev %}
 | 
				
			||||||
    <button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}" class="save btn btn-default">{% trans "Previous Step" %}</button>
 | 
					    <button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}" class="save btn btn-outline-secondary">{% trans "Previous Step" %}</button>
 | 
				
			||||||
    {% endif %}
 | 
					    {% endif %}
 | 
				
			||||||
    <button type="submit" class="save btn btn-default">{% trans "Submit Selections" %}</button>
 | 
					    <button type="submit" class="save btn btn-outline-secondary">{% trans "Submit Selections" %}</button>
 | 
				
			||||||
{% endblock form_buttons_top %}
 | 
					{% endblock form_buttons_top %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% block form_content %}
 | 
					{% block form_content %}
 | 
				
			||||||
@@ -39,7 +39,7 @@
 | 
				
			|||||||
                <div>
 | 
					                <div>
 | 
				
			||||||
                    <input type='hidden' name='col_name_{{ forloop.counter0 }}' value='{{ col.name }}'/>
 | 
					                    <input type='hidden' name='col_name_{{ forloop.counter0 }}' value='{{ col.name }}'/>
 | 
				
			||||||
                    {{ col.name }}
 | 
					                    {{ col.name }}
 | 
				
			||||||
                    <button class='btn btn-default btn-remove' onClick='removeColFromBomWizard()' id='del_col_{{ forloop.counter0 }}' style='display: inline; float: right;' title='{% trans "Remove column" %}'>
 | 
					                    <button class='btn btn-outline-secondary btn-remove' onClick='removeColFromBomWizard()' id='del_col_{{ forloop.counter0 }}' style='display: inline; float: right;' title='{% trans "Remove column" %}'>
 | 
				
			||||||
                        <span col_id='{{ forloop.counter0 }}' class='fas fa-trash-alt icon-red'></span>
 | 
					                        <span col_id='{{ forloop.counter0 }}' class='fas fa-trash-alt icon-red'></span>
 | 
				
			||||||
                    </button>
 | 
					                    </button>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
@@ -68,7 +68,7 @@
 | 
				
			|||||||
        {% with forloop.counter as row_index %}
 | 
					        {% with forloop.counter as row_index %}
 | 
				
			||||||
        <tr>
 | 
					        <tr>
 | 
				
			||||||
            <td style='width: 32px;'>
 | 
					            <td style='width: 32px;'>
 | 
				
			||||||
                <button class='btn btn-default btn-remove' onClick='removeRowFromBomWizard()' id='del_row_{{ row_index }}' style='display: inline; float: left;' title='{% trans "Remove row" %}'>
 | 
					                <button class='btn btn-outline-secondary btn-remove' onClick='removeRowFromBomWizard()' id='del_row_{{ row_index }}' style='display: inline; float: left;' title='{% trans "Remove row" %}'>
 | 
				
			||||||
                    <span row_id='{{ row_index }}' class='fas fa-trash-alt icon-red'></span>
 | 
					                    <span row_id='{{ row_index }}' class='fas fa-trash-alt icon-red'></span>
 | 
				
			||||||
                </button>
 | 
					                </button>
 | 
				
			||||||
            </td>
 | 
					            </td>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -16,9 +16,9 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
{% block form_buttons_top %}
 | 
					{% block form_buttons_top %}
 | 
				
			||||||
    {% if wizard.steps.prev %}
 | 
					    {% if wizard.steps.prev %}
 | 
				
			||||||
    <button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}" class="save btn btn-default">{% trans "Previous Step" %}</button>
 | 
					    <button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}" class="save btn btn-outline-secondary">{% trans "Previous Step" %}</button>
 | 
				
			||||||
    {% endif %}
 | 
					    {% endif %}
 | 
				
			||||||
    <button type="submit" class="save btn btn-default">{% trans "Submit Selections" %}</button>
 | 
					    <button type="submit" class="save btn btn-outline-secondary">{% trans "Submit Selections" %}</button>
 | 
				
			||||||
{% endblock form_buttons_top %}
 | 
					{% endblock form_buttons_top %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% block form_content %}
 | 
					{% block form_content %}
 | 
				
			||||||
@@ -45,7 +45,7 @@
 | 
				
			|||||||
            {% for row in rows %}
 | 
					            {% for row in rows %}
 | 
				
			||||||
            <tr {% if row.errors %} style='background: #ffeaea;'{% endif %} part-select='#select_part_{{ row.index }}'>
 | 
					            <tr {% if row.errors %} style='background: #ffeaea;'{% endif %} part-select='#select_part_{{ row.index }}'>
 | 
				
			||||||
                <td>
 | 
					                <td>
 | 
				
			||||||
                    <button class='btn btn-default btn-remove' onClick='removeRowFromBomWizard()' id='del_row_{{ row.index }}' style='display: inline; float: right;' title='{% trans "Remove row" %}'>
 | 
					                    <button class='btn btn-outline-secondary btn-remove' onClick='removeRowFromBomWizard()' id='del_row_{{ row.index }}' style='display: inline; float: right;' title='{% trans "Remove row" %}'>
 | 
				
			||||||
                            <span row_id='{{ row.index }}' class='fas fa-trash-alt icon-red'></span>
 | 
					                            <span row_id='{{ row.index }}' class='fas fa-trash-alt icon-red'></span>
 | 
				
			||||||
                    </button>
 | 
					                    </button>
 | 
				
			||||||
                </td>
 | 
					                </td>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -52,9 +52,9 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        {% block form_buttons_bottom %}
 | 
					        {% block form_buttons_bottom %}
 | 
				
			||||||
        {% if wizard.steps.prev %}
 | 
					        {% if wizard.steps.prev %}
 | 
				
			||||||
        <button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}" class="save btn btn-default">{% trans "Previous Step" %}</button>
 | 
					        <button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}" class="save btn btn-outline-secondary">{% trans "Previous Step" %}</button>
 | 
				
			||||||
        {% endif %}
 | 
					        {% endif %}
 | 
				
			||||||
        <button type="submit" class="save btn btn-default">{% trans "Upload File" %}</button>
 | 
					        <button type="submit" class="save btn btn-outline-secondary">{% trans "Upload File" %}</button>
 | 
				
			||||||
        </form>
 | 
					        </form>
 | 
				
			||||||
        {% endblock form_buttons_bottom %}
 | 
					        {% endblock form_buttons_bottom %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -15,10 +15,10 @@
 | 
				
			|||||||
{% if roles.part.change %}
 | 
					{% if roles.part.change %}
 | 
				
			||||||
<div class='btn-row part-thumb-overlay'>
 | 
					<div class='btn-row part-thumb-overlay'>
 | 
				
			||||||
    <div class='btn-group'>
 | 
					    <div class='btn-group'>
 | 
				
			||||||
        <button type='button' class='btn btn-default' title="{% trans 'Select from existing images' %}" id='part-image-select'><span class='fas fa-th'></span></button>
 | 
					        <button type='button' class='btn btn-outline-secondary' title="{% trans 'Select from existing images' %}" id='part-image-select'><span class='fas fa-th'></span></button>
 | 
				
			||||||
        <button type='button' class='btn btn-default' title="{% trans 'Upload new image' %}" id='part-image-upload'><span class='fas fa-file-upload'></span></button>
 | 
					        <button type='button' class='btn btn-outline-secondary' title="{% trans 'Upload new image' %}" id='part-image-upload'><span class='fas fa-file-upload'></span></button>
 | 
				
			||||||
        {% if allow_download %}
 | 
					        {% if allow_download %}
 | 
				
			||||||
        <button type='button' class='btn btn-default' title="{% trans 'Download image from URL' %}" id='part-image-url'><span class='fas fa-cloud-download-alt'></span></button>
 | 
					        <button type='button' class='btn btn-outline-secondary' title="{% trans 'Download image from URL' %}" id='part-image-url'><span class='fas fa-cloud-download-alt'></span></button>
 | 
				
			||||||
        {% endif %}
 | 
					        {% endif %}
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -29,7 +29,7 @@
 | 
				
			|||||||
                    {{ part.category.pathstring }}
 | 
					                    {{ part.category.pathstring }}
 | 
				
			||||||
                </td>
 | 
					                </td>
 | 
				
			||||||
                <td>
 | 
					                <td>
 | 
				
			||||||
                    <button class='btn btn-default btn-remove' onClick='removeRowFromModalForm()' title='{% trans "Remove part" %}' type='button'>
 | 
					                    <button class='btn btn-outline-secondary btn-remove' onClick='removeRowFromModalForm()' title='{% trans "Remove part" %}' type='button'>
 | 
				
			||||||
                        <span row='part_row_{{ part.id }}' class='fas fa-trash-alt icon-red'></span>
 | 
					                        <span row='part_row_{{ part.id }}' class='fas fa-trash-alt icon-red'></span>
 | 
				
			||||||
                    </button>
 | 
					                    </button>
 | 
				
			||||||
                </td>
 | 
					                </td>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -69,7 +69,7 @@
 | 
				
			|||||||
                    <button type='button' class='btn btn-success' id='add-test-result'>
 | 
					                    <button type='button' class='btn btn-success' id='add-test-result'>
 | 
				
			||||||
                        <span class='fas fa-plus-circle'></span> {% trans "Add Test Data" %}
 | 
					                        <span class='fas fa-plus-circle'></span> {% trans "Add Test Data" %}
 | 
				
			||||||
                    </button>
 | 
					                    </button>
 | 
				
			||||||
                    <button type='button' class='btn btn-default' id='test-report'>
 | 
					                    <button type='button' class='btn btn-outline-secondary' id='test-report'>
 | 
				
			||||||
                        <span class='fas fa-tasks'></span> {% trans "Test Report" %}
 | 
					                        <span class='fas fa-tasks'></span> {% trans "Test Report" %}
 | 
				
			||||||
                    </button>
 | 
					                    </button>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
@@ -100,7 +100,7 @@
 | 
				
			|||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            <div class='col-sm-6'>
 | 
					            <div class='col-sm-6'>
 | 
				
			||||||
                <div class='btn-group float-right'>
 | 
					                <div class='btn-group float-right'>
 | 
				
			||||||
                    <button type='button' id='edit-notes' title='{% trans "Edit Notes" %}' class='btn btn-small btn-default'>
 | 
					                    <button type='button' id='edit-notes' title='{% trans "Edit Notes" %}' class='btn btn-small btn-outline-secondary'>
 | 
				
			||||||
                        <span class='fas fa-edit'>      
 | 
					                        <span class='fas fa-edit'>      
 | 
				
			||||||
                        </span>
 | 
					                        </span>
 | 
				
			||||||
                    </button>
 | 
					                    </button>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -102,7 +102,7 @@
 | 
				
			|||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            <div class='modal-footer'>
 | 
					            <div class='modal-footer'>
 | 
				
			||||||
                <button type='button' class='btn btn-default' data-bs-dismiss='modal'>{% trans "Close" %}</button>
 | 
					                <button type='button' class='btn btn-outline-secondary' data-bs-dismiss='modal'>{% trans "Close" %}</button>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{% load static %}
 | 
					{% load static %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<div class='media-left' style='float: left;'>
 | 
					<div style='float: left;'>
 | 
				
			||||||
    {% if hover %}
 | 
					    {% if hover %}
 | 
				
			||||||
    <a class='hover-icon'>
 | 
					    <a class='hover-icon'>
 | 
				
			||||||
    {% endif %}
 | 
					    {% endif %}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -281,7 +281,7 @@ function setupFilterList(tableKey, table, target) {
 | 
				
			|||||||
    // One blank slate, please
 | 
					    // One blank slate, please
 | 
				
			||||||
    element.empty();
 | 
					    element.empty();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    element.append(`<button id='reload-${tableKey}' title='{% trans "Reload data" %}' class='btn btn-default filter-tag'><span class='fas fa-redo-alt'></span></button>`);
 | 
					    element.append(`<button id='reload-${tableKey}' title='{% trans "Reload data" %}' class='btn btn-outline-secondary filter-tag'><span class='fas fa-redo-alt'></span></button>`);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Callback for reloading the table
 | 
					    // Callback for reloading the table
 | 
				
			||||||
    element.find(`#reload-${tableKey}`).click(function() {
 | 
					    element.find(`#reload-${tableKey}`).click(function() {
 | 
				
			||||||
@@ -294,10 +294,10 @@ function setupFilterList(tableKey, table, target) {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // If there are filters currently "in use", add them in!
 | 
					    // If there are filters currently "in use", add them in!
 | 
				
			||||||
    element.append(`<button id='${add}' title='{% trans "Add new filter" %}' class='btn btn-default filter-tag'><span class='fas fa-filter'></span></button>`);
 | 
					    element.append(`<button id='${add}' title='{% trans "Add new filter" %}' class='btn btn-outline-secondary filter-tag'><span class='fas fa-filter'></span></button>`);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (Object.keys(filters).length > 0) {
 | 
					    if (Object.keys(filters).length > 0) {
 | 
				
			||||||
        element.append(`<button id='${clear}' title='{% trans "Clear all filters" %}' class='btn btn-default filter-tag'><span class='fas fa-backspace icon-red'></span></button>`);
 | 
					        element.append(`<button id='${clear}' title='{% trans "Clear all filters" %}' class='btn btn-outline-secondary filter-tag'><span class='fas fa-backspace icon-red'></span></button>`);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    for (var key in filters) {
 | 
					    for (var key in filters) {
 | 
				
			||||||
@@ -320,7 +320,7 @@ function setupFilterList(tableKey, table, target) {
 | 
				
			|||||||
            html += generateAvailableFilterList(tableKey);
 | 
					            html += generateAvailableFilterList(tableKey);
 | 
				
			||||||
            html += generateFilterInput(tableKey);
 | 
					            html += generateFilterInput(tableKey);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            html += `<button title='{% trans "Create filter" %}' class='btn btn-default filter-tag' id='${make}'><span class='fas fa-plus'></span></button>`;
 | 
					            html += `<button title='{% trans "Create filter" %}' class='btn btn-outline-secondary filter-tag' id='${make}'><span class='fas fa-plus'></span></button>`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            element.append(html);
 | 
					            element.append(html);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -564,7 +564,8 @@ function insertConfirmButton(options) {
 | 
				
			|||||||
    <div class="form-check form-switch">
 | 
					    <div class="form-check form-switch">
 | 
				
			||||||
        <input class="form-check-input" type="checkbox" id="modal-confirm">
 | 
					        <input class="form-check-input" type="checkbox" id="modal-confirm">
 | 
				
			||||||
        <label class="form-check-label" for="modal-confirm">${message}</label>
 | 
					        <label class="form-check-label" for="modal-confirm">${message}</label>
 | 
				
			||||||
    </div>`;
 | 
					    </div>
 | 
				
			||||||
 | 
					    `;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    $(options.modal).find('#modal-footer-buttons').append(html);
 | 
					    $(options.modal).find('#modal-footer-buttons').append(html);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -103,7 +103,7 @@ function makeIconBadge(icon, title) {
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
function makeIconButton(icon, cls, pk, title, options={}) {
 | 
					function makeIconButton(icon, cls, pk, title, options={}) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    var classes = `btn btn-default ${cls}`;
 | 
					    var classes = `btn btn-outline-secondary ${cls}`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    var id = `${cls}-${pk}`;
 | 
					    var id = `${cls}-${pk}`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -71,6 +71,7 @@ function createNewModal(options={}) {
 | 
				
			|||||||
                    <div id='modal-footer-buttons'>
 | 
					                    <div id='modal-footer-buttons'>
 | 
				
			||||||
                        <!-- Extra buttons can be inserted here -->
 | 
					                        <!-- Extra buttons can be inserted here -->
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
 | 
					                    <span class='flex-item' style='flex-grow: 1;'></span>
 | 
				
			||||||
                    <button type='button' class='btn btn-secondary' id='modal-form-close' data-bs-dismiss='modal'>{% trans "Cancel" %}</button>
 | 
					                    <button type='button' class='btn btn-secondary' id='modal-form-close' data-bs-dismiss='modal'>{% trans "Cancel" %}</button>
 | 
				
			||||||
                    <button type='button' class='btn btn-primary' id='modal-form-submit'>{% trans "Submit" %}</button>
 | 
					                    <button type='button' class='btn btn-primary' id='modal-form-submit'>{% trans "Submit" %}</button>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
@@ -787,7 +788,7 @@ function insertActionButton(modal, options) {
 | 
				
			|||||||
    if (already_present == false) {
 | 
					    if (already_present == false) {
 | 
				
			||||||
        var html = `
 | 
					        var html = `
 | 
				
			||||||
        <span style='float: right;'>
 | 
					        <span style='float: right;'>
 | 
				
			||||||
            <button name='${options.name}' type='submit' class='btn btn-default modal-form-button' value='${options.name}'>
 | 
					            <button name='${options.name}' type='submit' class='btn btn-outline-secondary modal-form-button' value='${options.name}'>
 | 
				
			||||||
                ${options.title}
 | 
					                ${options.title}
 | 
				
			||||||
            </button>
 | 
					            </button>
 | 
				
			||||||
        </span>`;
 | 
					        </span>`;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1680,8 +1680,8 @@ function loadStockTrackingTable(table, options) {
 | 
				
			|||||||
        formatter: function(value, row, index, field) {
 | 
					        formatter: function(value, row, index, field) {
 | 
				
			||||||
            // Manually created entries can be edited or deleted
 | 
					            // Manually created entries can be edited or deleted
 | 
				
			||||||
            if (false && !row.system) {
 | 
					            if (false && !row.system) {
 | 
				
			||||||
                var bEdit = "<button title='{% trans 'Edit tracking entry' %}' class='btn btn-entry-edit btn-default' type='button' url='/stock/track/" + row.pk + "/edit/'><span class='fas fa-edit'/></button>";
 | 
					                var bEdit = "<button title='{% trans 'Edit tracking entry' %}' class='btn btn-entry-edit btn-outline-secondary' type='button' url='/stock/track/" + row.pk + "/edit/'><span class='fas fa-edit'/></button>";
 | 
				
			||||||
                var bDel = "<button title='{% trans 'Delete tracking entry' %}' class='btn btn-entry-delete btn-default' type='button' url='/stock/track/" + row.pk + "/delete/'><span class='fas fa-trash-alt icon-red'/></button>";
 | 
					                var bDel = "<button title='{% trans 'Delete tracking entry' %}' class='btn btn-entry-delete btn-outline-secondary' type='button' url='/stock/track/" + row.pk + "/delete/'><span class='fas fa-trash-alt icon-red'/></button>";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                return "<div class='btn-group' role='group'>" + bEdit + bDel + "</div>";
 | 
					                return "<div class='btn-group' role='group'>" + bEdit + bDel + "</div>";
 | 
				
			||||||
            } else {
 | 
					            } else {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -24,7 +24,7 @@
 | 
				
			|||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            <div class='modal-footer'>
 | 
					            <div class='modal-footer'>
 | 
				
			||||||
                <div id='modal-footer-buttons'></div>
 | 
					                <div id='modal-footer-buttons'></div>
 | 
				
			||||||
                <button type='button' class='btn btn-default' id='modal-form-close' data-bs-dismiss='modal'>{% trans "Close" %}</button>
 | 
					                <button type='button' class='btn btn-outline-secondary' id='modal-form-close' data-bs-dismiss='modal'>{% trans "Close" %}</button>
 | 
				
			||||||
                <button type='button' class='btn btn-primary' id='modal-form-submit'>{% trans "Submit" %}</button>
 | 
					                <button type='button' class='btn btn-primary' id='modal-form-submit'>{% trans "Submit" %}</button>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
@@ -47,7 +47,7 @@
 | 
				
			|||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
                <div class='modal-footer'>
 | 
					                <div class='modal-footer'>
 | 
				
			||||||
                    <div id='modal-footer-buttons'></div>
 | 
					                    <div id='modal-footer-buttons'></div>
 | 
				
			||||||
                    <button type='button' class='btn btn-default' id='modal-form-close' data-bs-dismiss='modal'>{% trans "Close" %}</button>
 | 
					                    <button type='button' class='btn btn-outline-secondary' id='modal-form-close' data-bs-dismiss='modal'>{% trans "Close" %}</button>
 | 
				
			||||||
                    <button type='button' class='btn btn-primary' id='modal-form-submit'>{% trans "Submit" %}</button>
 | 
					                    <button type='button' class='btn btn-primary' id='modal-form-submit'>{% trans "Submit" %}</button>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1 +1 @@
 | 
				
			|||||||
<button type='button' class='btn btn-default' id='show-qr-code' title='{% trans "Show QR Code" %}'><span class='fas fa-qrcode'></span></button>
 | 
					<button type='button' class='btn btn-outline-secondary' id='show-qr-code' title='{% trans "Show QR Code" %}'><span class='fas fa-qrcode'></span></button>
 | 
				
			||||||
		Reference in New Issue
	
	Block a user