ItEr21S08CUVisualizacionModelosPlanificacionItErItEr20S10: Added weekend watermark styles in zoom level week
This commit is contained in:
parent
19836b21ef
commit
33ac3634d1
3 changed files with 22 additions and 3 deletions
|
|
@ -51,6 +51,10 @@ public class TimeTracker extends HtmlMacroComponent {
|
|||
this.detailLevel = ZoomLevel.DETAIL_ONE;
|
||||
}
|
||||
|
||||
public ZoomLevel getZoomLevel() {
|
||||
return this.detailLevel;
|
||||
}
|
||||
|
||||
public void addZoomListener(IZoomLevelChangedListener listener) {
|
||||
zoomListeners
|
||||
.add(new WeakReference<IZoomLevelChangedListener>(listener));
|
||||
|
|
|
|||
|
|
@ -57,11 +57,21 @@ function onDecrease(id) {
|
|||
</n:th>
|
||||
</n:tr>
|
||||
<n:tr id="watermark" style="height:100px">
|
||||
<n:td class="timetracker_column${(each.even?'_even':'')}
|
||||
<n:td class="timetracker_column${((each.even and (top.zoomLevel != 'DETAIL_FOUR'))?'_even':'')}
|
||||
${(each.bankHoliday?'bankHoliday':'')}
|
||||
${(each.currentPeriod?'timetracker_column_today':'')}"
|
||||
forEach="${top.detailsSecondLevel}"
|
||||
style="background-position: ${each.currentDayOffset}px"/>
|
||||
style="background-position: ${each.currentDayOffset}px">
|
||||
|
||||
<n:table class="week_element" width="100%" height="100%" if="${top.zoomLevel == 'DETAIL_FOUR'}">
|
||||
<n:tr>
|
||||
<n:td/><n:td/><n:td/><n:td/><n:td/>
|
||||
<n:td class="weekend" />
|
||||
<n:td class="weekend" />
|
||||
</n:tr>
|
||||
</n:table>
|
||||
|
||||
</n:td>
|
||||
</n:tr>
|
||||
</n:table>
|
||||
</n:div>
|
||||
|
|
@ -70,4 +80,4 @@ function onDecrease(id) {
|
|||
|
||||
</n:div>
|
||||
</div>
|
||||
</zk>
|
||||
</zk>
|
||||
|
|
|
|||
|
|
@ -242,6 +242,11 @@ zkTasklist.GANTT_PANEL_LEFT = 300
|
|||
background-color: #FFEEEE; !important;
|
||||
}
|
||||
|
||||
#watermark .weekend {
|
||||
background-color: #FFEEEE; !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Reduce spacing and font-size for watermark legend */
|
||||
.z-columns, .z-column {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue