{% extends 'list-crud.html' %}
{% load static %}

{% block table_header %}
        <th style="display: none;">Select</th>
        <th>Line name</th>
        <th>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 'client_line_create' %}" class="btn btn-primary">Create line</a>#}
{#    <a href="#" id="editBtn" data-url="{% url 'client_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 'client_line_create' %}'">Create line</button>
    <button class="btn btn-primary" type="button" id="editBtn" data-url="{% url 'client_line_update' pk=0 %}" data-requires-selection disabled>Edit line</button>
    <button class="btn btn-primary" type="button" id="deleteBtn" data-url="{% url 'client_line_active' pk=0 %}" data-requires-selection disabled>Delete line</button>     
{% endblock buttons %}

