Would anyone haver time to explain briefly how to utilise this CSS code.
/* Global Event Styles
------------------------------------------------------------------------*/
.fc-event,
.fc-agenda .fc-event-time,
.fc-event a {
border-style: solid;
border-color: #36c; /* default BORDER color (probably the same as
background-color) */
background-color: #36c; /* default BACKGROUND color */
color: #fff; /* default TEXT color */
}
/* Use the 'className' CalEvent property and the following
* example CSS to change event color on a per-event basis:
*
* .myclass,
* .fc-agenda .myclass .fc-event-time,
* .myclass a {
* background-color: black;
* border-color: black;
* color: red;
* }
*/
I know some python & html but know little about CSS so I need to take a
course or two...
In the mean time I would appreciate any help with this...
The calendar view has this code
$('#calendar').fullCalendar({
editable: false,
events: [
{{for row in rows:}}
{ .myclass, .fc-agenda .myclass .fc-event-time, .myclass a {
background-color: black; border-color: black; color: red; }
title: '{{=row.task.task_status}} {{=row.task.task_type}}
{{=row.person.fullname.replace("'","\\'")}} ',
allDay: false,
start: new Date('{{=row.task.start_time.strftime('%B %d, %Y
%H:%M:%S')}}'),
url: '{{=URL('view_task',args=row.task.id)}}'
},
{{pass}}
]
});
This works to display the calendar events but they all have the same
background colour of blue
How do I implement the CSS so each event background colour changes
depending on {{=row.task.task_type}}
Many thanks,
Peter
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.