mirror of
https://github.com/itflow-org/itflow
synced 2026-09-04 22:05:12 +00:00
Initial migration from AdminLTE 3 to 4, bootstrap 4 to 5
This commit is contained in:
@@ -418,11 +418,11 @@ function renderExportColumnPicker($export_type) {
|
||||
|
||||
?>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="mb-3">
|
||||
<label class="d-flex justify-content-between align-items-center">
|
||||
<span>Columns</span>
|
||||
<span>
|
||||
<button type="button" class="btn btn-link btn-sm p-0 mr-2 export-columns-all">Select all</button>
|
||||
<button type="button" class="btn btn-link btn-sm p-0 me-2 export-columns-all">Select all</button>
|
||||
<button type="button" class="btn btn-link btn-sm p-0 export-columns-none">None</button>
|
||||
</span>
|
||||
</label>
|
||||
@@ -430,7 +430,7 @@ function renderExportColumnPicker($export_type) {
|
||||
<div class="row">
|
||||
<?php foreach ($available as $column_key => $column) { ?>
|
||||
<div class="col-md-6">
|
||||
<label class="d-block mb-1 font-weight-normal text-truncate" title="<?= escapeHtml($column['label']) ?>">
|
||||
<label class="d-block mb-1 fw-normal text-truncate" title="<?= escapeHtml($column['label']) ?>">
|
||||
<input type="checkbox" name="columns[]" value="<?= $column_key ?>" <?php if ($column['default'] ?? true) { echo 'checked'; } ?>>
|
||||
<?= escapeHtml($column['label']) ?>
|
||||
</label>
|
||||
@@ -591,10 +591,10 @@ function exportTabsNav($filters_label = 'Filters') {
|
||||
?>
|
||||
<ul class="modal-header nav nav-pills nav-justified">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" data-toggle="pill" href="#<?= $id ?>-filters"><?= escapeHtml($filters_label) ?></a>
|
||||
<a class="nav-link active" data-bs-toggle="pill" href="#<?= $id ?>-filters"><?= escapeHtml($filters_label) ?></a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" data-toggle="pill" href="#<?= $id ?>-columns">Columns</a>
|
||||
<a class="nav-link" data-bs-toggle="pill" href="#<?= $id ?>-columns">Columns</a>
|
||||
</li>
|
||||
</ul>
|
||||
<?php
|
||||
@@ -625,9 +625,9 @@ function exportTabsColumns($export_type) {
|
||||
*/
|
||||
function renderExportButtons($trigger) {
|
||||
?>
|
||||
<button type="submit" name="<?= $trigger ?>" value="csv" class="btn btn-primary text-bold"><i class="fas fa-fw fa-file-csv mr-2"></i>Download CSV</button>
|
||||
<button type="submit" name="<?= $trigger ?>" value="pdf" class="btn btn-secondary text-bold"><i class="fas fa-fw fa-file-pdf mr-2"></i>Download PDF</button>
|
||||
<button type="button" class="btn btn-light" data-dismiss="modal"><i class="fas fa-times mr-2"></i>Cancel</button>
|
||||
<button type="submit" name="<?= $trigger ?>" value="csv" class="btn btn-primary text-bold"><i class="fas fa-fw fa-file-csv me-2"></i>Download CSV</button>
|
||||
<button type="submit" name="<?= $trigger ?>" value="pdf" class="btn btn-secondary text-bold"><i class="fas fa-fw fa-file-pdf me-2"></i>Download PDF</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
<?php
|
||||
}
|
||||
|
||||
@@ -899,10 +899,10 @@ function renderClientPackSections() {
|
||||
<div class="col-sm-6">
|
||||
<?php } ?>
|
||||
<li class="list-group-item">
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input class="custom-control-input" type="checkbox" id="include_<?= $key ?>" name="include_<?= $key ?>" value="1" <?php if ($section['default']) { echo 'checked'; } ?>>
|
||||
<label for="include_<?= $key ?>" class="custom-control-label">
|
||||
<i class="fas fa-fw <?= $section['icon'] ?> mr-2"></i><?= escapeHtml($section['label']) ?>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" id="include_<?= $key ?>" name="include_<?= $key ?>" value="1" <?php if ($section['default']) { echo 'checked'; } ?>>
|
||||
<label for="include_<?= $key ?>" class="form-check-label">
|
||||
<i class="fas fa-fw <?= $section['icon'] ?> me-2"></i><?= escapeHtml($section['label']) ?>
|
||||
</label>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user