mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
47 lines
1.5 KiB
HTML
47 lines
1.5 KiB
HTML
{% extends '_base.html' %}
|
|
{% load helpers %}
|
|
|
|
{% block title %}Devices{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="pull-right">
|
|
{% if perms.dcim.add_device %}
|
|
<a href="{% url 'dcim:device_add' %}" class="btn btn-primary">
|
|
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
|
|
Add a device
|
|
</a>
|
|
<a href="{% url 'dcim:device_import' %}" class="btn btn-info">
|
|
<span class="glyphicon glyphicon-import" aria-hidden="true"></span>
|
|
Import devices
|
|
</a>
|
|
{% endif %}
|
|
{% include 'inc/export_button.html' with obj_type='devices' %}
|
|
</div>
|
|
<h1>Devices</h1>
|
|
<div class="row">
|
|
<div class="col-md-9">
|
|
{% include 'dcim/inc/device_table.html' with bulk_edit_url='dcim:device_bulk_edit' bulk_delete_url='dcim:device_bulk_delete' %}
|
|
</div>
|
|
<div class="col-md-3">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<strong>Search</strong>
|
|
</div>
|
|
<div class="panel-body">
|
|
<form action="{% url 'dcim:device_list' %}" method="get">
|
|
<div class="input-group">
|
|
<input type="text" name="q" class="form-control" placeholder="Name or serial" {% if request.GET.q %}value="{{ request.GET.q }}" {% endif %}/>
|
|
<span class="input-group-btn">
|
|
<button type="submit" class="btn btn-primary">
|
|
<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
|
|
</button>
|
|
</span>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% include 'inc/filter_panel.html' %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|