/*!
 * Ext JS Library 3.3.1
 * Copyright(c) 2006-2010 Sencha Inc.
 * licensing@sencha.com
 * http://www.sencha.com/license
 */
/**
 * @class Ext.calendar.BoxLayoutTemplate
 * @extends Ext.XTemplate
 * This is the template used to render calendar views based on small day boxes within a non-scrolling container (currently
 * the {@link Ext.calendar.MonthView MonthView} and the all-day headers for {@link Ext.calendar.DayView DayView} and 
 * {@link Ext.calendar.WeekView WeekView}. This template is automatically bound to the underlying event store by the 
 * calendar components and expects records of type {@link Ext.calendar.EventRecord}.
 * @constructor
 * @param {Object} config The config object
 */
Ext.calendar.BoxLayoutTemplate = function(config){
    
    Ext.apply(this, config);
    
    var weekLinkTpl = this.showWeekLinks ? '{weekNum}
' : '';
    
    Ext.calendar.BoxLayoutTemplate.superclass.constructor.call(this,
        '',
            '',
                weekLinkTpl,
                '
',
                    '',
                        '',
                            '',
                                 '| ',
                            '',
                        ' | 
',
                    '',
                '
',
                '
',
                    '',
                        '',
                            '',
                                '| ',
                            '',
                        '{title} | 
',
                    '',
                '
',
            '