From 9bc54a89b85263ae38618e8e32ff58e9b14f1be3 Mon Sep 17 00:00:00 2001 From: hellerve Date: Wed, 29 May 2019 16:14:58 +0200 Subject: [PATCH] css: make form buttons float on the side (references: #2237) --- netbox/project-static/css/base.css | 11 +++++++++++ netbox/templates/utilities/obj_edit.html | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/netbox/project-static/css/base.css b/netbox/project-static/css/base.css index e87811bc1..38be3a0fe 100644 --- a/netbox/project-static/css/base.css +++ b/netbox/project-static/css/base.css @@ -590,3 +590,14 @@ td .progress { textarea { font-family: Consolas, Lucida Console, monospace; } + +/* display form buttons always */ +@media (min-width: 992px) { + #form-buttons { + position: fixed; + bottom: 5em; + } + #form-buttons button { + margin-bottom: 5px; + } +} diff --git a/netbox/templates/utilities/obj_edit.html b/netbox/templates/utilities/obj_edit.html index 16acc32ed..c416b286e 100644 --- a/netbox/templates/utilities/obj_edit.html +++ b/netbox/templates/utilities/obj_edit.html @@ -30,7 +30,7 @@
-
+
{% block buttons %} {% if obj.pk %}