mirror of
				https://github.com/netbox-community/netbox.git
				synced 2024-05-10 07:54:54 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			125 lines
		
	
	
		
			4.6 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			125 lines
		
	
	
		
			4.6 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {% extends 'base.html' %}
 | |
| {% load buttons %}
 | |
| {% load custom_links %}
 | |
| {% load helpers %}
 | |
| {% load plugins %}
 | |
| 
 | |
| {% block header %}
 | |
|     <div class="row noprint">
 | |
|         <div class="col-sm-8 col-md-9">
 | |
|             <ol class="breadcrumb">
 | |
|                 <li><a href="{% url 'ipam:aggregate_list' %}">Aggregates</a></li>
 | |
|                 <li><a href="{% url 'ipam:aggregate_list' %}?rir={{ object.rir.slug }}">{{ object.rir }}</a></li>
 | |
|                 <li>{{ object }}</li>
 | |
|             </ol>
 | |
|         </div>
 | |
|         <div class="col-sm-4 col-md-3">
 | |
|             <form action="{% url 'ipam:aggregate_list' %}" method="get">
 | |
|                 <div class="input-group">
 | |
|                     <input type="text" name="q" class="form-control" placeholder="Search aggregates" />
 | |
|                     <span class="input-group-btn">
 | |
|                         <button type="submit" class="btn btn-primary">
 | |
|                             <span class="mdi mdi-magnify" aria-hidden="true"></span>
 | |
|                         </button>
 | |
|                     </span>
 | |
|                 </div>
 | |
|             </form>
 | |
|         </div>
 | |
|     </div>
 | |
|     <div class="pull-right noprint">
 | |
|         {% plugin_buttons object %}
 | |
|         {% if perms.ipam.add_aggregate %}
 | |
|             {% clone_button object %}
 | |
|         {% endif %}
 | |
|         {% if perms.ipam.change_aggregate %}
 | |
|             {% edit_button object %}
 | |
|         {% endif %}
 | |
|         {% if perms.ipam.delete_aggregate %}
 | |
|             {% delete_button object %}
 | |
|         {% endif %}
 | |
|     </div>
 | |
|     <h1>{% block title %}{{ object }}{% endblock %}</h1>
 | |
|     {% include 'inc/created_updated.html' %}
 | |
|     {% include 'ipam/inc/toggle_available.html' %}
 | |
|     <div class="pull-right noprint">
 | |
|         {% custom_links object %}
 | |
|     </div>
 | |
|     <ul class="nav nav-tabs">
 | |
|         <li role="presentation"{% if not active_tab %} class="active"{% endif %}>
 | |
|             <a href="{{ object.get_absolute_url }}">Aggregate</a>
 | |
|         </li>
 | |
|         {% if perms.extras.view_objectchange %}
 | |
|             <li role="presentation"{% if active_tab == 'changelog' %} class="active"{% endif %}>
 | |
|                 <a href="{% url 'ipam:aggregate_changelog' pk=object.pk %}">Change Log</a>
 | |
|             </li>
 | |
|         {% endif %}
 | |
|     </ul>
 | |
| {% endblock %}
 | |
| 
 | |
| {% block content %}
 | |
| <div class="row">
 | |
| 	<div class="col-md-6">
 | |
|         <div class="panel panel-default">
 | |
|             <div class="panel-heading">
 | |
|                 <strong>Aggregate</strong>
 | |
|             </div>
 | |
|             <table class="table table-hover panel-body attr-table">
 | |
|                 <tr>
 | |
|                     <td>Family</td>
 | |
|                     <td>IPv{{ object.family }}</td>
 | |
|                 </tr>
 | |
|                 <tr>
 | |
|                     <td>RIR</td>
 | |
|                     <td>
 | |
|                         <a href="{% url 'ipam:aggregate_list' %}?rir={{ object.rir.slug }}">{{ object.rir }}</a>
 | |
|                     </td>
 | |
|                 </tr>
 | |
|                 <tr>
 | |
|                     <td>Utilization</td>
 | |
|                     <td>
 | |
|                         {{ object.get_utilization }}%
 | |
|                     </td>
 | |
|                 </tr>
 | |
|                 <tr>
 | |
|                     <td>Tenant</td>
 | |
|                     <td>
 | |
|                         {% if object.tenant %}
 | |
|                             {% if prefix.object.group %}
 | |
|                                 <a href="{{ object.tenant.group.get_absolute_url }}">{{ object.tenant.group }}</a> /
 | |
|                             {% endif %}
 | |
|                             <a href="{{ object.tenant.get_absolute_url }}">{{ object.tenant }}</a>
 | |
|                         {% else %}
 | |
|                             <span class="text-muted">None</span>
 | |
|                         {% endif %}
 | |
|                     </td>
 | |
|                 </tr>
 | |
|                 <tr>
 | |
|                     <td>Date Added</td>
 | |
|                     <td>{{ object.date_added|placeholder }}</td>
 | |
|                 </tr>
 | |
|                 <tr>
 | |
|                     <td>Description</td>
 | |
|                     <td>{{ object.description|placeholder }}</td>
 | |
|                 </tr>
 | |
|             </table>
 | |
|         </div>
 | |
|         {% plugin_left_page object %}
 | |
|     </div>
 | |
|     <div class="col-md-6">
 | |
|         {% include 'inc/custom_fields_panel.html' %}
 | |
|         {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='ipam:aggregate_list' %}
 | |
|         {% plugin_right_page object %}
 | |
|     </div>
 | |
| </div>
 | |
| <div class="row">
 | |
|     <div class="col-md-12">
 | |
|         {% plugin_full_width_page object %}
 | |
|     </div>
 | |
| </div>
 | |
| <div class="row">
 | |
|     <div class="col-md-12">
 | |
|         {% include 'utilities/obj_table.html' with table=prefix_table table_template='panel_table.html' heading='Child Prefixes' bulk_edit_url='ipam:prefix_bulk_edit' bulk_delete_url='ipam:prefix_bulk_delete' %}
 | |
| 	</div>
 | |
| </div>
 | |
| {% endblock %}
 |