Style revamps on user dashboards

FEA: ItEr76S28UserDashboard
This commit is contained in:
Lorenzo Tilve Álvaro 2012-06-27 12:43:30 +02:00
parent b34988d651
commit 4d57bde7d4
2 changed files with 46 additions and 21 deletions

View file

@ -2,4 +2,19 @@
background-image: none;
background-color: transparent;
border: solid 1px transparent;
margin: 0;
text-align: center;
}
.timesheet .z-cell {
padding: 0;
}
.timesheet .z-textbox.z-textbox-disd {
background-color: #EEE;
color: black;
}
.timesheet {
margin-top:5px;
}

View file

@ -37,19 +37,8 @@
<label value="${i18n:_('Warning: Not editing from home page of bound users')}" />
</div>
<div visible="@{controller.currentUser}">
<button id="previousMonth"
onClick="controller.previousMonth();"
label="${i18n:_('Previous')}"
disabled="@{controller.firstMonth}" />
<button id="nextMonth"
onClick="controller.nextMonth();"
label="${i18n:_('Next')}"
disabled="@{controller.lastMonth}" />
</div>
<hbox>
<groupbox style="margin-top: 5px" closable="false">
<hbox width="100%">
<groupbox style="margin-top: 5px" closable="false" hflex="1">
<caption label="${i18n:_('Timesheet data')}" />
<grid fixedLayout="true">
<columns>
@ -59,7 +48,21 @@
<rows>
<row>
<label value="${i18n:_('Date')}" />
<label value="@{controller.date}" />
<hbox align="pack">
<div visible="@{controller.currentUser}">
<button id="previousMonth"
onClick="controller.previousMonth();"
label="${i18n:_('Previous')}"
disabled="@{controller.firstMonth}" />
</div>
<label value="@{controller.date}" />
<div visible="@{controller.currentUser}">
<button id="nextMonth"
onClick="controller.nextMonth();"
label="${i18n:_('Next')}"
disabled="@{controller.lastMonth}" />
</div></hbox>
</row>
<row>
<label value="${i18n:_('Resource')}" />
@ -68,7 +71,7 @@
</rows>
</grid>
</groupbox>
<groupbox style="margin-top: 5px" closable="false">
<groupbox style="margin-top: 5px" closable="false" hflex="1">
<caption label="${i18n:_('Timesheet summary')}" />
<grid fixedLayout="true">
<columns>
@ -105,12 +108,11 @@
</groupbox>
</hbox>
<groupbox style="margin-top: 5px" closable="false">
<caption label="${i18n:_('Time tracking')}" />
<grid id="timesheet" sclass="timesheet"
model="@{controller.rows}"
rowRenderer="@{controller.rowRenderer}" />
<hbox>
<hbox width="100%">
<groupbox width="100%" closable="false" hflex="1" style="margin-top:5px">
<!-- caption label="${i18n:_('Time tracking')}" hflex="1" width="100%" -->
<hbox align="center" hflex="1" width="100%">
<bandboxSearch
id="orderElementBandboxSearch"
finder="OrderElementBandboxFinder"
@ -119,8 +121,16 @@
<button onClick="controller.addOrderElement();"
label="${i18n:_('Add task')}" />
</hbox>
<hbox width="100%">
<grid id="timesheet" width="100%" sizedByContent="true" hflex="1" sclass="timesheet"
model="@{controller.rows}"
rowRenderer="@{controller.rowRenderer}" />
</hbox>
</groupbox>
</hbox>
<button onClick="controller.save();"
label="${i18n:_('Save')}"
sclass="save-button global-action" />