mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 09:16:10 -06:00
12591 edit button
This commit is contained in:
parent
f93702f0a1
commit
69b7fb723d
@ -117,6 +117,7 @@ urlpatterns = [
|
||||
path('render/markdown/', views.RenderMarkdownView.as_view(), name="render_markdown"),
|
||||
|
||||
# Config Revision
|
||||
path('config-revision/', views.ConfigRevisionView.as_view(), name='config_revision'),
|
||||
path('config-revision/add/', views.ConfigRevisionEditView.as_view(), name='config_revision_add'),
|
||||
path('config-revision/', views.ConfigRevisionView.as_view(), name='configrevision'),
|
||||
path('config-revision/add/', views.ConfigRevisionEditView.as_view(), name='configrevision_add'),
|
||||
path('config-revision/<int:pk>/edit/', views.ConfigRevisionEditView.as_view(), name='configrevision_edit'),
|
||||
]
|
||||
|
@ -352,7 +352,7 @@ ADMIN_MENU = Menu(
|
||||
label=_('Configuration'),
|
||||
items=(
|
||||
MenuItem(
|
||||
link='extras:config_revision',
|
||||
link='extras:configrevision',
|
||||
link_text=_('Config Revision'),
|
||||
permissions=['extras.config_revision']
|
||||
),
|
||||
|
@ -1,10 +1,35 @@
|
||||
{% extends 'generic/object.html' %}
|
||||
{% load buttons %}
|
||||
{% load custom_links %}
|
||||
{% load helpers %}
|
||||
{% load perms %}
|
||||
{% load plugins %}
|
||||
{% load static %}
|
||||
|
||||
{% block header %}
|
||||
{% block breadcrumbs %}
|
||||
{% endblock %}
|
||||
|
||||
{% block controls %}
|
||||
{# Clone/Edit/Delete Buttons #}
|
||||
<div class="controls">
|
||||
<div class="control-group">
|
||||
{% plugin_buttons object %}
|
||||
|
||||
{# Extra buttons #}
|
||||
{% block extra_controls %}{% endblock %}
|
||||
|
||||
{% if request.user|can_change:object %}
|
||||
{% edit_button object %}
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
<div class="control-group">
|
||||
{% custom_links object %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock controls %}
|
||||
|
||||
|
||||
{% block tabs %}
|
||||
{% endblock %}
|
||||
|
||||
|
@ -38,7 +38,7 @@ Context:
|
||||
</div>
|
||||
</div>
|
||||
{{ block.super }}
|
||||
{% endblock %}
|
||||
{% endblock header %}
|
||||
|
||||
{% block title %}{{ object }}{% endblock %}
|
||||
|
||||
@ -48,7 +48,7 @@ Context:
|
||||
<span class="separator">·</span>
|
||||
<span>Updated <span title="{{ object.last_updated }}">{{ object.last_updated|timesince }}</span> ago</span>
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% endblock subtitle %}
|
||||
|
||||
{% block controls %}
|
||||
{# Clone/Edit/Delete Buttons #}
|
||||
|
Loading…
Reference in New Issue
Block a user