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 visibility: hidden
} }
.no-loc, .no-prov {
visibility: hidden
}
.form-control:focus { .form-control:focus {
color: #495057; color: #495057;
background-color: #fff; background-color: #fff;

View File

@ -879,10 +879,18 @@ class idlers extends helperFunctions
$this->tagOpen('div', 'card-body'); $this->tagOpen('div', 'card-body');
$this->HTMLphrase('h6', 'price', '$' . $data['price'] . ' ' . $data['currency'] . ' ' . $this->paymentTerm($data['term'])); $this->HTMLphrase('h6', 'price', '$' . $data['price'] . ' ' . $data['currency'] . ' ' . $this->paymentTerm($data['term']));
$this->rowColOpen('row text-center', 'col-12'); $this->rowColOpen('row text-center', 'col-12');
if (is_null($data['provider']) || empty($data['provider'])) {
$this->HTMLphrase('h6', 'provider no-prov', ' ');
} else {
$this->HTMLphrase('h6', 'provider', $data['provider']); $this->HTMLphrase('h6', 'provider', $data['provider']);
}
$this->tagClose('div', 2); $this->tagClose('div', 2);
$this->rowColOpen('row text-center', 'col-12'); $this->rowColOpen('row text-center', 'col-12');
if (is_null($data['location']) || empty($data['location'])) {
$this->HTMLphrase('h6', 'location no-loc', ' ');
} else {
$this->HTMLphrase('h6', 'location', $data['location']); $this->HTMLphrase('h6', 'location', $data['location']);
}
$this->tagClose('div', 2); $this->tagClose('div', 2);
$this->rowColOpen('row text-center', 'col-12'); $this->rowColOpen('row text-center', 'col-12');
$this->HTMLphrase('p', $dd_class, "Due in {$this->processDueDate($data['id'], $data['term'], $data['next_dd'])} days"); $this->HTMLphrase('p', $dd_class, "Due in {$this->processDueDate($data['id'], $data['term'], $data['next_dd'])} days");