nautobot 2.4.14__py3-none-any.whl → 2.4.15__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of nautobot might be problematic. Click here for more details.
- nautobot/apps/choices.py +8 -0
- nautobot/apps/ui.py +14 -0
- nautobot/core/api/views.py +2 -0
- nautobot/core/choices.py +4 -0
- nautobot/core/filters.py +21 -41
- nautobot/core/management/commands/check_job_approval_status.py +47 -0
- nautobot/core/management/commands/generate_test_data.py +1 -1
- nautobot/core/management/commands/migrate.py +1 -1
- nautobot/core/models/tree_queries.py +17 -0
- nautobot/core/settings.py +2 -2
- nautobot/core/tables.py +25 -2
- nautobot/core/templates/base_django.html +1 -1
- nautobot/core/templates/components/panel/header_extra_content_table.html +1 -1
- nautobot/core/templates/generic/object_list.html +17 -20
- nautobot/core/templates/inc/breadcrumbs.html +14 -0
- nautobot/core/templatetags/buttons.py +2 -4
- nautobot/core/templatetags/helpers.py +29 -6
- nautobot/core/templatetags/ui_framework.py +21 -0
- nautobot/core/testing/filters.py +20 -3
- nautobot/core/testing/forms.py +1 -1
- nautobot/core/tests/integration/test_filters.py +2 -2
- nautobot/core/tests/test_breadcrumbs.py +366 -0
- nautobot/core/tests/test_commands.py +40 -0
- nautobot/core/tests/test_filters.py +51 -1
- nautobot/core/tests/test_forms.py +1 -1
- nautobot/core/tests/test_graphql.py +4 -4
- nautobot/core/tests/test_titles.py +183 -0
- nautobot/core/tests/test_tree_queries.py +30 -0
- nautobot/core/tests/test_views.py +2 -2
- nautobot/core/tests/test_views_utils.py +1 -1
- nautobot/core/ui/breadcrumbs.py +538 -0
- nautobot/core/ui/bulk_buttons.py +53 -0
- nautobot/core/ui/object_detail.py +31 -8
- nautobot/core/ui/titles.py +127 -0
- nautobot/core/ui/utils.py +25 -0
- nautobot/core/utils/migrations.py +1 -1
- nautobot/core/views/__init__.py +1 -1
- nautobot/core/views/mixins.py +26 -1
- nautobot/core/views/renderers.py +20 -2
- nautobot/core/views/utils.py +13 -12
- nautobot/dcim/api/serializers.py +9 -0
- nautobot/dcim/choices.py +53 -0
- nautobot/dcim/filters/__init__.py +15 -3
- nautobot/dcim/forms.py +120 -7
- nautobot/dcim/management/commands/trace_paths.py +1 -1
- nautobot/dcim/migrations/0072_alter_powerfeed_options_and_more.py +97 -0
- nautobot/dcim/models/device_component_templates.py +8 -0
- nautobot/dcim/models/device_components.py +31 -12
- nautobot/dcim/models/devices.py +1 -1
- nautobot/dcim/models/power.py +171 -10
- nautobot/dcim/models/racks.py +7 -4
- nautobot/dcim/tables/devices.py +2 -0
- nautobot/dcim/tables/devicetypes.py +1 -0
- nautobot/dcim/tables/power.py +30 -2
- nautobot/dcim/templates/dcim/device.html +2 -2
- nautobot/dcim/templates/dcim/devicetype_retrieve.html +1 -214
- nautobot/dcim/templates/dcim/location_retrieve.html +2 -2
- nautobot/dcim/templates/dcim/powerfeed_edit.html +8 -0
- nautobot/dcim/templates/dcim/powerfeed_retrieve.html +1 -1
- nautobot/dcim/tests/integration/test_device_bulk_operations.py +61 -0
- nautobot/dcim/tests/test_api.py +24 -4
- nautobot/dcim/tests/test_filters.py +91 -13
- nautobot/dcim/tests/test_models.py +262 -0
- nautobot/dcim/tests/test_views.py +20 -12
- nautobot/dcim/utils.py +9 -0
- nautobot/dcim/views.py +390 -77
- nautobot/extras/factory.py +19 -20
- nautobot/extras/filters/__init__.py +3 -2
- nautobot/extras/filters/mixins.py +15 -1
- nautobot/extras/forms/__init__.py +2 -1
- nautobot/extras/forms/forms.py +62 -0
- nautobot/extras/managers.py +4 -1
- nautobot/extras/migrations/0125_jobresult_date_started.py +18 -0
- nautobot/extras/models/customfields.py +1 -2
- nautobot/extras/models/datasources.py +1 -2
- nautobot/extras/models/jobs.py +7 -3
- nautobot/extras/plugins/views.py +24 -1
- nautobot/extras/secrets/__init__.py +1 -1
- nautobot/extras/tables.py +9 -0
- nautobot/extras/templates/extras/customfield.html +2 -129
- nautobot/extras/templates/extras/customfield_edit.html +2 -108
- nautobot/extras/templates/extras/customfield_retrieve.html +129 -0
- nautobot/extras/templates/extras/customfield_update.html +108 -0
- nautobot/extras/templates/extras/inc/jobresult.html +7 -3
- nautobot/extras/templates/extras/jobresult.html +2 -155
- nautobot/extras/templates/extras/jobresult_retrieve.html +155 -0
- nautobot/extras/templates/extras/marketplace.html +5 -6
- nautobot/extras/templates/extras/note.html +2 -53
- nautobot/extras/templates/extras/note_retrieve.html +53 -0
- nautobot/extras/templates/extras/plugins_list.html +5 -6
- nautobot/extras/templatetags/custom_links.py +2 -2
- nautobot/extras/templatetags/job_buttons.py +1 -1
- nautobot/extras/templatetags/plugins.py +1 -1
- nautobot/extras/tests/integration/test_computedfields.py +2 -2
- nautobot/extras/tests/integration/test_customfields.py +14 -11
- nautobot/extras/tests/integration/test_dynamicgroups.py +1 -1
- nautobot/extras/tests/integration/test_notes.py +1 -1
- nautobot/extras/tests/integration/test_plugins.py +6 -6
- nautobot/extras/tests/integration/test_relationships.py +2 -2
- nautobot/extras/tests/test_filters.py +9 -0
- nautobot/extras/tests/test_forms.py +2 -2
- nautobot/extras/tests/test_plugins.py +2 -3
- nautobot/extras/tests/test_relationships.py +7 -7
- nautobot/extras/tests/test_views.py +172 -1
- nautobot/extras/urls.py +3 -59
- nautobot/extras/utils.py +1 -1
- nautobot/extras/views.py +77 -178
- nautobot/ipam/tables.py +8 -15
- nautobot/ipam/tests/migration/test_migrations.py +8 -8
- nautobot/ipam/tests/test_api.py +2 -2
- nautobot/ipam/tests/test_models.py +1 -1
- nautobot/project-static/docs/404.html +23 -0
- nautobot/project-static/docs/apps/index.html +23 -0
- nautobot/project-static/docs/apps/nautobot-apps.html +23 -0
- nautobot/project-static/docs/assets/_mkdocstrings.css +44 -6
- nautobot/project-static/docs/code-reference/nautobot/apps/__init__.html +28 -0
- nautobot/project-static/docs/code-reference/nautobot/apps/admin.html +25 -0
- nautobot/project-static/docs/code-reference/nautobot/apps/api.html +128 -20
- nautobot/project-static/docs/code-reference/nautobot/apps/change_logging.html +37 -4
- nautobot/project-static/docs/code-reference/nautobot/apps/choices.html +39 -6
- nautobot/project-static/docs/code-reference/nautobot/apps/config.html +25 -0
- nautobot/project-static/docs/code-reference/nautobot/apps/constants.html +24 -0
- nautobot/project-static/docs/code-reference/nautobot/apps/datasources.html +32 -5
- nautobot/project-static/docs/code-reference/nautobot/apps/events.html +41 -8
- nautobot/project-static/docs/code-reference/nautobot/apps/exceptions.html +39 -7
- nautobot/project-static/docs/code-reference/nautobot/apps/factory.html +43 -10
- nautobot/project-static/docs/code-reference/nautobot/apps/filters.html +74 -59
- nautobot/project-static/docs/code-reference/nautobot/apps/forms.html +143 -28
- nautobot/project-static/docs/code-reference/nautobot/apps/graphql.html +43 -12
- nautobot/project-static/docs/code-reference/nautobot/apps/jobs.html +135 -53
- nautobot/project-static/docs/code-reference/nautobot/apps/models.html +229 -36
- nautobot/project-static/docs/code-reference/nautobot/apps/querysets.html +27 -1
- nautobot/project-static/docs/code-reference/nautobot/apps/secrets.html +30 -1
- nautobot/project-static/docs/code-reference/nautobot/apps/tables.html +162 -18
- nautobot/project-static/docs/code-reference/nautobot/apps/testing.html +258 -51
- nautobot/project-static/docs/code-reference/nautobot/apps/ui.html +5987 -2620
- nautobot/project-static/docs/code-reference/nautobot/apps/urls.html +25 -0
- nautobot/project-static/docs/code-reference/nautobot/apps/utils.html +154 -55
- nautobot/project-static/docs/code-reference/nautobot/apps/views.html +150 -35
- nautobot/project-static/docs/development/apps/api/configuration-view.html +23 -0
- nautobot/project-static/docs/development/apps/api/database-backend-config.html +23 -0
- nautobot/project-static/docs/development/apps/api/models/django-admin.html +23 -0
- nautobot/project-static/docs/development/apps/api/models/global-search.html +23 -0
- nautobot/project-static/docs/development/apps/api/models/graphql.html +23 -0
- nautobot/project-static/docs/development/apps/api/models/index.html +23 -0
- nautobot/project-static/docs/development/apps/api/nautobot-app-config.html +23 -0
- nautobot/project-static/docs/development/apps/api/platform-features/custom-validators.html +23 -0
- nautobot/project-static/docs/development/apps/api/platform-features/filter-extensions.html +23 -0
- nautobot/project-static/docs/development/apps/api/platform-features/git-repository-content.html +23 -0
- nautobot/project-static/docs/development/apps/api/platform-features/index.html +23 -0
- nautobot/project-static/docs/development/apps/api/platform-features/jinja2-filters.html +23 -0
- nautobot/project-static/docs/development/apps/api/platform-features/jobs.html +23 -0
- nautobot/project-static/docs/development/apps/api/platform-features/populating-extensibility-features.html +23 -0
- nautobot/project-static/docs/development/apps/api/platform-features/secrets-providers.html +23 -0
- nautobot/project-static/docs/development/apps/api/platform-features/table-extensions.html +23 -0
- nautobot/project-static/docs/development/apps/api/platform-features/uniquely-identify-objects.html +23 -0
- nautobot/project-static/docs/development/apps/api/prometheus.html +23 -0
- nautobot/project-static/docs/development/apps/api/setup.html +23 -0
- nautobot/project-static/docs/development/apps/api/testing.html +23 -0
- nautobot/project-static/docs/development/apps/api/ui-extensions/banners.html +23 -0
- nautobot/project-static/docs/development/apps/api/ui-extensions/home-page.html +23 -0
- nautobot/project-static/docs/development/apps/api/ui-extensions/index.html +23 -0
- nautobot/project-static/docs/development/apps/api/ui-extensions/navigation.html +23 -0
- nautobot/project-static/docs/development/apps/api/ui-extensions/object-views.html +23 -0
- nautobot/project-static/docs/development/apps/api/views/base-template.html +23 -0
- nautobot/project-static/docs/development/apps/api/views/core-view-overrides.html +23 -0
- nautobot/project-static/docs/development/apps/api/views/django-generic-views.html +23 -0
- nautobot/project-static/docs/development/apps/api/views/help-documentation.html +23 -0
- nautobot/project-static/docs/development/apps/api/views/index.html +23 -0
- nautobot/project-static/docs/development/apps/api/views/nautobot-generic-views.html +23 -0
- nautobot/project-static/docs/development/apps/api/views/nautobotuiviewset.html +31 -2
- nautobot/project-static/docs/development/apps/api/views/nautobotuiviewsetrouter.html +23 -0
- nautobot/project-static/docs/development/apps/api/views/notes.html +23 -0
- nautobot/project-static/docs/development/apps/api/views/rest-api.html +23 -0
- nautobot/project-static/docs/development/apps/api/views/urls.html +23 -0
- nautobot/project-static/docs/development/apps/index.html +23 -0
- nautobot/project-static/docs/development/apps/migration/code-updates.html +23 -0
- nautobot/project-static/docs/development/apps/migration/dependency-updates.html +23 -0
- nautobot/project-static/docs/development/apps/migration/from-v1.html +23 -0
- nautobot/project-static/docs/development/apps/migration/model-updates/dcim.html +23 -0
- nautobot/project-static/docs/development/apps/migration/model-updates/extras.html +23 -0
- nautobot/project-static/docs/development/apps/migration/model-updates/global.html +23 -0
- nautobot/project-static/docs/development/apps/migration/model-updates/ipam.html +23 -0
- nautobot/project-static/docs/development/apps/migration/ui-component-framework/best-practices.html +26 -3
- nautobot/project-static/docs/development/apps/migration/ui-component-framework/breadcrumbs-titles.html +10544 -0
- nautobot/project-static/docs/development/apps/migration/ui-component-framework/custom-content.html +23 -0
- nautobot/project-static/docs/development/apps/migration/ui-component-framework/index.html +23 -0
- nautobot/project-static/docs/development/apps/migration/ui-component-framework/migration-steps.html +23 -0
- nautobot/project-static/docs/development/apps/porting-from-netbox.html +26 -3
- nautobot/project-static/docs/development/core/application-registry.html +23 -0
- nautobot/project-static/docs/development/core/best-practices.html +23 -0
- nautobot/project-static/docs/development/core/bootstrap-ui.html +23 -0
- nautobot/project-static/docs/development/core/caching.html +23 -0
- nautobot/project-static/docs/development/core/controllers.html +23 -0
- nautobot/project-static/docs/development/core/docker-compose-advanced-use-cases.html +23 -0
- nautobot/project-static/docs/development/core/generic-views.html +23 -0
- nautobot/project-static/docs/development/core/getting-started.html +23 -0
- nautobot/project-static/docs/development/core/homepage.html +23 -0
- nautobot/project-static/docs/development/core/index.html +23 -0
- nautobot/project-static/docs/development/core/minikube-dev-environment-for-k8s-jobs.html +23 -0
- nautobot/project-static/docs/development/core/model-checklist.html +23 -0
- nautobot/project-static/docs/development/core/model-features.html +23 -0
- nautobot/project-static/docs/development/core/natural-keys.html +23 -0
- nautobot/project-static/docs/development/core/navigation-menu.html +23 -0
- nautobot/project-static/docs/development/core/release-checklist.html +23 -0
- nautobot/project-static/docs/development/core/role-internals.html +23 -0
- nautobot/project-static/docs/development/core/settings.html +23 -0
- nautobot/project-static/docs/development/core/style-guide.html +23 -0
- nautobot/project-static/docs/development/core/templates.html +23 -0
- nautobot/project-static/docs/development/core/testing.html +23 -0
- nautobot/project-static/docs/development/core/ui-component-framework.html +713 -255
- nautobot/project-static/docs/development/core/user-preferences.html +23 -0
- nautobot/project-static/docs/development/index.html +23 -0
- nautobot/project-static/docs/development/jobs/getting-started.html +23 -0
- nautobot/project-static/docs/development/jobs/index.html +23 -0
- nautobot/project-static/docs/development/jobs/installation.html +23 -0
- nautobot/project-static/docs/development/jobs/job-extensions.html +23 -0
- nautobot/project-static/docs/development/jobs/job-logging.html +23 -0
- nautobot/project-static/docs/development/jobs/job-patterns.html +23 -0
- nautobot/project-static/docs/development/jobs/job-structure.html +23 -0
- nautobot/project-static/docs/development/jobs/migration/from-v1.html +23 -0
- nautobot/project-static/docs/development/jobs/testing.html +23 -0
- nautobot/project-static/docs/index.html +23 -0
- nautobot/project-static/docs/media/development/core/ui-component-framework/breadcrumbs-titles-data-flow.png +0 -0
- nautobot/project-static/docs/media/power_distribution.png +0 -0
- nautobot/project-static/docs/objects.inv +0 -0
- nautobot/project-static/docs/overview/application_stack.html +23 -0
- nautobot/project-static/docs/overview/design_philosophy.html +23 -0
- nautobot/project-static/docs/release-notes/index.html +23 -0
- nautobot/project-static/docs/release-notes/version-1.0.html +23 -0
- nautobot/project-static/docs/release-notes/version-1.1.html +23 -0
- nautobot/project-static/docs/release-notes/version-1.2.html +23 -0
- nautobot/project-static/docs/release-notes/version-1.3.html +23 -0
- nautobot/project-static/docs/release-notes/version-1.4.html +23 -0
- nautobot/project-static/docs/release-notes/version-1.5.html +23 -0
- nautobot/project-static/docs/release-notes/version-1.6.html +23 -0
- nautobot/project-static/docs/release-notes/version-2.0.html +23 -0
- nautobot/project-static/docs/release-notes/version-2.1.html +23 -0
- nautobot/project-static/docs/release-notes/version-2.2.html +23 -0
- nautobot/project-static/docs/release-notes/version-2.3.html +23 -0
- nautobot/project-static/docs/release-notes/version-2.4.html +231 -0
- nautobot/project-static/docs/requirements.txt +2 -2
- nautobot/project-static/docs/search/search_index.json +1 -1
- nautobot/project-static/docs/sitemap.xml +303 -299
- nautobot/project-static/docs/sitemap.xml.gz +0 -0
- nautobot/project-static/docs/user-guide/administration/configuration/authentication/ldap.html +23 -0
- nautobot/project-static/docs/user-guide/administration/configuration/authentication/remote.html +23 -0
- nautobot/project-static/docs/user-guide/administration/configuration/authentication/sso.html +23 -0
- nautobot/project-static/docs/user-guide/administration/configuration/index.html +23 -0
- nautobot/project-static/docs/user-guide/administration/configuration/redis.html +23 -0
- nautobot/project-static/docs/user-guide/administration/configuration/settings.html +23 -0
- nautobot/project-static/docs/user-guide/administration/configuration/time-zones.html +23 -0
- nautobot/project-static/docs/user-guide/administration/guides/celery-queues.html +23 -0
- nautobot/project-static/docs/user-guide/administration/guides/docker.html +23 -0
- nautobot/project-static/docs/user-guide/administration/guides/health-checks.html +23 -0
- nautobot/project-static/docs/user-guide/administration/guides/permissions.html +23 -0
- nautobot/project-static/docs/user-guide/administration/guides/prometheus-metrics.html +23 -0
- nautobot/project-static/docs/user-guide/administration/guides/replicating-nautobot.html +23 -0
- nautobot/project-static/docs/user-guide/administration/guides/request-profiling.html +23 -0
- nautobot/project-static/docs/user-guide/administration/guides/s3-django-storage.html +23 -0
- nautobot/project-static/docs/user-guide/administration/guides/selinux-troubleshooting.html +23 -0
- nautobot/project-static/docs/user-guide/administration/installation/app-install.html +23 -0
- nautobot/project-static/docs/user-guide/administration/installation/external-authentication.html +23 -0
- nautobot/project-static/docs/user-guide/administration/installation/http-server.html +23 -0
- nautobot/project-static/docs/user-guide/administration/installation/index.html +23 -0
- nautobot/project-static/docs/user-guide/administration/installation/install_system.html +23 -0
- nautobot/project-static/docs/user-guide/administration/installation/nautobot.html +23 -0
- nautobot/project-static/docs/user-guide/administration/installation/services.html +23 -0
- nautobot/project-static/docs/user-guide/administration/migration/migrating-from-netbox.html +23 -0
- nautobot/project-static/docs/user-guide/administration/migration/migrating-from-postgresql.html +23 -0
- nautobot/project-static/docs/user-guide/administration/security/index.html +23 -0
- nautobot/project-static/docs/user-guide/administration/security/notices.html +23 -0
- nautobot/project-static/docs/user-guide/administration/tools/nautobot-server.html +284 -219
- nautobot/project-static/docs/user-guide/administration/tools/nautobot-shell.html +23 -0
- nautobot/project-static/docs/user-guide/administration/upgrading/database-backup.html +23 -0
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/after-you-upgrade.html +23 -0
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/before-you-upgrade.html +23 -0
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/for-developers.html +23 -0
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/index.html +23 -0
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/whats-changed.html +23 -0
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/region-and-site-data-migration-guide.html +23 -0
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/upgrading-from-nautobot-v1.html +23 -0
- nautobot/project-static/docs/user-guide/administration/upgrading/upgrading.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/circuits/circuit.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/circuits/circuittermination.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/circuits/circuittype.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/circuits/provider.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/circuits/providernetwork.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloud.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudaccount.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudnetwork.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudnetworkprefixassignment.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudresourcetype.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudservice.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudservicenetworkassignment.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/cable.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleport.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleporttemplate.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleserverport.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleserverporttemplate.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/controller.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/controllermanageddevicegroup.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/device.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicebay.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicebaytemplate.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicefamily.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/deviceredundancygroup.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicetype.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/frontport.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/frontporttemplate.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/interface.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/interfaceredundancygroup.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/interfacetemplate.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/inventoryitem.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/location.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/locationtype.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/manufacturer.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/module.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/modulebay.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/modulebaytemplate.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/modulefamily.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/moduletype.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/platform.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerfeed.html +305 -5
- nautobot/project-static/docs/user-guide/core-data-model/dcim/poweroutlet.html +24 -1
- nautobot/project-static/docs/user-guide/core-data-model/dcim/poweroutlettemplate.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerpanel.html +136 -3
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerport.html +41 -1
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerporttemplate.html +40 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rack.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rackgroup.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rackreservation.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rearport.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rearporttemplate.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/softwareimagefile.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/softwareversion.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/virtualchassis.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/virtualdevicecontext.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/extras/configcontext.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/extras/configcontextschema.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/extras/contact.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/extras/team.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/ipam/ipaddress.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/ipam/namespace.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/ipam/prefix.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/ipam/rir.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/ipam/routetarget.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/ipam/service.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/ipam/vlan.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/ipam/vlangroup.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/ipam/vrf.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/overview/introduction.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/tenancy/tenant.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/tenancy/tenantgroup.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/cluster.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/clustergroup.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/clustertype.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/virtualmachine.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/vminterface.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/wireless/index.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/wireless/radioprofile.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/wireless/supporteddatarate.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/wireless/wirelessnetwork.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/contacts-and-teams.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/custom-fields.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/creating-devices.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/creating-location-types-and-locations.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/index.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/interfaces.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/ipam.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/platforms.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/search-bar.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/tenants.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/vlans-and-vlan-groups.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/git-data-source.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/graphql.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/ip-address-merge-tool.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/relationships.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/software-image-files-and-versions.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/wireless-networks-and-controllers.html +23 -0
- nautobot/project-static/docs/user-guide/index.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/change-logging.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/computedfield.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/customfield.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/customlink.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/dynamicgroup.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/events.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/exporttemplate.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/externalintegration.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/gitrepository.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/graphql.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/graphqlquery.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/imageattachment.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/index.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/job-scheduling-and-approvals.html +24 -1
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/jobbutton.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/jobhook.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/jobqueue.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/kubernetes-job-support.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/managing-jobs.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/models.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/napalm.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/note.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/objectmetadata.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/relationship.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/rendering-jinja-templates.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/authentication.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/filtering.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/overview.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/ui-related-endpoints.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/role.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/savedview.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/secret.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/staticgroupassociation.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/status.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/tag.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/template-filters.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/users/objectpermission.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/users/token.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/webhook.html +23 -0
- nautobot/users/tests/test_api.py +2 -2
- nautobot/virtualization/templates/virtualization/virtualmachine.html +2 -252
- nautobot/virtualization/templates/virtualization/virtualmachine_edit.html +2 -75
- nautobot/virtualization/templates/virtualization/virtualmachine_retrieve.html +252 -0
- nautobot/virtualization/templates/virtualization/virtualmachine_update.html +75 -0
- nautobot/virtualization/urls.py +3 -61
- nautobot/virtualization/views.py +48 -72
- {nautobot-2.4.14.dist-info → nautobot-2.4.15.dist-info}/METADATA +24 -24
- {nautobot-2.4.14.dist-info → nautobot-2.4.15.dist-info}/RECORD +433 -416
- {nautobot-2.4.14.dist-info → nautobot-2.4.15.dist-info}/LICENSE.txt +0 -0
- {nautobot-2.4.14.dist-info → nautobot-2.4.15.dist-info}/NOTICE +0 -0
- {nautobot-2.4.14.dist-info → nautobot-2.4.15.dist-info}/WHEEL +0 -0
- {nautobot-2.4.14.dist-info → nautobot-2.4.15.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
{% extends 'generic/object_retrieve.html' %}
|
|
2
|
+
{% load buttons %}
|
|
3
|
+
{% load helpers %}
|
|
4
|
+
|
|
5
|
+
{% block content_left_page %}
|
|
6
|
+
<div class="panel panel-default">
|
|
7
|
+
<div class="panel-heading">
|
|
8
|
+
<strong>Custom Field</strong>
|
|
9
|
+
</div>
|
|
10
|
+
<table class="table table-hover panel-body attr-table">
|
|
11
|
+
<tr>
|
|
12
|
+
<td>Label</td>
|
|
13
|
+
<td>{{ object.label }}</td>
|
|
14
|
+
</tr>
|
|
15
|
+
<tr>
|
|
16
|
+
<td>Key</td>
|
|
17
|
+
<td>{{ object.key }}</td>
|
|
18
|
+
</tr>
|
|
19
|
+
<tr>
|
|
20
|
+
<td>Type</td>
|
|
21
|
+
<td>{{ object.type | capfirst }}</td>
|
|
22
|
+
</tr>
|
|
23
|
+
<tr>
|
|
24
|
+
<td>Weight</td>
|
|
25
|
+
<td>{{ object.weight }}</td>
|
|
26
|
+
</tr>
|
|
27
|
+
<tr>
|
|
28
|
+
<td>Grouping</td>
|
|
29
|
+
<td>{{ object.grouping | placeholder }}</td>
|
|
30
|
+
</tr>
|
|
31
|
+
<tr>
|
|
32
|
+
<td>Description</td>
|
|
33
|
+
<td>{{ object.description | render_markdown | placeholder }}</td>
|
|
34
|
+
</tr>
|
|
35
|
+
<tr>
|
|
36
|
+
<td>Required</td>
|
|
37
|
+
<td>{{ object.required | render_boolean }}</td>
|
|
38
|
+
</tr>
|
|
39
|
+
<tr>
|
|
40
|
+
<td>Default</td>
|
|
41
|
+
<td>
|
|
42
|
+
{% if object.type == "markdown" %}
|
|
43
|
+
{{ object.default | render_markdown | placeholder }}
|
|
44
|
+
{% elif object.type == "json" and object.default is not None %}
|
|
45
|
+
<pre>{{ object.default | render_json }}</pre>
|
|
46
|
+
{% else %}
|
|
47
|
+
{{ object.default | placeholder }}
|
|
48
|
+
{% endif %}
|
|
49
|
+
</td>
|
|
50
|
+
</tr>
|
|
51
|
+
<tr>
|
|
52
|
+
<td>Filter Logic</td>
|
|
53
|
+
<td>{{ object.filter_logic | capfirst }}</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr>
|
|
56
|
+
<td>Move to Advanced Tab</td>
|
|
57
|
+
<td>{{ object.advanced_ui | render_boolean }}</td>
|
|
58
|
+
</tr>
|
|
59
|
+
</table>
|
|
60
|
+
</div>
|
|
61
|
+
{% if object.custom_field_choices.exists %}
|
|
62
|
+
<div class="panel panel-default">
|
|
63
|
+
<div class="panel-heading">
|
|
64
|
+
<strong>Custom Field Choices</strong>
|
|
65
|
+
</div>
|
|
66
|
+
<table class="table table-hover panel-body attr-table">
|
|
67
|
+
<thead>
|
|
68
|
+
<tr>
|
|
69
|
+
<th>Value</th>
|
|
70
|
+
<th>Weight</th>
|
|
71
|
+
</tr>
|
|
72
|
+
</thead>
|
|
73
|
+
<tbody>
|
|
74
|
+
{% for choice in object.custom_field_choices.all %}
|
|
75
|
+
<tr>
|
|
76
|
+
<td>{{ choice.value }}</td>
|
|
77
|
+
<td>{{ choice.weight }}</td>
|
|
78
|
+
</tr>
|
|
79
|
+
{% endfor %}
|
|
80
|
+
</tbody>
|
|
81
|
+
</table>
|
|
82
|
+
</div>
|
|
83
|
+
{% endif %}
|
|
84
|
+
{% endblock content_left_page %}
|
|
85
|
+
|
|
86
|
+
{% block content_right_page %}
|
|
87
|
+
<div class="panel panel-default">
|
|
88
|
+
<div class="panel-heading">
|
|
89
|
+
<strong>Assignment</strong>
|
|
90
|
+
</div>
|
|
91
|
+
<table class="table table-hover panel-body attr-table">
|
|
92
|
+
<tr>
|
|
93
|
+
<td>Content Types</td>
|
|
94
|
+
<td>
|
|
95
|
+
<ul>
|
|
96
|
+
{% for ct in object.content_types.all %}
|
|
97
|
+
<li>{{ ct }}</li>
|
|
98
|
+
{% endfor %}
|
|
99
|
+
</ul>
|
|
100
|
+
</td>
|
|
101
|
+
</tr>
|
|
102
|
+
</table>
|
|
103
|
+
</div>
|
|
104
|
+
<div class="panel panel-default">
|
|
105
|
+
<div class="panel-heading">
|
|
106
|
+
<strong>Validation Rules</strong>
|
|
107
|
+
</div>
|
|
108
|
+
<table class="table table-hover panel-body attr-table">
|
|
109
|
+
<tr>
|
|
110
|
+
<td>Minimum Value/Length</td>
|
|
111
|
+
<td>{{ object.validation_minimum | placeholder }}</td>
|
|
112
|
+
</tr>
|
|
113
|
+
<tr>
|
|
114
|
+
<td>Maximum Value/Length</td>
|
|
115
|
+
<td>{{ object.validation_maximum | placeholder }}</td>
|
|
116
|
+
</tr>
|
|
117
|
+
<tr>
|
|
118
|
+
<td>Validation Regex</td>
|
|
119
|
+
<td>
|
|
120
|
+
{% if object.validation_regex %}
|
|
121
|
+
<code>{{ object.validation_regex | placeholder }}</code>
|
|
122
|
+
{% else %}
|
|
123
|
+
{{ object.validation_regex | placeholder }}
|
|
124
|
+
{% endif %}
|
|
125
|
+
</td>
|
|
126
|
+
</tr>
|
|
127
|
+
</table>
|
|
128
|
+
</div>
|
|
129
|
+
{% endblock content_right_page %}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{% extends 'generic/object_create.html' %}
|
|
2
|
+
{% load static %}
|
|
3
|
+
{% load form_helpers %}
|
|
4
|
+
|
|
5
|
+
{% block form %}
|
|
6
|
+
<div class="panel panel-default">
|
|
7
|
+
<div class="panel-heading"><strong>Custom Field</strong></div>
|
|
8
|
+
<div class="panel-body">
|
|
9
|
+
{% render_field form.label %}
|
|
10
|
+
{% render_field form.grouping %}
|
|
11
|
+
{% render_field form.key %}
|
|
12
|
+
{% render_field form.type %}
|
|
13
|
+
{% render_field form.weight %}
|
|
14
|
+
{% render_field form.description %}
|
|
15
|
+
{% render_field form.required %}
|
|
16
|
+
{% render_field form.default %}
|
|
17
|
+
{% render_field form.filter_logic %}
|
|
18
|
+
{% render_field form.advanced_ui %}
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="panel panel-default">
|
|
22
|
+
<div class="panel-heading"><strong>Assignment</strong></div>
|
|
23
|
+
<div class="panel-body">
|
|
24
|
+
{% render_field form.content_types %}
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="panel panel-default">
|
|
28
|
+
<div class="panel-heading"><strong>Validation Rules</strong></div>
|
|
29
|
+
<div class="panel-body">
|
|
30
|
+
{% render_field form.validation_minimum %}
|
|
31
|
+
{% render_field form.validation_maximum %}
|
|
32
|
+
{% render_field form.validation_regex %}
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="panel panel-default">
|
|
36
|
+
<div class="panel-heading"><strong>Custom Field Choices</strong></div>
|
|
37
|
+
<div class="panel-body">
|
|
38
|
+
{% if choices.errors %}
|
|
39
|
+
<div class="text-danger">
|
|
40
|
+
Please correct the error(s) below:
|
|
41
|
+
|
|
42
|
+
{% for choice in choices.forms %}
|
|
43
|
+
{% if choice.errors %}
|
|
44
|
+
{% for error in choice.errors.values %}{{ error }}{% endfor %}
|
|
45
|
+
{% endif %}
|
|
46
|
+
{% endfor %}
|
|
47
|
+
</div>
|
|
48
|
+
{% endif %}
|
|
49
|
+
{{ choices.non_field_errors }}
|
|
50
|
+
<table class="table" id="custom-field-choices">
|
|
51
|
+
{{ choices.management_form }}
|
|
52
|
+
{% for choice in choices.forms %}
|
|
53
|
+
{% if forloop.first %}
|
|
54
|
+
<thead>
|
|
55
|
+
<tr>
|
|
56
|
+
{% for field in choice.visible_fields %}
|
|
57
|
+
<th>{{ field.label|capfirst }}</th>
|
|
58
|
+
{% endfor %}
|
|
59
|
+
</tr>
|
|
60
|
+
</thead>
|
|
61
|
+
{% endif %}
|
|
62
|
+
<tr class="formset_row-{{ choices.prefix }}">
|
|
63
|
+
{% for field in choice.visible_fields %}
|
|
64
|
+
<td>
|
|
65
|
+
{# Include the hidden fields in the form #}
|
|
66
|
+
{% if forloop.first %}
|
|
67
|
+
{% for hidden in choice.hidden_fields %}
|
|
68
|
+
{{ hidden }}
|
|
69
|
+
{% endfor %}
|
|
70
|
+
{% endif %}
|
|
71
|
+
{{ field }}
|
|
72
|
+
{% if field.errors %}
|
|
73
|
+
<ul>
|
|
74
|
+
{% for error in field.errors %}
|
|
75
|
+
{# Embed an HTML comment indicating the error for extraction by tests #}
|
|
76
|
+
<!-- FORM-ERROR {{ field.name }}: {{ error }} -->
|
|
77
|
+
<li class="text-danger">{{ error }}</li>
|
|
78
|
+
{% endfor %}
|
|
79
|
+
</ul>
|
|
80
|
+
{% endif %}
|
|
81
|
+
</td>
|
|
82
|
+
{% endfor %}
|
|
83
|
+
</tr>
|
|
84
|
+
{% endfor %}
|
|
85
|
+
</table>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
{% include 'inc/extras_features_edit_form_fields.html' %}
|
|
89
|
+
|
|
90
|
+
{% endblock form %}
|
|
91
|
+
|
|
92
|
+
{% block javascript %}
|
|
93
|
+
{{ block.super }}
|
|
94
|
+
<script src="{% static 'jquery/jquery.formset.js' %}"></script>
|
|
95
|
+
<script type="text/javascript">
|
|
96
|
+
const slugify_prefer_underscores = true; // Custom fields work better in GraphQL (etc.) with underscore-based slugs
|
|
97
|
+
$('.formset_row-{{ choices.prefix }}').formset({
|
|
98
|
+
addText: '<span class="mdi mdi-plus-thick" aria-hidden="true"></span> Add another Custom Field Choice',
|
|
99
|
+
addCssClass: 'btn btn-primary add-row',
|
|
100
|
+
deleteText: '<span class="mdi mdi-trash-can-outline" aria-hidden="true"></span>',
|
|
101
|
+
deleteCssClass: 'btn btn-danger delete-row',
|
|
102
|
+
prefix: '{{ choices.prefix }}',
|
|
103
|
+
formCssClass: 'dynamic-formset-{{ choices.prefix }}',
|
|
104
|
+
keepFieldValues: 'input[type="number"]',
|
|
105
|
+
added: jsify_form
|
|
106
|
+
});
|
|
107
|
+
</script>
|
|
108
|
+
{% endblock javascript %}
|
|
@@ -21,9 +21,13 @@
|
|
|
21
21
|
<td><span id="pending-result-label">{% include 'extras/inc/job_label.html' with result=result %}</span></td>
|
|
22
22
|
</tr>
|
|
23
23
|
<tr>
|
|
24
|
-
<td>
|
|
24
|
+
<td>Created at</td>
|
|
25
25
|
<td>{{ result.date_created | placeholder }}</td>
|
|
26
26
|
</tr>
|
|
27
|
+
<tr>
|
|
28
|
+
<td>Started execution at</td>
|
|
29
|
+
<td>{{ result.date_started | placeholder }}</td>
|
|
30
|
+
</tr>
|
|
27
31
|
<tr>
|
|
28
32
|
<td>User</td>
|
|
29
33
|
<td>{{ result.user | placeholder }}</td>
|
|
@@ -31,7 +35,7 @@
|
|
|
31
35
|
<tr>
|
|
32
36
|
<td>Duration</td>
|
|
33
37
|
<td>
|
|
34
|
-
{% if
|
|
38
|
+
{% if not result.date_done %}
|
|
35
39
|
<img src="{% static 'img/ajax-loader.gif' %}">
|
|
36
40
|
{% else %}
|
|
37
41
|
{{ result.duration | placeholder}}
|
|
@@ -41,7 +45,7 @@
|
|
|
41
45
|
<tr>
|
|
42
46
|
<td>Return Value</td>
|
|
43
47
|
<td>
|
|
44
|
-
{% if
|
|
48
|
+
{% if not result.date_done %}
|
|
45
49
|
<img src="{% static 'img/ajax-loader.gif' %}">
|
|
46
50
|
{% else %}
|
|
47
51
|
{% if result.result %}
|
|
@@ -1,155 +1,2 @@
|
|
|
1
|
-
{% extends '
|
|
2
|
-
{%
|
|
3
|
-
{% load custom_links %}
|
|
4
|
-
{% load form_helpers %}
|
|
5
|
-
{% load log_levels %}
|
|
6
|
-
{% load plugins %}
|
|
7
|
-
{% load static %}
|
|
8
|
-
{% load buttons %}
|
|
9
|
-
|
|
10
|
-
{% block breadcrumbs %}
|
|
11
|
-
<li><a href="{% url 'extras:jobresult_list' %}">Job Results</a></li>
|
|
12
|
-
{% if result.job_model is not None %}
|
|
13
|
-
<li>{{ result.job_model.grouping }}</li>
|
|
14
|
-
<li><a href="{% url 'extras:jobresult_list' %}?job_model={{ result.job_model.name }}">
|
|
15
|
-
{{ result.job_model }}
|
|
16
|
-
</a></li>
|
|
17
|
-
{% elif associated_record %}
|
|
18
|
-
{% if associated_record.name %}
|
|
19
|
-
<li><a href="{% url 'extras:jobresult_list' %}?name={{ associated_record.name|urlencode }}">
|
|
20
|
-
{{ associated_record.name }}
|
|
21
|
-
</a></li>
|
|
22
|
-
{% else %}
|
|
23
|
-
<li>{{ associated_record }}</li>
|
|
24
|
-
{% endif %}
|
|
25
|
-
{% elif job %}
|
|
26
|
-
<li><a href="{% url 'extras:jobresult_list' %}?name={{ job.class_path|urlencode }}">
|
|
27
|
-
{{ job.class_path }}
|
|
28
|
-
</a></li>
|
|
29
|
-
{% else %}
|
|
30
|
-
<li>{{ result.name }}</li>
|
|
31
|
-
{% endif %}
|
|
32
|
-
<li>{{ result.created }}</li>
|
|
33
|
-
{% endblock breadcrumbs %}
|
|
34
|
-
|
|
35
|
-
{% block buttons %}
|
|
36
|
-
{% if perms.extras.run_job %}
|
|
37
|
-
{% if result.job_model and result.task_kwargs %}
|
|
38
|
-
<a href="{% url 'extras:job_run' pk=result.job_model.pk %}?kwargs_from_job_result={{ result.pk }}"
|
|
39
|
-
class="btn btn-success">
|
|
40
|
-
<span class="mdi mdi-repeat" aria-hidden="true"></span> Re-Run
|
|
41
|
-
</a>
|
|
42
|
-
{% elif result.job_model is not None %}
|
|
43
|
-
<a href="{% url 'extras:job_run' pk=result.job_model.pk %}"
|
|
44
|
-
class="btn btn-primary">
|
|
45
|
-
<span class="mdi mdi-play" aria-hidden="true"></span> Run
|
|
46
|
-
</a>
|
|
47
|
-
{% endif %}
|
|
48
|
-
{% endif %}
|
|
49
|
-
<a href="{% url 'extras-api:joblogentry-list' %}?job_result={{ result.pk }}&format=csv" class="btn btn-success">
|
|
50
|
-
<span class="mdi mdi-database-export" aria-hidden="true"></span> Export
|
|
51
|
-
</a>
|
|
52
|
-
{{ block.super }}
|
|
53
|
-
{% endblock buttons %}
|
|
54
|
-
|
|
55
|
-
{% block title %}
|
|
56
|
-
Job Result:
|
|
57
|
-
{% if result.job_model is not None %}
|
|
58
|
-
{{ result.job_model }}
|
|
59
|
-
{% elif associated_record %}
|
|
60
|
-
{{ associated_record }}
|
|
61
|
-
{% elif job %}
|
|
62
|
-
{{ job }}
|
|
63
|
-
{% else %}
|
|
64
|
-
{{ result.name }}
|
|
65
|
-
{% endif %}
|
|
66
|
-
{% endblock %}
|
|
67
|
-
|
|
68
|
-
{% block extra_nav_tabs %}
|
|
69
|
-
{% if result.data.output %}
|
|
70
|
-
<li role="presentation">
|
|
71
|
-
<a href="#output" role="tab" data-toggle="tab">Output</a>
|
|
72
|
-
</li>
|
|
73
|
-
{% endif %}
|
|
74
|
-
{% endblock %}
|
|
75
|
-
|
|
76
|
-
{% block content_full_width_page %}
|
|
77
|
-
{% include 'extras/inc/jobresult.html' with result=result log_table=log_table %}
|
|
78
|
-
{% endblock content_full_width_page %}
|
|
79
|
-
|
|
80
|
-
{% block advanced_content_left_page %}
|
|
81
|
-
<div class="panel panel-default">
|
|
82
|
-
<div class="panel-heading">
|
|
83
|
-
<strong>Job Keyword Arguments</strong>
|
|
84
|
-
</div>
|
|
85
|
-
<div class="panel-body">
|
|
86
|
-
{% include 'extras/inc/json_data.html' with data=result.task_kwargs format="json" %}
|
|
87
|
-
</div>
|
|
88
|
-
</div>
|
|
89
|
-
<div class="panel panel-default">
|
|
90
|
-
<div class="panel-heading">
|
|
91
|
-
<strong>Job Positional Arguments</strong>
|
|
92
|
-
</div>
|
|
93
|
-
<div class="panel-body">
|
|
94
|
-
{% include 'extras/inc/json_data.html' with data=result.task_args format="json" %}
|
|
95
|
-
</div>
|
|
96
|
-
</div>
|
|
97
|
-
<div class="panel panel-default">
|
|
98
|
-
<div class="panel-heading">
|
|
99
|
-
<strong>Job Celery Keyword Arguments</strong>
|
|
100
|
-
</div>
|
|
101
|
-
<div class="panel-body">
|
|
102
|
-
{% include 'extras/inc/json_data.html' with data=result.celery_kwargs format="json" %}
|
|
103
|
-
</div>
|
|
104
|
-
</div>
|
|
105
|
-
{% endblock advanced_content_left_page %}
|
|
106
|
-
{% block advanced_content_right_page %}
|
|
107
|
-
<div class="panel panel-default">
|
|
108
|
-
<div class="panel-heading">
|
|
109
|
-
<strong>Worker</strong>
|
|
110
|
-
</div>
|
|
111
|
-
<table class="table table-hover panel-body attr-table">
|
|
112
|
-
<tbody>
|
|
113
|
-
<tr>
|
|
114
|
-
<td>Worker Hostname</td>
|
|
115
|
-
<td>{{ result.worker }}</td>
|
|
116
|
-
</tr>
|
|
117
|
-
<tr>
|
|
118
|
-
<td>Queue Name</td>
|
|
119
|
-
<td>{{ result.celery_kwargs.queue}}</td>
|
|
120
|
-
</tr>
|
|
121
|
-
<tr>
|
|
122
|
-
<td>Task Name</td>
|
|
123
|
-
<td>{{ result.task_name }}</td>
|
|
124
|
-
</tr>
|
|
125
|
-
<tr>
|
|
126
|
-
<td>Meta</td>
|
|
127
|
-
<td>{% include 'extras/inc/json_data.html' with data=result.meta format="json" %}</td>
|
|
128
|
-
</tr>
|
|
129
|
-
</tbody>
|
|
130
|
-
</table>
|
|
131
|
-
</div>
|
|
132
|
-
<div class="panel panel-default">
|
|
133
|
-
<div class="panel-heading">
|
|
134
|
-
<strong>Traceback</strong>
|
|
135
|
-
</div>
|
|
136
|
-
<div class="panel-body">
|
|
137
|
-
{% include 'extras/inc/json_data.html' with data=result.traceback format="python" %}
|
|
138
|
-
</div>
|
|
139
|
-
</div>
|
|
140
|
-
{% endblock advanced_content_right_page %}
|
|
141
|
-
{% block extra_tab_content %}
|
|
142
|
-
{% if result.data.output %}
|
|
143
|
-
<div role="tabpanel" class="tab-pane" id="output">
|
|
144
|
-
<pre>{{ result.data.output }}</pre>
|
|
145
|
-
</div>
|
|
146
|
-
{% endif %}
|
|
147
|
-
{% endblock extra_tab_content %}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
{% block javascript %}
|
|
151
|
-
{{ block.super }}
|
|
152
|
-
{% include 'extras/inc/jobresult_js.html' with result=result %}
|
|
153
|
-
<script src="{% versioned_static 'js/tableconfig.js' %}"></script>
|
|
154
|
-
<script src="{% versioned_static 'js/log_level_filtering.js' %}"></script>
|
|
155
|
-
{% endblock %}
|
|
1
|
+
{% extends 'extras/jobresult_retrieve.html' %}
|
|
2
|
+
{% comment %}3.0 TODO: remove this template, which only exists for backward compatibility with 2.4 and earlier{% endcomment %}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
{% extends 'generic/object_retrieve.html' %}
|
|
2
|
+
{% load helpers %}
|
|
3
|
+
{% load custom_links %}
|
|
4
|
+
{% load form_helpers %}
|
|
5
|
+
{% load log_levels %}
|
|
6
|
+
{% load plugins %}
|
|
7
|
+
{% load static %}
|
|
8
|
+
{% load buttons %}
|
|
9
|
+
|
|
10
|
+
{% block breadcrumbs %}
|
|
11
|
+
<li><a href="{% url 'extras:jobresult_list' %}">Job Results</a></li>
|
|
12
|
+
{% if result.job_model is not None %}
|
|
13
|
+
<li>{{ result.job_model.grouping }}</li>
|
|
14
|
+
<li><a href="{% url 'extras:jobresult_list' %}?job_model={{ result.job_model.name }}">
|
|
15
|
+
{{ result.job_model }}
|
|
16
|
+
</a></li>
|
|
17
|
+
{% elif associated_record %}
|
|
18
|
+
{% if associated_record.name %}
|
|
19
|
+
<li><a href="{% url 'extras:jobresult_list' %}?name={{ associated_record.name|urlencode }}">
|
|
20
|
+
{{ associated_record.name }}
|
|
21
|
+
</a></li>
|
|
22
|
+
{% else %}
|
|
23
|
+
<li>{{ associated_record }}</li>
|
|
24
|
+
{% endif %}
|
|
25
|
+
{% elif job %}
|
|
26
|
+
<li><a href="{% url 'extras:jobresult_list' %}?name={{ job.class_path|urlencode }}">
|
|
27
|
+
{{ job.class_path }}
|
|
28
|
+
</a></li>
|
|
29
|
+
{% else %}
|
|
30
|
+
<li>{{ result.name }}</li>
|
|
31
|
+
{% endif %}
|
|
32
|
+
<li>{{ result.created }}</li>
|
|
33
|
+
{% endblock breadcrumbs %}
|
|
34
|
+
|
|
35
|
+
{% block buttons %}
|
|
36
|
+
{% if perms.extras.run_job %}
|
|
37
|
+
{% if result.job_model and result.task_kwargs %}
|
|
38
|
+
<a href="{% url 'extras:job_run' pk=result.job_model.pk %}?kwargs_from_job_result={{ result.pk }}"
|
|
39
|
+
class="btn btn-success">
|
|
40
|
+
<span class="mdi mdi-repeat" aria-hidden="true"></span> Re-Run
|
|
41
|
+
</a>
|
|
42
|
+
{% elif result.job_model is not None %}
|
|
43
|
+
<a href="{% url 'extras:job_run' pk=result.job_model.pk %}"
|
|
44
|
+
class="btn btn-primary">
|
|
45
|
+
<span class="mdi mdi-play" aria-hidden="true"></span> Run
|
|
46
|
+
</a>
|
|
47
|
+
{% endif %}
|
|
48
|
+
{% endif %}
|
|
49
|
+
<a href="{% url 'extras-api:joblogentry-list' %}?job_result={{ result.pk }}&format=csv" class="btn btn-success">
|
|
50
|
+
<span class="mdi mdi-database-export" aria-hidden="true"></span> Export
|
|
51
|
+
</a>
|
|
52
|
+
{{ block.super }}
|
|
53
|
+
{% endblock buttons %}
|
|
54
|
+
|
|
55
|
+
{% block title %}
|
|
56
|
+
Job Result:
|
|
57
|
+
{% if result.job_model is not None %}
|
|
58
|
+
{{ result.job_model }}
|
|
59
|
+
{% elif associated_record %}
|
|
60
|
+
{{ associated_record }}
|
|
61
|
+
{% elif job %}
|
|
62
|
+
{{ job }}
|
|
63
|
+
{% else %}
|
|
64
|
+
{{ result.name }}
|
|
65
|
+
{% endif %}
|
|
66
|
+
{% endblock %}
|
|
67
|
+
|
|
68
|
+
{% block extra_nav_tabs %}
|
|
69
|
+
{% if result.data.output %}
|
|
70
|
+
<li role="presentation">
|
|
71
|
+
<a href="#output" role="tab" data-toggle="tab">Output</a>
|
|
72
|
+
</li>
|
|
73
|
+
{% endif %}
|
|
74
|
+
{% endblock %}
|
|
75
|
+
|
|
76
|
+
{% block content_full_width_page %}
|
|
77
|
+
{% include 'extras/inc/jobresult.html' with result=result log_table=log_table %}
|
|
78
|
+
{% endblock content_full_width_page %}
|
|
79
|
+
|
|
80
|
+
{% block advanced_content_left_page %}
|
|
81
|
+
<div class="panel panel-default">
|
|
82
|
+
<div class="panel-heading">
|
|
83
|
+
<strong>Job Keyword Arguments</strong>
|
|
84
|
+
</div>
|
|
85
|
+
<div class="panel-body">
|
|
86
|
+
{% include 'extras/inc/json_data.html' with data=result.task_kwargs format="json" %}
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
<div class="panel panel-default">
|
|
90
|
+
<div class="panel-heading">
|
|
91
|
+
<strong>Job Positional Arguments</strong>
|
|
92
|
+
</div>
|
|
93
|
+
<div class="panel-body">
|
|
94
|
+
{% include 'extras/inc/json_data.html' with data=result.task_args format="json" %}
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
<div class="panel panel-default">
|
|
98
|
+
<div class="panel-heading">
|
|
99
|
+
<strong>Job Celery Keyword Arguments</strong>
|
|
100
|
+
</div>
|
|
101
|
+
<div class="panel-body">
|
|
102
|
+
{% include 'extras/inc/json_data.html' with data=result.celery_kwargs format="json" %}
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
{% endblock advanced_content_left_page %}
|
|
106
|
+
{% block advanced_content_right_page %}
|
|
107
|
+
<div class="panel panel-default">
|
|
108
|
+
<div class="panel-heading">
|
|
109
|
+
<strong>Worker</strong>
|
|
110
|
+
</div>
|
|
111
|
+
<table class="table table-hover panel-body attr-table">
|
|
112
|
+
<tbody>
|
|
113
|
+
<tr>
|
|
114
|
+
<td>Worker Hostname</td>
|
|
115
|
+
<td>{{ result.worker }}</td>
|
|
116
|
+
</tr>
|
|
117
|
+
<tr>
|
|
118
|
+
<td>Queue Name</td>
|
|
119
|
+
<td>{{ result.celery_kwargs.queue}}</td>
|
|
120
|
+
</tr>
|
|
121
|
+
<tr>
|
|
122
|
+
<td>Task Name</td>
|
|
123
|
+
<td>{{ result.task_name }}</td>
|
|
124
|
+
</tr>
|
|
125
|
+
<tr>
|
|
126
|
+
<td>Meta</td>
|
|
127
|
+
<td>{% include 'extras/inc/json_data.html' with data=result.meta format="json" %}</td>
|
|
128
|
+
</tr>
|
|
129
|
+
</tbody>
|
|
130
|
+
</table>
|
|
131
|
+
</div>
|
|
132
|
+
<div class="panel panel-default">
|
|
133
|
+
<div class="panel-heading">
|
|
134
|
+
<strong>Traceback</strong>
|
|
135
|
+
</div>
|
|
136
|
+
<div class="panel-body">
|
|
137
|
+
{% include 'extras/inc/json_data.html' with data=result.traceback format="python" %}
|
|
138
|
+
</div>
|
|
139
|
+
</div>
|
|
140
|
+
{% endblock advanced_content_right_page %}
|
|
141
|
+
{% block extra_tab_content %}
|
|
142
|
+
{% if result.data.output %}
|
|
143
|
+
<div role="tabpanel" class="tab-pane" id="output">
|
|
144
|
+
<pre>{{ result.data.output }}</pre>
|
|
145
|
+
</div>
|
|
146
|
+
{% endif %}
|
|
147
|
+
{% endblock extra_tab_content %}
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
{% block javascript %}
|
|
151
|
+
{{ block.super }}
|
|
152
|
+
{% include 'extras/inc/jobresult_js.html' with result=result %}
|
|
153
|
+
<script src="{% versioned_static 'js/tableconfig.js' %}"></script>
|
|
154
|
+
<script src="{% versioned_static 'js/log_level_filtering.js' %}"></script>
|
|
155
|
+
{% endblock %}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{% extends "base.html" %}
|
|
2
2
|
{% load helpers %}
|
|
3
3
|
{% load static %}
|
|
4
|
+
{% load ui_framework %}
|
|
4
5
|
|
|
5
6
|
{% block extra_styles %}
|
|
6
7
|
<style>
|
|
@@ -56,14 +57,12 @@
|
|
|
56
57
|
</style>
|
|
57
58
|
{% endblock %}
|
|
58
59
|
|
|
60
|
+
{% block document_title %}{% render_title "plain" %}{% endblock %}
|
|
61
|
+
|
|
59
62
|
{% block content %}
|
|
60
63
|
<div class="row noprint">
|
|
61
64
|
<div class="col-md-12">
|
|
62
|
-
|
|
63
|
-
{% block breadcrumbs %}
|
|
64
|
-
<li><a href="{% url 'apps:apps_marketplace' %}">Apps Marketplace</a></li>
|
|
65
|
-
{% endblock breadcrumbs %}
|
|
66
|
-
</ol>
|
|
65
|
+
{% render_breadcrumbs %}
|
|
67
66
|
</div>
|
|
68
67
|
</div>
|
|
69
68
|
|
|
@@ -71,7 +70,7 @@
|
|
|
71
70
|
<a class="btn btn-primary" href="{% url 'apps:apps_list' %}">See Installed Apps</a>
|
|
72
71
|
</div>
|
|
73
72
|
|
|
74
|
-
<h1>{% block
|
|
73
|
+
<h1>{% block page_heading %}{% render_title %}{% block page_heading %}</h1>
|
|
75
74
|
|
|
76
75
|
<div class="row">
|
|
77
76
|
<div class="col-md-12">
|
|
@@ -1,53 +1,2 @@
|
|
|
1
|
-
{% extends '
|
|
2
|
-
{%
|
|
3
|
-
{% load plugins %}
|
|
4
|
-
{% load perms %}
|
|
5
|
-
{% load helpers %}
|
|
6
|
-
|
|
7
|
-
{% block breadcrumbs %}
|
|
8
|
-
<li><a href="{% url 'extras:note_list' %}">Notes</a></li>
|
|
9
|
-
{% if object.assigned_object.get_absolute_url %}
|
|
10
|
-
<li><a href="{{ object.assigned_object.get_absolute_url }}notes/">{{ object.assigned_object }}</a></li>
|
|
11
|
-
{% endif %}
|
|
12
|
-
<li>{{ object }}</li>
|
|
13
|
-
{% endblock breadcrumbs %}
|
|
14
|
-
|
|
15
|
-
{% block content %}
|
|
16
|
-
<div class="row">
|
|
17
|
-
<div class="col-md-5">
|
|
18
|
-
<div class="panel panel-default">
|
|
19
|
-
<div class="panel-heading">
|
|
20
|
-
<strong>Note</strong>
|
|
21
|
-
</div>
|
|
22
|
-
<table class="table table-hover panel-body attr-table">
|
|
23
|
-
<tr>
|
|
24
|
-
<td>User</td>
|
|
25
|
-
<td>
|
|
26
|
-
{{ object.user|default:object.user_name }}
|
|
27
|
-
</td>
|
|
28
|
-
</tr>
|
|
29
|
-
<tr>
|
|
30
|
-
<td>Object Type</td>
|
|
31
|
-
<td>
|
|
32
|
-
{{ object.assigned_object_type }}
|
|
33
|
-
</td>
|
|
34
|
-
</tr>
|
|
35
|
-
<tr>
|
|
36
|
-
<td>Object</td>
|
|
37
|
-
<td>
|
|
38
|
-
{{ object.assigned_object | hyperlinked_object }}
|
|
39
|
-
</td>
|
|
40
|
-
</tr>
|
|
41
|
-
</table>
|
|
42
|
-
</div>
|
|
43
|
-
<div class="panel panel-default">
|
|
44
|
-
<div class="panel-heading">
|
|
45
|
-
<strong>Text</strong>
|
|
46
|
-
</div>
|
|
47
|
-
<div class="panel-body rendered-markdown">
|
|
48
|
-
{{ object.note|render_markdown }}
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
{% endblock %}
|
|
1
|
+
{% extends 'extras/note_retrieve.html' %}
|
|
2
|
+
{% comment %}3.0 TODO: remove this template, which only exists for backward compatibility with 2.4 and earlier{% endcomment %}
|