switch from ownCloud to minIO
buttons in table are buttons and do edit and delete properly
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{% extends 'list-crud.html' %}
|
||||
{% load custom_filters %}
|
||||
{% load static %}
|
||||
|
||||
{% block table_header %}
|
||||
@@ -13,6 +14,7 @@
|
||||
<th>Vehicles left</th>
|
||||
<th>Created on</th>
|
||||
<th>Created by</th>
|
||||
<th>Status</th>
|
||||
{% endblock table_header %}
|
||||
|
||||
{% block table_data %}
|
||||
@@ -22,10 +24,11 @@
|
||||
<td>{{ object.container_number }}</td>
|
||||
<td>{{ object.container_count }}</td>
|
||||
<td>{{ object.containers_left }}</td>
|
||||
<td>{{ object.vehicles }}</td>
|
||||
<td>{{ object.vehicles_left }}</td>
|
||||
<td>{{ object.vehicles|distinct_vehicles }}</td>
|
||||
<td>{{ object.vehicles_left|distinct_vehicles }}</td>
|
||||
<td>{{ object.created_on }}</td>
|
||||
<td>{{ object.created_by.username }}</td>
|
||||
<td>{{ object.status }}</td>
|
||||
{% endblock %}
|
||||
|
||||
{% block buttons %}
|
||||
@@ -34,10 +37,3 @@
|
||||
{# <button id="deleteButton" class="btn btn-danger">Delete Preinfo</button>#}
|
||||
{% endblock buttons %}
|
||||
|
||||
{% block create_modal_header %}
|
||||
<h2>Create Booking</h2>
|
||||
{% endblock %}
|
||||
|
||||
{% block modal_header %}
|
||||
<h2>Edit Booking</h2>
|
||||
{% endblock modal_header %}
|
||||
|
||||
@@ -15,9 +15,14 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block buttons %}
|
||||
<a href="{% url 'employee_company_create' %}" class="btn btn-primary">Create company</a>
|
||||
<a href="#" id="editBtn" data-url="{% url 'employee_company_update' pk=0 %}" class="btn btn-primary" disabled>Edit Preinfo</a>
|
||||
<button id="deleteButton" class="btn btn-danger">Delete Preinfo</button>
|
||||
{# <a href="{% url 'employee_company_create' %}" class="btn btn-primary">Create company</a>#}
|
||||
{# <a href="#" id="editBtn" data-url="{% url 'employee_company_update' pk=0 %}" class="btn btn-primary" disabled>Edit Preinfo</a>#}
|
||||
{# <button id="deleteButton" class="btn btn-danger">Delete company</button>#}
|
||||
|
||||
<button class="btn btn-primary" type="button" onclick="window.location.href='{% url 'employee_company_create' %}'">Create company</button>
|
||||
<button class="btn btn-primary" type="button" id="editBtn" data-url="{% url 'employee_company_update' pk=0 %}" data-requires-selection disabled>Edit company</button>
|
||||
<button class="btn btn-primary" type="button" id="deleteBtn" data-url="{% url 'employee_company_active' pk=0 %}" data-requires-selection disabled>Delete company</button>
|
||||
|
||||
{% endblock buttons %}
|
||||
|
||||
{% block create_modal_header %}
|
||||
|
||||
@@ -17,9 +17,14 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block buttons %}
|
||||
<a href="{% url 'employee_line_create' %}" class="btn btn-primary">Create line</a>
|
||||
<a href="#" id="editBtn" data-url="{% url 'employee_line_update' pk=0 %}" class="btn btn-primary" disabled>Edit Preinfo</a>
|
||||
<button id="deleteButton" class="btn btn-danger">Delete Preinfo</button>
|
||||
{# <a href="{% url 'employee_line_create' %}" class="btn btn-primary">Create line</a>#}
|
||||
{# <a href="#" id="editBtn" data-url="{% url 'employee_line_update' pk=0 %}" class="btn btn-primary" disabled>Edit Preinfo</a>#}
|
||||
{# <button id="deleteButton" class="btn btn-danger">Delete Preinfo</button>#}
|
||||
|
||||
<button class="btn btn-primary" type="button" onclick="window.location.href='{% url 'employee_line_create' %}'">Create line</button>
|
||||
<button class="btn btn-primary" type="button" id="editBtn" data-url="{% url 'employee_line_update' pk=0 %}" data-requires-selection disabled>Edit line</button>
|
||||
<button class="btn btn-primary" type="button" id="deleteBtn" data-url="{% url 'employee_line_active' pk=0 %}" data-requires-selection disabled>Delete line</button>
|
||||
|
||||
{% endblock buttons %}
|
||||
|
||||
{% block create_modal_header %}
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
<th>Line</th>
|
||||
<th>Created on</th>
|
||||
<th>Created by</th>
|
||||
<th>Status</th>
|
||||
{% endblock table_header %}
|
||||
|
||||
{% block table_data %}
|
||||
@@ -18,8 +19,6 @@
|
||||
<td>{{ object.line.short_name }}</td>
|
||||
<td>{{ object.created_on }}</td>
|
||||
<td>{{ object.created_by.username }}</td>
|
||||
<td>{{ object.received|yesno:"Received,Pending" }}</td>
|
||||
{% endblock %}
|
||||
|
||||
{% block modal_header %}
|
||||
<h2>Edit Preinfo</h2>
|
||||
{% endblock modal_header %}
|
||||
|
||||
Reference in New Issue
Block a user