diff --git a/fields/calendar.py b/fields/calendar.py index cdceec1..36b323e 100644 --- a/fields/calendar.py +++ b/fields/calendar.py @@ -12,14 +12,15 @@ class Calendar(Field): '''This field allows to produce an agenda (monthly view) and view/edit events on it.''' jsFiles = {'view': ('calendar.js',)} + DateTime = DateTime # Month view for a calendar. Called by pxView, and directly from the UI, # via Ajax, when the user selects another month. - pxMonthView = Px(''' + pxViewMonth = Px('''
- +
+ dayString=date.strftime('%Y/%m/%d'); + js=mayEdit and 'toggleVisibility(this, %s)' % q('img') \ + or ''" + style=":date.isCurrentDay() and 'font-weight:bold' or \ + 'font-weight:normal'" + class=":cssClasses" onmouseover=":js" onmouseout=":js"> :day :_('month_%s_short' % date.aMonth()) @@ -138,11 +137,11 @@ class Calendar(Field):