mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
92 lines
3.0 KiB
HTML
92 lines
3.0 KiB
HTML
{% extends '_base.html' %}
|
|
{% load helpers %}
|
|
|
|
{% block title %}{{ tenant }}{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col-md-9">
|
|
<ol class="breadcrumb">
|
|
<li><a href="{% url 'tenancy:tenant_list' %}?group={{ tenant.group.slug }}">{{ tenant.group }}</a></li>
|
|
<li>{{ tenant }}</li>
|
|
</ol>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<form action="{% url 'tenancy:tenant_list' %}" method="get">
|
|
<div class="input-group">
|
|
<input type="text" name="q" class="form-control" placeholder="Name" />
|
|
<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>
|
|
<div class="pull-right">
|
|
{% if perms.tenancy.change_tenant %}
|
|
<a href="{% url 'tenancy:tenant_edit' slug=tenant.slug %}" class="btn btn-warning">
|
|
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
|
|
Edit this tenant
|
|
</a>
|
|
{% endif %}
|
|
{% if perms.tenancy.delete_tenant %}
|
|
<a href="{% url 'tenancy:tenant_delete' slug=tenant.slug %}" class="btn btn-danger">
|
|
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
|
|
Delete this tenant
|
|
</a>
|
|
{% endif %}
|
|
</div>
|
|
<h1>{{ tenant }}</h1>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<strong>Tenant</strong>
|
|
</div>
|
|
<table class="table table-hover panel-body">
|
|
<tr>
|
|
<td>Group</td>
|
|
<td>
|
|
<a href="{{ tenant.group.get_absolute_url }}">{{ tenant.group }}</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Description</td>
|
|
<td>
|
|
{% if tenant.description %}
|
|
{{ tenant.description }}
|
|
{% else %}
|
|
<span class="text-muted">N/A</span>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Created</td>
|
|
<td>{{ tenant.created }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Last Updated</td>
|
|
<td>{{ tenant.last_updated }}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<strong>Comments</strong>
|
|
</div>
|
|
<div class="panel-body">
|
|
{% if tenant.comments %}
|
|
{{ tenant.comments|gfm }}
|
|
{% else %}
|
|
<span class="text-muted">None</span>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|