Private GIT

Skip to content
Snippets Groups Projects
Commit 541b4875 authored by Stephane Chapron's avatar Stephane Chapron Committed by sc979
Browse files

feat(date): Formatting date in Reporting Dashboard Service DatepickerResult

parent f3f9a99c
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@
&nbsp;{$hostTitle}&nbsp;:&nbsp;&nbsp;<input type=text value="{$host_name}" name="host_name" disabled>
<b>{$formItem.item.label}:</b>&nbsp;&nbsp;{$formItem.item.html}
{$formItem.hidden}
&nbsp;&nbsp;&nbsp;{$from} {$date_start} {$to} {$date_end} - {$infosTitle}
&nbsp;&nbsp;&nbsp;{$from} <span class="isTimestamp isDate">{$date_start} </span> {$to} <span class="isTimestamp isDate"> {$date_end} </span> - {$infosTitle}
</form>
</td>
<td style='padding:5px;vertical-align:top;'>
......@@ -118,8 +118,11 @@
</tr>
</table>
<script>
{literal}
<script>
//formatting the tags containing a class isTimestamp
formatDateMoment();
jQuery("#StartDate,#EndDate").datepicker({
maxDate: '-1'
});
......
......@@ -118,9 +118,9 @@ if (isset($host_id) && $host_id != "NULL" && isset($service_id) && $service_id !
$tpl->assign('totalTime', $serviceStats["TOTAL_TIME_F"]);
$tpl->assign('summary', $serviceStats);
$tpl->assign('from', _("From"));
$tpl->assign('date_start', date(_("d/m/Y H:i"), $start_date));
$tpl->assign('date_start', $start_date);
$tpl->assign('to', _("to"));
$tpl->assign('date_end', date(_("d/m/Y H:i"), $end_date));
$tpl->assign('date_end', $end_date);
$formPeriod->setDefaults(array('period' => $period));
$tpl->assign('id', $service_id);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment