diff --git a/netbox_secretstore/forms/secrets.py b/netbox_secretstore/forms/secrets.py index e473db5..66416c0 100644 --- a/netbox_secretstore/forms/secrets.py +++ b/netbox_secretstore/forms/secrets.py @@ -45,7 +45,7 @@ def validate_rsa_key(key, is_secret=True): # Secret roles # -class SecretRoleForm(BootstrapMixin, CustomFieldModelForm): +class SecretRoleForm(CustomFieldModelForm): slug = SlugField() class Meta: @@ -61,7 +61,7 @@ class Meta: fields = SecretRole.csv_headers -class SecretRoleBulkEditForm(BootstrapMixin, CustomFieldModelBulkEditForm): +class SecretRoleBulkEditForm(CustomFieldModelBulkEditForm): pk = forms.ModelMultipleChoiceField( queryset=SecretRole.objects.all(), widget=forms.MultipleHiddenInput @@ -79,7 +79,7 @@ class Meta: # Secrets # -class SecretForm(BootstrapMixin, CustomFieldModelForm): +class SecretForm(CustomFieldModelForm): device = DynamicModelChoiceField( queryset=Device.objects.all(), required=False @@ -212,7 +212,7 @@ def save(self, *args, **kwargs): return s -class SecretBulkEditForm(BootstrapMixin, AddRemoveTagsForm, CustomFieldModelBulkEditForm): +class SecretBulkEditForm(AddRemoveTagsForm, CustomFieldModelBulkEditForm): pk = forms.ModelMultipleChoiceField( queryset=Secret.objects.all(), widget=forms.MultipleHiddenInput() @@ -232,7 +232,7 @@ class Meta: ] -class SecretFilterForm(BootstrapMixin, CustomFieldModelFilterForm): +class SecretFilterForm(CustomFieldModelFilterForm): model = Secret q = forms.CharField( required=False, @@ -250,7 +250,7 @@ class SecretFilterForm(BootstrapMixin, CustomFieldModelFilterForm): # UserKeys # -class UserKeyForm(BootstrapMixin, forms.ModelForm): +class UserKeyForm(forms.ModelForm): class Meta: model = UserKey diff --git a/netbox_secretstore/templates/netbox_secretstore/generic/object.html b/netbox_secretstore/templates/netbox_secretstore/generic/object.html deleted file mode 100644 index 8ea7b94..0000000 --- a/netbox_secretstore/templates/netbox_secretstore/generic/object.html +++ /dev/null @@ -1,82 +0,0 @@ -{% extends 'base/layout.html' %} -{% load buttons %} -{% load custom_links %} -{% load helpers %} -{% load perms %} -{% load plugins %} -{% load plugin_buttons %} -{% load static %} - -{% block header %} - {# Breadcrumbs #} - - {{ block.super }} -{% endblock %} - -{% block title %}{{ object }}{% endblock %} - -{% block controls %} - {# Clone/Edit/Delete Buttons #} -
- - Created {{ object.created|annotated_date }} · - Updated {{ object.last_updated|timesince }} ago - - {{ object|meta:"app_label" }}.{{ object|meta:"model_name" }}:{{ object.pk }} -
-{% endblock content %} -{% block components %}{% endblock %} diff --git a/netbox_secretstore/templates/netbox_secretstore/generic/object_list.html b/netbox_secretstore/templates/netbox_secretstore/generic/object_list.html deleted file mode 100644 index cec99f0..0000000 --- a/netbox_secretstore/templates/netbox_secretstore/generic/object_list.html +++ /dev/null @@ -1,98 +0,0 @@ -{% extends 'base/layout.html' %} -{% load buttons %} -{% load helpers %} -{% load render_table from django_tables2 %} -{% load plugin_helpers %} -{% load static %} - -{% block controls %} -Name | -{{ object.name }} | -
---|---|
Description | -{{ object.description|placeholder }} | -
Secrets | -- {{ secrets_table.rows|length }} - | -
Name | +{{ object.name }} | +
---|---|
Description | +{{ object.description|placeholder }} | +
Secrets | ++ {{ secrets_table.rows|length }} + | +