diff --git a/netbox/templates/generic/bulk_add_component.html b/netbox/templates/generic/bulk_add_component.html index bbb7fdb75..10a1c9861 100644 --- a/netbox/templates/generic/bulk_add_component.html +++ b/netbox/templates/generic/bulk_add_component.html @@ -4,6 +4,20 @@ {% load render_table from django_tables2 %} {% load i18n %} +{% comment %} +Blocks: + - title: Page title + - tabs: Page tabs + - content: Primary page content + +Context: + - form: The object creation form + - parent_model_name: The name of the model to which the new component belongs + - model_name: The name of the component model + - table: The table of newly-created component objects + - return_url: The URL to which the user is redirected after submitting the form +{% endcomment %} + {% block title %} {% trans "Add" %} {{ model_name|title }} {% endblock %} diff --git a/netbox/templates/generic/bulk_delete.html b/netbox/templates/generic/bulk_delete.html index f7a692897..4e3eecd8e 100644 --- a/netbox/templates/generic/bulk_delete.html +++ b/netbox/templates/generic/bulk_delete.html @@ -5,13 +5,15 @@ {% comment %} Blocks: - message_extra: Supplementary warning message content + - title: Page title + - tabs: Page tabs + - content: Primary page content Context: - model: The model class of the objects being deleted - form: The bulk delete form class - table: The table class for rendering list of objects being deleted - return_url: The URL to which the user is redirected after submitting the form + - model: The model class of the objects being deleted + - form: The bulk delete form class + - table: The table class for rendering list of objects being deleted + - return_url: The URL to which the user is redirected after submitting the form {% endcomment %} {% block title %} diff --git a/netbox/templates/generic/bulk_edit.html b/netbox/templates/generic/bulk_edit.html index 90b68b25b..7dff03a7b 100644 --- a/netbox/templates/generic/bulk_edit.html +++ b/netbox/templates/generic/bulk_edit.html @@ -5,11 +5,16 @@ {% load i18n %} {% comment %} +Blocks: + - title: Page title + - tabs: Page tabs + - content: Primary page content + Context: - model: The model class of the objects being modified - form: The bulk edit form class - table: The table class for rendering list of objects being modified - return_url: The URL to which the user is redirected after submitting the form + - model: The model class of the objects being modified + - form: The bulk edit form class + - table: The table class for rendering list of objects being modified + - return_url: The URL to which the user is redirected after submitting the form {% endcomment %} {% block title %} diff --git a/netbox/templates/generic/bulk_import.html b/netbox/templates/generic/bulk_import.html index d4e61e675..240f0c607 100644 --- a/netbox/templates/generic/bulk_import.html +++ b/netbox/templates/generic/bulk_import.html @@ -4,11 +4,16 @@ {% load i18n %} {% comment %} +Blocks: + - title: Page title + - tabs: Page tabs + - content: Primary page content + Context: - model: The model class being imported - form: The bulk import form - fields: A dictionary of form fields, to display import options (optional) - return_url: The URL to which the user is redirected after submitting the form + - model: The model class being imported + - form: The bulk import form + - fields: A dictionary of form fields, to display import options (optional) + - return_url: The URL to which the user is redirected after submitting the form {% endcomment %} {% block title %}{{ model|meta:"verbose_name"|bettertitle }} {% trans "Bulk Import" %}{% endblock %} diff --git a/netbox/templates/generic/bulk_remove.html b/netbox/templates/generic/bulk_remove.html index 97172a77f..d0ba23097 100644 --- a/netbox/templates/generic/bulk_remove.html +++ b/netbox/templates/generic/bulk_remove.html @@ -3,6 +3,20 @@ {% load render_table from django_tables2 %} {% load i18n %} +{% comment %} +Blocks: + - title: Page title + - tabs: Page tabs + - content: Primary page content + +Context: + - form: The bulk edit form class + - parent_obj: The parent object + - table: A table of objects being removed + - obj_type_plural: The plural form of the object type + - return_url: The URL to which the user is redirected after submitting the form +{% endcomment %} + {% block title %} {% trans "Remove" %} {{ table.rows|length }} {{ obj_type_plural|bettertitle }}? {% endblock %} diff --git a/netbox/templates/generic/bulk_rename.html b/netbox/templates/generic/bulk_rename.html index e98075401..eaf08cb54 100644 --- a/netbox/templates/generic/bulk_rename.html +++ b/netbox/templates/generic/bulk_rename.html @@ -3,6 +3,19 @@ {% load form_helpers %} {% load i18n %} +{% comment %} +Blocks: + - title: Page title + - tabs: Page tabs + - content: Primary page content + +Context: + - form: The bulk edit form class + - obj_type_plural: The plural form of the object type + - selected_objects: A queryset matching the objects selected for bulk renaming + - return_url: The URL to which the user is redirected after submitting the form +{% endcomment %} + {% block title %} {% trans "Renaming" %} {{ selected_objects|length }} {{ obj_type_plural|bettertitle }} {% endblock %} diff --git a/netbox/templates/generic/object.html b/netbox/templates/generic/object.html index 112368870..bf0e1ae9a 100644 --- a/netbox/templates/generic/object.html +++ b/netbox/templates/generic/object.html @@ -9,13 +9,20 @@ {% comment %} Blocks: - breadcrumbs: Breadcrumb list items (HTML