You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
depot_django/templates/employee/company-list.html

35 lines
1.4 KiB
HTML

{% extends 'list-crud.html' %}
{% load static %}
{% block table_header %}
<th style="display: none;">Select</th>
<th>Company name</th>
<th>Company short name</th>
<th>Description</th>
{% endblock table_header %}
{% block table_data %}
<td>{{ object.name }}</td>
<td>{{ object.short_name }}</td>
<td>{{ object.description }}</td>
{% 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 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 %}
<h2>Create company</h2>
{% endblock %}
{% block modal_header %}
<h2>edit company</h2>
{% endblock modal_header %}