For the issue in 5.0 with the clickable calendar:
Copy this below code over the current include/SugarFields/Fields/DateTime/EditView.tpl and it should fix this issue. You may have to run a quick repair to fix the cached copies.
As always, it is best to test on a stage environment first and make a backup of production before deploying any changes.
PHP Code:
*}
{assign var=date_value value={{sugarvar key='value' string=true}} }
<input autocomplete="off" type="text" name="{{sugarvar key='name'}}" id="{{sugarvar key='name'}}" value="{$date_value}" title='{{$vardef.help}}' size="11" maxlength="10" tabindex="{{$tabindex}}">
<img border="0" src="themes/default/images/jscalendar.gif" alt="{$APP.LBL_ENTER_DATE}" id="{{sugarvar key='name'}}_trigger" align="absmiddle" />
{{if $displayParams.showFormats}}
(<span class="dateFormat">{$USER_DATEFORMAT}</span>)
{{/if}}
<script type="text/javascript" language="javascript">
Calendar.setup ({ldelim}
inputField : "{{sugarvar key='name'}}",
daFormat : "{$CALENDAR_FORMAT}",
button : "{{sugarvar key='name'}}_trigger",
singleClick : true,
dateStr : "{$date_value}",
step : 1
{rdelim}
);
</script>
Bookmarks