add button to restore table column defaults and ux improvements
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="d-flex flex-column align-items-end mt-n2">
|
||||
<div class="rounded-top bg-white small py-1 px-2 me-3 opacity-75" data-bs-toggle="modal" data-bs-target="#manageColumnsModal">
|
||||
<i class="fa fa-cog"></i>
|
||||
<div class="rounded-top bg-white small py-1 px-2 me-3 opacity-75">
|
||||
<span type="button" data-bs-toggle="modal" data-bs-target="#manageColumnsModal"><i class="fa fa-cog"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card table-responsive">
|
||||
@@ -74,7 +74,7 @@
|
||||
<p>{{ lng('panel.managetablecolumnsmodal.description') }}</p>
|
||||
{% for key, column in listing.available_columns %}
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" value="" id="checkColumn{{ key }}" name="columns[{{ key }}]" {{ column.checked ? 'checked' : '' }}>
|
||||
<input class="form-check-input" type="checkbox" value="{{ key }}" id="checkColumn{{ key }}" name="columns[{{ key }}]" {{ column.checked ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="checkColumn{{ key }}">
|
||||
{{ column.label }}
|
||||
</label>
|
||||
@@ -82,6 +82,7 @@
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" id="reset">{{ lng('panel.default') }}</button>
|
||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">{{ lng('panel.modalclose') }}</button>
|
||||
<button type="submit" class="btn btn-primary">{{ lng('panel.save') }}</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user