mirror of
				https://github.com/netbox-community/netbox.git
				synced 2024-05-10 07:54:54 +00:00 
			
		
		
		
	Adds generic object children template (#13388)
* adds generic tab view template #12110 * Rename view_tab.html and move to generic/ * Fix console ports template * Move bulk operations view resolution to template * Avoid setting default template_name on ObjectChildrenView * Move base_template and table_config context vars to base context * removed bulk_delete_control from templates * refactored bulk_controls view * fixed table_config * renamed object_tab.html to objectchildren_list.html * removed unused import * Refactor template blocks for bulk operation buttons * Rename object children generic template * Move disconnect bulk action into a separate template for device components * Fix cluster devices & VM interfaces views * minor button label change --------- Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							f5a1f83f9f
						
					
				
				
					commit
					545769ad88
				
			@@ -1,36 +0,0 @@
 | 
			
		||||
{% extends 'ipam/asnrange/base.html' %}
 | 
			
		||||
{% load helpers %}
 | 
			
		||||
 | 
			
		||||
{% block content %}
 | 
			
		||||
  {% include 'inc/table_controls_htmx.html' with table_modal="ASNTable_config" %}
 | 
			
		||||
 | 
			
		||||
  <form method="post">
 | 
			
		||||
    {% csrf_token %}
 | 
			
		||||
 | 
			
		||||
    <div class="card">
 | 
			
		||||
      <div class="card-body htmx-container table-responsive" id="object_list">
 | 
			
		||||
        {% include 'htmx/table.html' %}
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <div class="noprint bulk-buttons">
 | 
			
		||||
      <div class="bulk-button-group">
 | 
			
		||||
        {% if 'bulk_edit' in actions %}
 | 
			
		||||
          <button type="submit" name="_edit" formaction="{% url 'ipam:asn_bulk_edit' %}?return_url={% url 'ipam:asnrange_asns' pk=object.pk %}" class="btn btn-warning btn-sm">
 | 
			
		||||
            <i class="mdi mdi-pencil" aria-hidden="true"></i> Edit
 | 
			
		||||
          </button>
 | 
			
		||||
        {% endif %}
 | 
			
		||||
        {% if 'bulk_delete' in actions %}
 | 
			
		||||
          <button type="submit" name="_delete" formaction="{% url 'ipam:asn_bulk_delete' %}?return_url={% url 'ipam:asnrange_asns' pk=object.pk %}" class="btn btn-danger btn-sm">
 | 
			
		||||
            <i class="mdi mdi-trash-can-outline" aria-hidden="true"></i> Delete
 | 
			
		||||
          </button>
 | 
			
		||||
        {% endif %}
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
  </form>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block modals %}
 | 
			
		||||
  {{ block.super }}
 | 
			
		||||
  {% table_config_form table %}
 | 
			
		||||
{% endblock modals %}
 | 
			
		||||
		Reference in New Issue
	
	Block a user