Remove full=0 for applicable dateFormat calls and unused variable declarations

This commit is contained in:
Abhishek Kumar
2022-11-23 18:16:22 +05:30
parent 590da3b5ff
commit 161a9f87df
9 changed files with 12 additions and 34 deletions

View File

@@ -72,9 +72,9 @@
<i class="icon-calendar-empty"></i>
<span class="hidden-xs">
{l s='From'}
<strong class="text-info" id="datepicker-from-info">{dateFormat date=$date_from full=0}</strong>
<strong class="text-info" id="datepicker-from-info">{dateFormat date=$date_from}</strong>
{l s='To'}
<strong class="text-info" id="datepicker-to-info">{dateFormat date=$date_to full=0}</strong>
<strong class="text-info" id="datepicker-to-info">{dateFormat date=$date_to}</strong>
<strong class="text-info" id="datepicker-diff-info"></strong>
</span>
<i class="icon-caret-down"></i>

View File

@@ -57,7 +57,7 @@
</ul>
{/if}
</td>
<td>{dateFormat date=$data.date_from full=0} - {dateFormat date=$data.date_to full=0}</td>
<td>{dateFormat date=$data.date_from} - {dateFormat date=$data.date_to}</td>
<td id="cart_detail_data_unit_price_{$data.id|escape:'html':'UTF-8'}">
{if $data.feature_price_diff != 0}
{assign var=shown_room_type_price value=$data.feature_price_tax_excl}

View File

@@ -54,7 +54,7 @@
</a>
</td>
<td class="text-center">
<span class="booking_duration_show">{dateFormat date=$data.date_from full=0} - {dateFormat date=$data.date_to full=0}</span>
<span class="booking_duration_show">{dateFormat date=$data.date_from} - {dateFormat date=$data.date_to}</span>
{if $can_edit}
<div class="booking_duration_edit" style="display:none;">

View File

@@ -291,10 +291,10 @@
</a>
</td>
<td>
{dateFormat date=$data['date_from'] full=0}
{dateFormat date=$data['date_from']}
</td>
<td>
{dateFormat date=$data['date_to'] full=0}
{dateFormat date=$data['date_to']}
</td>
<td>
<form action="" method="post" class="form-horizontal row room_status_info_form">
@@ -306,9 +306,9 @@
</select>
{if $data['id_status'] == $hotel_order_status['STATUS_CHECKED_IN']['id_status']}
<p class="text-center"><span class="badge badge-success margin-bottom-5">{l s='Checked in on'} {dateFormat date=$data['check_in'] full=0}</span></p>
<p class="text-center"><span class="badge badge-success margin-bottom-5">{l s='Checked in on'} {dateFormat date=$data['check_in']}</span></p>
{elseif $data['id_status'] == $hotel_order_status['STATUS_CHECKED_OUT']['id_status']}
<p class="text-center"><span class="badge badge-success margin-bottom-5">{l s='Checked out on'} {dateFormat date=$data['check_out'] full=0}</span></p>
<p class="text-center"><span class="badge badge-success margin-bottom-5">{l s='Checked out on'} {dateFormat date=$data['check_out']}</span></p>
{/if}
{* field for the current date *}

View File

