[gen] Calendar: display weekend days in a special way.
This commit is contained in:
parent
614ce576af
commit
ba148c51aa
6 changed files with 26 additions and 11 deletions
|
@ -97,6 +97,7 @@ img { border: 0; vertical-align: middle}
|
|||
border-bottom: 2px solid grey; padding: 2px 2px;}
|
||||
.grid td { padding-right: 5px; }
|
||||
.cellGap { padding-right: 0.4em; }
|
||||
.cellDashed { border: 1px dashed grey !important }
|
||||
.noStyle { border: 0 !important; padding: 0 !important; margin: 0 !important; }
|
||||
.noStyle td { border:0 !important; padding:0 !important; margin:0 !important; }
|
||||
.translationLabel { background-color: #EAEAEA; border-bottom: 1px dashed grey;
|
||||
|
|
|
@ -61,10 +61,10 @@
|
|||
<tal:cell repeat="date row">
|
||||
<tal:cel define="tooEarly python: startDate and (date < startDate);
|
||||
tooLate python: endDate and not tooEarly and (date > endDate);
|
||||
inRange python: not tooEarly and not tooLate">
|
||||
inRange python: not tooEarly and not tooLate;
|
||||
cssClasses python: contextObj.callField(fieldName, 'getCellStyle', contextObj, date, today)">
|
||||
<tal:comment replace="nothing">Dump an empty cell if we are out of the supported date range</tal:comment>
|
||||
<td tal:condition="not: inRange"
|
||||
tal:attributes="class python: test(date < today, 'even', 'odd');">
|
||||
<td tal:condition="not: inRange" tal:attributes="class cssClasses">
|
||||
</td>
|
||||
<tal:comment replace="nothing">Dump a normal cell if we are in range</tal:comment>
|
||||
<tal:td condition="inRange">
|
||||
|
@ -73,7 +73,7 @@
|
|||
mayCreate python: mayEdit and not events;
|
||||
mayDelete python: mayEdit and events;"
|
||||
tal:attributes="style python: test(date.isCurrentDay(), 'font-weight:bold', 'font-weight:normal');
|
||||
class python: test(date < today, 'even', 'odd');
|
||||
class cssClasses;
|
||||
onmouseover python: test(mayEdit, 'this.getElementsByTagName(\'img\')[0].style.visibility=\'visible\'', '');
|
||||
onmouseout python: test(mayEdit, 'this.getElementsByTagName(\'img\')[0].style.visibility=\'hidden\'', '')">
|
||||
<tal:day define="day date/day;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue