Commit 8b543a2ea3b6867f1952326d69f9470b50859e29
1 parent
1e663d1c
Added missing smarty file for date field patch
Story id: 779844 Committed by: Megan Watson
Showing
1 changed file
with
33 additions
and
0 deletions
templates/ktcore/forms/widgets/date.smarty
0 → 100755
| 1 | +<!-------------------------------------- | ||
| 2 | + ---- Changes for Custom Fields ----- | ||
| 3 | + --------------------------------------> | ||
| 4 | +<div name="div_{$name}" id="div_{$name}"></div> | ||
| 5 | + | ||
| 6 | +{literal} | ||
| 7 | +<link rel="stylesheet" type="text/css" href="/thirdpartyjs/extjs/resources/css/ext-all.css"> | ||
| 8 | + | ||
| 9 | +<script type="text/javascript" src="/thirdpartyjs/extjs/adapter/ext/ext-base.js"></script> | ||
| 10 | +<script type="text/javascript" src="/thirdpartyjs/extjs/ext-all.js"></script> | ||
| 11 | +<script type="text/javascript"> | ||
| 12 | + | ||
| 13 | +Ext.BLANK_IMAGE_URL = '/thirdpartyjs/extjs/resources/images/default/s.gif'; | ||
| 14 | + | ||
| 15 | +Ext.onReady(function(){ | ||
| 16 | + | ||
| 17 | + Ext.QuickTips.init(); | ||
| 18 | + | ||
| 19 | + var dp = new Ext.form.DateField({ | ||
| 20 | + name: '{/literal}{$name}{literal}', | ||
| 21 | + allowBlank:false, | ||
| 22 | + size:10, | ||
| 23 | + format: 'Y-m-d', | ||
| 24 | + fieldClass: 'metadatadate' | ||
| 25 | + {/literal}{if $has_value},value: '{$value|sanitize_input}'{/if}{literal} | ||
| 26 | + }); | ||
| 27 | + | ||
| 28 | + dp.render('div_{/literal}{$name}{literal}'); | ||
| 29 | +}); | ||
| 30 | + | ||
| 31 | +</script> | ||
| 32 | + | ||
| 33 | +{/literal} | ||
| 0 | \ No newline at end of file | 34 | \ No newline at end of file |