Improved mobile view of the admin pages.

This commit is contained in:
Jan Böhmer 2020-01-04 22:20:17 +01:00
parent 1b2d65b9e0
commit da88c23268
3 changed files with 7 additions and 7 deletions

View file

@ -2,7 +2,7 @@
{% block card_content %}
<div class="row">
<div class="col-4">
<div class="col-sm-4">
<div class="row">
<div class="col-8">
@ -27,7 +27,7 @@
</div>
<div class="col-8">
<div class="col-sm-8">
<fieldset>
<legend>

View file

@ -5,7 +5,7 @@
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ entity.id) }}">
<div class="form-group">
<div class=""></div>
<div class="col offset-3 pl-2">
<div class="col-sm offset-sm-3 pl-2">
{% set delete_disabled = (not is_granted("delete", entity)) or (entity.group is defined and entity.id == 1) %}
<button class="btn btn-danger" {% if delete_disabled %}disabled{% endif %}>{% trans %}entity.delete{% endtrans %}</button>
{% if entity.parent is defined %}

View file

@ -2,7 +2,7 @@
<div class="form-row">
<label class="col-form-label col-md-3">{% trans %}export.format{% endtrans %}</label>
<div class="col">
<div class="col-sm">
<select class="form-control" name="format">
<option value="json">JSON</option>
<option value="xml">XML</option>
@ -14,7 +14,7 @@
<div class="form-row mt-2">
<label class="col-form-label col-md-3">{% trans %}export.level{% endtrans %}</label>
<div class="col">
<div class="col-sm">
<select class="form-control" name="level">
<option value="simple">{% trans %}export.level.simple{% endtrans %}</option>
<option value="extended" selected>{% trans %}export.level.extended{% endtrans %}</option>
@ -24,7 +24,7 @@
</div>
<div class="form-row mt-2">
<div class="offset-3 col">
<div class="offset-sm-3 col-sm">
<div class="custom-control custom-checkbox">
<input class="form-check-input custom-control-input" name="include_children" id="include_children" type="checkbox" checked>
<label class="form-check-label custom-control-label" for="include_children">
@ -35,7 +35,7 @@
</div>
<div class="form-row mt-2">
<div class="offset-3 col">
<div class="offset-sm-3 col-sm">
<button type="submit" class="btn btn-primary">{% trans %}export.btn{% endtrans %}</button>
</div>
</div>