mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-16 15:33:44 +01:00
Fixed no location or provider causing uneven cards
Fixed no location or provider causing uneven cards
This commit is contained in:
parent
ee8651b82e
commit
78e9152bb7
@ -1110,6 +1110,10 @@ button.close {
|
||||
visibility: hidden
|
||||
}
|
||||
|
||||
.no-loc, .no-prov {
|
||||
visibility: hidden
|
||||
}
|
||||
|
||||
.form-control:focus {
|
||||
color: #495057;
|
||||
background-color: #fff;
|
||||
|
14
class.php
14
class.php
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user