css: make form buttons float on the side (references: #2237)

This commit is contained in:
hellerve 2019-05-29 16:14:58 +02:00
parent 473dafc2c8
commit 9bc54a89b8
2 changed files with 12 additions and 1 deletions

View File

@ -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;
}
}

View File

@ -30,7 +30,7 @@
</div>
</div>
<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 %}
{% if obj.pk %}
<button type="submit" name="_update" class="btn btn-primary">Update</button>