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

{% block table_header %}
            <th>Username</th>
            <th>User Type</th>
            <th>First Name</th>
            <th>Last Name</th>
            <th>Email</th>
            <th>Phone</th>
            <th>Company</th>
            <th>Line</th>
{% endblock table_header %}

{% block table_data %}
            <td class="td-left">{{ object.username }}</td>
            <td class="td-left">{{ object.get_user_type_display }}</td>
            <td class="td-left">{{ object.first_name }}</td>
            <td class="td-left">{{ object.last_name }}</td>
            <td class="td-left">{{ object.email }}</td>
            <td class="td-left">{{ object.phone }}</td>
            <td class="td-left">{{ object.company }}</td>
            <td class="td-left">{{ object.line }}</td>
{% endblock %}

{% block buttons %}
    <a href="{% url 'user_register' %}" class="btn btn-primary" type="button">Create user</a>
    <a href="#" id="editBtn" data-url="{% url 'user_update' pk=0 %}" class="btn btn-primary" type="button" disabled>Edit user</a>
    <button id="deleteButton" class="btn btn-danger">Delete user</button>
{% endblock buttons %}

{% block create_modal_header %}
    <h2>Create User</h2>
{% endblock %}

{% block modal_header %}
    <h2>Edit Container</h2>
{% endblock modal_header %}