diff --git a/changelog.txt b/changelog.txt index c6316aa..6d6e810 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,5 @@ +-0.1.14 + - change expires soon warning color -0.1.13 - change gitignore -0.1.12 diff --git a/common/config/params.php b/common/config/params.php index a1d46e8..d71d914 100644 --- a/common/config/params.php +++ b/common/config/params.php @@ -5,7 +5,7 @@ return [ 'supportEmail' => 'rocho02@gmail.com', 'infoEmail' => 'info@rocho-net.hu', 'user.passwordResetTokenExpire' => 3600, - 'version' => 'v0.1.13', + 'version' => 'v0.1.14', 'company' => 'movar',//gyor 'company_name' => "Freimann Kft.", 'product_visiblity' => 'account',// on reception which products to display. account or global diff --git a/common/models/Ticket.php b/common/models/Ticket.php index 31d8b72..83f8660 100644 --- a/common/models/Ticket.php +++ b/common/models/Ticket.php @@ -450,6 +450,7 @@ class Ticket extends \common\models\BaseFitnessActiveRecord public function getDaysUntilExpire(){ $minutes = $this->getMinutesUntilExpire(); $days = $minutes / 60 /24; + $days = ceil($days); return $days; } diff --git a/frontend/views/common/_reception_ticket.php b/frontend/views/common/_reception_ticket.php index 4997a8c..8d8451a 100644 --- a/frontend/views/common/_reception_ticket.php +++ b/frontend/views/common/_reception_ticket.php @@ -88,7 +88,7 @@ if ( isset($model->card)){ /// /////////////////////////////////// if ( $showWarningExpires || $showWaringUsageCount) { ?> -
+
A bérlet hamarosan lejár customer)){ } -?> \ No newline at end of file +?> diff --git a/frontend/web/css/site.css b/frontend/web/css/site.css index 698be70..fe8d94b 100644 --- a/frontend/web/css/site.css +++ b/frontend/web/css/site.css @@ -89,3 +89,10 @@ a.desc:after { padding: 10px 20px; margin: 0 0 15px 0; } + + +.alert-warning-expires { + color: #fff; + background-color: #dc500b; + border-color: #faebcc; +}