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