[gen] Bugfix.
This commit is contained in:
parent
7d4dbdd0f8
commit
e5088771e7
|
@ -201,25 +201,25 @@ class Calendar(Field):
|
||||||
# For timeline rendering, the row displaying month names
|
# For timeline rendering, the row displaying month names
|
||||||
pxTimeLineMonths = Px('''
|
pxTimeLineMonths = Px('''
|
||||||
<tr>
|
<tr>
|
||||||
<th class="no"></th>
|
<th class="hidden"></th>
|
||||||
<th for="mInfo in monthsInfos" colspan=":mInfo.colspan">::mInfo.month</th>
|
<th for="mInfo in monthsInfos" colspan=":mInfo.colspan">::mInfo.month</th>
|
||||||
<th class="no"></th>
|
<th class="hidden"></th>
|
||||||
</tr>''')
|
</tr>''')
|
||||||
|
|
||||||
# For timeline rendering, the row displaying day letters
|
# For timeline rendering, the row displaying day letters
|
||||||
pxTimelineDayLetters = Px('''
|
pxTimelineDayLetters = Px('''
|
||||||
<tr>
|
<tr>
|
||||||
<td class="no"></td>
|
<td class="hidden"></td>
|
||||||
<td for="date in grid"><b>:namesOfDays[date.aDay()].name[0]</b></td>
|
<td for="date in grid"><b>:namesOfDays[date.aDay()].name[0]</b></td>
|
||||||
<td class="no"></td>
|
<td class="hidden"></td>
|
||||||
</tr>''')
|
</tr>''')
|
||||||
|
|
||||||
# For timeline rendering, the row displaying day numbers
|
# For timeline rendering, the row displaying day numbers
|
||||||
pxTimelineDayNumbers = Px('''
|
pxTimelineDayNumbers = Px('''
|
||||||
<tr>
|
<tr>
|
||||||
<td class="no"></td>
|
<td class="hidden"></td>
|
||||||
<td for="date in grid"><b>:str(date.day()).zfill(2)</b></td>
|
<td for="date in grid"><b>:str(date.day()).zfill(2)</b></td>
|
||||||
<td class="no"></td>
|
<td class="hidden"></td>
|
||||||
</tr>''')
|
</tr>''')
|
||||||
|
|
||||||
# Legend for a timeline calendar
|
# Legend for a timeline calendar
|
||||||
|
@ -270,7 +270,7 @@ class Calendar(Field):
|
||||||
var="totals=field.computeTotals('col', zobj, grid, others, \
|
var="totals=field.computeTotals('col', zobj, grid, others, \
|
||||||
preComputed)">
|
preComputed)">
|
||||||
<tr for="i in range(2)"> <!-- 2 empty rows -->
|
<tr for="i in range(2)"> <!-- 2 empty rows -->
|
||||||
<td for="col in field.totalCols" class="no"> </td>
|
<td for="col in field.totalCols" class="hidden"> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr> <!-- The column headers -->
|
<tr> <!-- The column headers -->
|
||||||
<th for="col in field.totalCols">
|
<th for="col in field.totalCols">
|
||||||
|
@ -296,7 +296,7 @@ class Calendar(Field):
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr for="i in range(2)"> <!-- 2 empty rows -->
|
<tr for="i in range(2)"> <!-- 2 empty rows -->
|
||||||
<td for="col in field.totalCols" class="no"> </td>
|
<td for="col in field.totalCols" class="hidden"> </td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>''')
|
</table>''')
|
||||||
|
|
||||||
|
|
|
@ -142,6 +142,7 @@ td.search { padding-top: 8px }
|
||||||
.no, .no td, .no th {
|
.no, .no td, .no th {
|
||||||
border: 0 !important; padding: 0 !important; margin: 0 !important;
|
border: 0 !important; padding: 0 !important; margin: 0 !important;
|
||||||
background-color: transparent !important }
|
background-color: transparent !important }
|
||||||
|
.hidden { visibility: hidden }
|
||||||
.simpleLabel { text-transform: none }
|
.simpleLabel { text-transform: none }
|
||||||
.translationLabel { background-color: #EAEAEA; border-bottom: 1px dashed grey;
|
.translationLabel { background-color: #EAEAEA; border-bottom: 1px dashed grey;
|
||||||
margin-top: 0.5em; margin-bottom: 0.5em }
|
margin-top: 0.5em; margin-bottom: 0.5em }
|
||||||
|
|
Loading…
Reference in a new issue