Resolve dashboard design issues

This commit is contained in:
Abhishek Kumar
2022-07-22 20:18:51 +05:30
parent ef44ddd00a
commit e8960b39bf
10 changed files with 11 additions and 22 deletions

View File

@@ -34,7 +34,7 @@
border-radius: 5px !important;
font-weight: bold !important;
color: #00AFF0;
padding: 0 14px;
text-align: center;
width: 100%;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 KiB

View File

@@ -52,7 +52,6 @@ class DashPerformance extends Module
public function hookActionAdminControllerSetMedia()
{
if (get_class($this->context->controller) == 'AdminDashboardController') {
$this->context->controller->addJs($this->_path.'views/js/'.$this->name.'.js');
$this->context->controller->addCSS($this->_path.'views/css/'.$this->name.'.css');
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 317 KiB

View File

@@ -22,9 +22,7 @@
<header class="panel-heading">
<i class="icon-bar-chart"></i> {l s="Performance" mod="dashperformance"}
<span class="panel-heading-action">
<a class="list-toolbar-btn" href="#"
onclick="refreshDashboard('dashperformance'); return false;"
title="{l s="Refresh" mod="dashperformance"}">
<a class="list-toolbar-btn" href="#" onclick="refreshDashboard('dashperformance'); return false;" title="{l s="Refresh" mod="dashperformance"}">
<i class="process-icon-refresh"></i>
</a>
</span>
@@ -34,9 +32,7 @@
<div class="col-xs-6 col-lg-3">
<div class="avg-daily-rate preformance-index-wrapper label-tooltip" data-toggle="tooltip" data-original-title="{l s="The Average Daily Rate represents the average rental income per paid occupied room over a given time period." mod="dashperformance"}" data-placement="top">
<div class="title-wrapper">
<p>
{l s="Avg. Daily Rate" mod="dashperformance"}
</p>
<p>{l s="Avg. Daily Rate" mod="dashperformance"}</p>
</div>
<div class="value-wrapper" id="dp_average_daily_rate" style="color: #0093BA">
{if isset($average_daily_rate)}{$average_daily_rate|escape:"html":"UTF-8"}{/if}
@@ -45,11 +41,8 @@
</div>
<div class="col-xs-6 col-lg-3">
<div class="circle cancellation-rate preformance-index-wrapper label-tooltip" data-toggle="tooltip" data-original-title="{l s="The Cancellation Rate is a percentage of all cancelled orders out of all orders over a given time period." mod="dashperformance"}" data-placement="top">
<div class="title-wrapper">
<p>
{l s="Cancellation Rate" mod="dashperformance"}
</p>
<p>{l s="Cancellation Rate" mod="dashperformance"}</p>
</div>
<div class="value-wrapper" id="dp_cancellation_rate" style="color: #FF4036">
{if isset($cancellation_rate)}{$cancellation_rate|escape:"html":"UTF-8"}{/if}
@@ -59,9 +52,7 @@
<div class="col-xs-6 col-lg-3">
<div class="circle revenue preformance-index-wrapper label-tooltip" data-toggle="tooltip" data-original-title="{l s="The Revenue is the total amount of income generated by the sale of rooms." mod="dashperformance"}" data-placement="top">
<div class="title-wrapper">
<p>
{l s="Revenue" mod="dashperformance"}
</p>
<p>{l s="Revenue" mod="dashperformance"}</p>
</div>
<div class="value-wrapper" id="dp_revenue" style="color: #00B200">
{if isset($revenue)}{$revenue|escape:"html":"UTF-8"}{/if}
@@ -71,9 +62,7 @@
<div class="col-xs-6 col-lg-3">
<div class="circle nights-stayed preformance-index-wrapper label-tooltip" data-toggle="tooltip" data-original-title="{l s="The Nights Stayed is the total number of nights guests occupied over a given time period." mod="dashperformance"}" data-placement="top">
<div class="title-wrapper">
<p>
{l s="Nights Stayed" mod="dashperformance"}
</p>
<p>{l s="Nights Stayed" mod="dashperformance"}</p>
</div>
<div class="value-wrapper" id="dp_nights_stayed" style="color: #E09400">
{if isset($nights_stayed)}{$nights_stayed|escape:"html":"UTF-8"}{/if}
@@ -84,4 +73,4 @@
</section>
</section>
</div>
<div class="clearfix"></div>
<div class="clearfix"></div>

View File

@@ -41,7 +41,7 @@
<ul class="nav nav-pills row">
<li class="col-xs-6 col-sm-3 nav-item active">
<a href="#dash_recent_orders" data-toggle="tab">
<span>{l s="Recent Bookings" mod="dashproducts"}</span>
<span>{l s="New Bookings" mod="dashproducts"}</span>
</a>
</li>
<li class="col-xs-6 col-sm-3 nav-item">

View File

@@ -76,6 +76,7 @@ class Dashtrends extends Module
'currency' => $this->context->currency,
'_PS_PRICE_DISPLAY_PRECISION_' => _PS_PRICE_DISPLAY_PRECISION_,
));
return $this->display(__FILE__, 'dashboard_zone_two.tpl');
}

View File

@@ -74,7 +74,7 @@
</div>
<div class="col-sm-8">
<div class="row margin-lr-0 box-border calender-main-div">
<div class="hotel_date col-sm-7">
<div class="hotel_date col-sm-12 col-md-7">
<div class="row margin-leftrgt-0">
<div class="col-sm-12 htl_date_header">
<div class="col-sm-3">
@@ -92,7 +92,7 @@
</div>
</div>
<div class="col-sm-5 htl_room_data_cont">
<div class="col-sm-12 col-md-5 htl_room_data_cont">
<div class="row">
<div class="col-sm-6">
<div class="row">