Fixed no location or provider causing uneven cards

Fixed no location or provider causing uneven cards
This commit is contained in:
cp6 2021-01-26 00:44:22 +11:00
parent ee8651b82e
commit 78e9152bb7
2 changed files with 15 additions and 3 deletions

View File

@ -1110,6 +1110,10 @@ button.close {
visibility: hidden
}
.no-loc, .no-prov {
visibility: hidden
}
.form-control:focus {
color: #495057;
background-color: #fff;

View File

@ -879,10 +879,18 @@ class idlers extends helperFunctions
$this->tagOpen('div', 'card-body');
$this->HTMLphrase('h6', 'price', '$' . $data['price'] . ' ' . $data['currency'] . ' ' . $this->paymentTerm($data['term']));
$this->rowColOpen('row text-center', 'col-12');
$this->HTMLphrase('h6', 'provider', $data['provider']);
if (is_null($data['provider']) || empty($data['provider'])) {
$this->HTMLphrase('h6', 'provider no-prov', ' ');
} else {
$this->HTMLphrase('h6', 'provider', $data['provider']);
}
$this->tagClose('div', 2);
$this->rowColOpen('row text-center', 'col-12');
$this->HTMLphrase('h6', 'location', $data['location']);
if (is_null($data['location']) || empty($data['location'])) {
$this->HTMLphrase('h6', 'location no-loc', ' ');
} else {
$this->HTMLphrase('h6', 'location', $data['location']);
}
$this->tagClose('div', 2);
$this->rowColOpen('row text-center', 'col-12');
$this->HTMLphrase('p', $dd_class, "Due in {$this->processDueDate($data['id'], $data['term'], $data['next_dd'])} days");
@ -2776,7 +2784,7 @@ class idlers extends helperFunctions
$this->tagClose('form');
$this->rowColOpen('row text-center', 'col-12');
$this->outputString('<a class="btn btn-third" role="button" data-dismiss="modal">Close YABs</a>');
$this->tagClose('div',2);
$this->tagClose('div', 2);
}
}