Internationalize plugin navigation, forms, tables, model labels, detail templates, choices, and validation messages. Ship a compiled German Django message catalog and bump the plugin version to 1.10.0.
102 lines
3.6 KiB
HTML
102 lines
3.6 KiB
HTML
{% extends 'generic/object.html' %}
|
|
{% load buttons %}
|
|
{% load static %}
|
|
{% load helpers %}
|
|
{% load plugins %}
|
|
{% load i18n %}
|
|
|
|
{% block content %}
|
|
<div class="row my-3">
|
|
<div class="col col-md-6">
|
|
<div class="card">
|
|
<h5 class="card-header">
|
|
{% trans "Software Product Version" %}
|
|
</h5>
|
|
<table class="table table-hover attr-table">
|
|
<tr>
|
|
<th scope="row">{% trans "Name" %}</th>
|
|
<td>{{ object.name }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "Description" %}</th>
|
|
<td>{{ object.description }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "Manufacturer" %}</th>
|
|
<td>{{ object.software_product.manufacturer|linkify }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "Software Product" %}</th>
|
|
<td>{{ object.software_product|linkify }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "Release date" %}</th>
|
|
<td>{{ object.release_date }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "Documentation URL" %}</th>
|
|
{% if object.documentation_url %}
|
|
<td><a href="{{ object.documentation_url }}">{{ object.documentation_url }}</a></td>
|
|
{% else %}
|
|
<td>{{ object.documentation_url }}</td>
|
|
{% endif %}
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "End of support" %}</th>
|
|
<td>{{ object.end_of_support }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "Filename" %}</th>
|
|
{% if object.file_link %}
|
|
<td><a href="{{ object.file_link }}">{{ object.filename }}</a></td>
|
|
{% else %}
|
|
<td>{{ object.filename }}</td>
|
|
{% endif %}
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "File checksum" %}</th>
|
|
<td>{{ object.file_checksum }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "Release type" %}</th>
|
|
<td>{{ object.get_release_type_display }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "Installations" %}</th>
|
|
<td>
|
|
{% for installation in object.softwareproductinstallation_set.all %}
|
|
<a href="{% url 'plugins:netbox_slm:softwareproductinstallation' pk=installation.pk %}" class="btn btn-sm">
|
|
{{ installation }}
|
|
</a>
|
|
{% empty %}
|
|
{% trans "None" %}
|
|
{% endfor %}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "Licenses" %}</th>
|
|
<td>
|
|
{% for license in object.softwarelicense_set.all %}
|
|
<a href="{% url 'plugins:netbox_slm:softwarelicense' pk=license.pk %}" class="btn btn-sm">
|
|
{{ license }}
|
|
</a>
|
|
{% empty %}
|
|
{% trans "None" %}
|
|
{% endfor %}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
{% include 'inc/panels/custom_fields.html' %}
|
|
{% include 'inc/panels/tags.html' %}
|
|
{% include 'inc/panels/comments.html' %}
|
|
{% plugin_left_page object %}
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col col-md-12">
|
|
{% plugin_full_width_page object %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|