Skip to content

Commit

Permalink
fixing links
Browse files Browse the repository at this point in the history
  • Loading branch information
whitej6 committed Nov 8, 2023
1 parent 0ca63f4 commit 38ce723
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{% raw %}
{% extends 'generic/object_retrieve.html' %}
{% load helpers %}

{% block content_left_page %}
<div class="panel panel-default">
<div class="panel-heading">
<strong>{% endraw %}{{ cookiecutter.model_class_name }}{% raw %}</strong>
</div>
<table class="table table-hover panel-body attr-table">
<tr>
<td>Name</td>
<td>
<a href="{{ object.get_absolute_url }}">{{ object.name }}</a>
</td>
</tr>
<tr>
<td>Description</td>
<td>
{{ object.description|placeholder }}
</td>
</tr>
</table>
</div>
{% endblock %}
{% endraw %}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"""Views for FloorPlan."""
from nautobot.apps.viewsets import NautobotUIViewSet

from {{ cookiecutter.plugin_name }} import filters, forms, models, tables
from {{ cookiecutter.plugin_name }}.api import serializers


class {{ cookiecutter.model_class_name}}UIViewSet(NautobotUIViewSet):
"""ViewSet for {{ cookiecutter.model_class_name}} views."""

bulk_update_form_class = forms.{{ cookiecutter.model_class_name}}BulkEditForm
filterset_class = filters.{{ cookiecutter.model_class_name}}FilterSet
filterset_form_class = forms.{{ cookiecutter.model_class_name}}FilterForm
form_class = forms.{{ cookiecutter.model_class_name}}Form
lookup_field = "pk"
queryset = models.{{ cookiecutter.model_class_name}}.objects.all()
serializer_class = serializers.{{ cookiecutter.model_class_name}}Serializer
table_class = tables.{{ cookiecutter.model_class_name}}Table

0 comments on commit 38ce723

Please sign in to comment.