This commit is contained in:
2025-07-15 20:47:58 +03:00
parent d986fdf232
commit f6c78a20a3
23 changed files with 219 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
{% 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 'company_create' %}" class="btn btn-primary">Create company</a>
<a href="#" id="editBtn" data-url="{% url 'company_update' pk=0 %}" class="btn btn-primary" disabled>Edit Preinfo</a>
<button id="deleteButton" class="btn btn-danger">Delete Preinfo</button>
{% endblock buttons %}
{% block create_modal_header %}
<h2>Create company</h2>
{% endblock %}
{% block modal_header %}
<h2>edit company</h2>
{% endblock modal_header %}