@@ -48,14 +48,6 @@ function pie_chart_trends(widget_name, chart_details)
}
$(document).ready(function() {
if (typeof date_subtitle === 'undefined') {
date_subtitle = '(from %s to %s)';
}
if (typeof date_format === 'undefined') {
date_format = 'Y-mm-dd';
}
$('#date-start').change(function() {
start = Date.parseDate($('#date-start').val(), 'Y-m-d');
end = Date.parseDate($('#date-end').val(), 'Y-m-d');

View File

@@ -70,8 +70,6 @@ class DashOccupancy extends Module
'count_occupied' => sprintf('%02d', $occupancyData['count_occupied']),
'count_available' => sprintf('%02d', $occupancyData['count_available']),
'count_unavailable' => sprintf('%02d', $occupancyData['count_unavailable']),
'date_occupancy_range' => $this->l('(from %s to %s)'),
'date_occupancy_avail_format' => $this->context->language->date_format_lite,
));
return $this->display(__FILE__, 'dashboard_zone_one.tpl');

View File

@@ -41,13 +41,6 @@ function generateAvailablityPieChart(chartData) {
}
$(document).ready(function() {
if (typeof date_subtitle === 'undefined') {
date_subtitle = '(from %s to %s)';
}
if (typeof date_format === 'undefined')
date_format = 'Y-mm-dd';
$('#date-start').change(function() {
start = Date.parseDate($('#date-start').val(), 'Y-m-d');
end = Date.parseDate($('#date-end').val(), 'Y-m-d');

View File

@@ -84,8 +84,3 @@
<svg></svg>
</div>
</section>
<script type='text/javascript'>
date_occupancy_range = '{$date_occupancy_range|escape:'html':'UTF-8'}';
date_occupancy_avail_format = '{$date_occupancy_avail_format|escape:'html':'UTF-8'}';
</script>

View File

@@ -215,7 +215,7 @@
{foreach from=$book_v['data']['available'] key=avai_k item=avai_v}
<tr>
<td>{$avai_v['room_num']|escape:'htmlall':'UTF-8'}</td>
<td>{dateFormat date=date('Y-m-d', strtotime($date_from)) full=0} - {dateFormat date=date('Y-m-d', strtotime($date_to)) full=0}</td>
<td>{dateFormat date=date('Y-m-d', strtotime($date_from))} - {dateFormat date=date('Y-m-d', strtotime($date_to))}</td>
<td>{$avai_v['room_comment']|escape:'htmlall':'UTF-8'}</td>
<td>
{foreach $allotment_types as $allotment_type}
@@ -255,7 +255,7 @@
{foreach from=$part_v['avai_dates'] key=sub_part_k item=sub_part_v}
<tr>
<td class="text-center">
<p>{dateFormat date=date('Y-m-d', strtotime($sub_part_v['date_from'])) full=0} - {dateFormat date=date('Y-m-d', strtotime($sub_part_v['date_to'])) full=0}</p>
<p>{dateFormat date=date('Y-m-d', strtotime($sub_part_v['date_from']))} - {dateFormat date=date('Y-m-d', strtotime($sub_part_v['date_to']))}</p>
</td>
<td class="text-left">
{foreach $allotment_types as $allotment_type}
@@ -299,7 +299,7 @@
<table class="table">
{foreach from=$booked_v['detail'] key=rm_dtl_k item=rm_dtl_v}
<tr>
<td class="col-xs-3">{dateFormat date=date('Y-m-d', strtotime($rm_dtl_v['date_from'])) full=0} - {dateFormat date=date('Y-m-d', strtotime($rm_dtl_v['date_to'])) full=0}</td>
<td class="col-xs-3">{dateFormat date=date('Y-m-d', strtotime($rm_dtl_v['date_from']))} - {dateFormat date=date('Y-m-d', strtotime($rm_dtl_v['date_to']))}</td>
<td class="col-xs-3">{$rm_dtl_v['comment']|escape:'htmlall':'UTF-8'}</td>
<td class="col-xs-3">
{if $rm_dtl_v['booking_type'] == HotelBookingDetail::ALLOTMENT_AUTO}{l s='Auto Allotment' mod='hotelreservationsystem'}{elseif $rm_dtl_v['booking_type'] == HotelBookingDetail::ALLOTMENT_MANUAL}{l s='Manual Allotment' mod='hotelreservationsystem'}{/if}
@@ -381,7 +381,7 @@
<tr>
<td class="text-center">{$cart_data['room_num']|escape:'htmlall':'UTF-8'}</td>
<td class="text-center">{$cart_data['room_type']|escape:'htmlall':'UTF-8'}</td>
<td class="text-center">{dateFormat date=$cart_data['date_from'] full=0} - {dateFormat date=$cart_data['date_to'] full=0}</td>
<td class="text-center">{dateFormat date=$cart_data['date_from']} - {dateFormat date=$cart_data['date_to']}</td>
<td class="text-center">{convertPrice price=$cart_data['amt_with_qty']}</td>
<td class="text-center"><button class="btn btn-default ajax_cart_delete_data" data-id-product="{$cart_data['id_product']|escape:'htmlall':'UTF-8'}" data-id-hotel="{$cart_data['id_hotel']|escape:'htmlall':'UTF-8'}" data-id-cart="{$cart_data['id_cart']|escape:'htmlall':'UTF-8'}" data-id-cart-book-data="{$cart_data['id_cart_book_data']|escape:'htmlall':'UTF-8'}" data-date-from="{$cart_data['date_from']|escape:'htmlall':'UTF-8'}" data-date-to="{$cart_data['date_to']|escape:'htmlall':'UTF-8'}"><i class='icon-trash'></i></button></td>
</tr>