mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-17 04:58:16 -06:00
css: make form buttons float on the side (references: #2237)
This commit is contained in:
parent
473dafc2c8
commit
9bc54a89b8
@ -590,3 +590,14 @@ td .progress {
|
|||||||
textarea {
|
textarea {
|
||||||
font-family: Consolas, Lucida Console, monospace;
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6 col-md-offset-3 text-right">
|
<div class="col-md-3 col-md-offset-9" id="form-buttons">
|
||||||
{% block buttons %}
|
{% block buttons %}
|
||||||
{% if obj.pk %}
|
{% if obj.pk %}
|
||||||
<button type="submit" name="_update" class="btn btn-primary">Update</button>
|
<button type="submit" name="_update" class="btn btn-primary">Update</button>
|
||||||
|
Loading…
Reference in New Issue
Block a user