mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
- Introduces the Script model to represent individual Python classes within a ScriptModule file - Automatically migrates jobs & event rules --------- Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
29 lines
854 B
HTML
29 lines
854 B
HTML
{% extends 'extras/script/base.html' %}
|
|
{% load render_table from django_tables2 %}
|
|
{% load i18n %}
|
|
|
|
{% block content %}
|
|
<div class="row mb-3">
|
|
<div class="col col-md-12">
|
|
<div class="card">
|
|
<div class="card-body table-responsive">
|
|
|
|
{% if not script.is_executable %}
|
|
<div class="alert alert-warning" role="alert">
|
|
<div class="d-flex justify-content-between">
|
|
<div>
|
|
<i class="mdi mdi-alert"></i>
|
|
{% trans "Script no longer exists in the source file." %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% render_table table 'inc/table.html' %}
|
|
{% include 'inc/paginator.html' with paginator=table.paginator page=table.page %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|