Add new section for expenses in user dashboard

FEA: ItEr76S28UserDashboard
This commit is contained in:
Manuel Rego Casasnovas 2012-06-06 13:01:27 +02:00
parent 14605d2ff7
commit 8e742c57ae
3 changed files with 41 additions and 1 deletions

View file

@ -0,0 +1,37 @@
<!--
This file is part of LibrePlan
Copyright (C) 2012 Igalia, S.L.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public
License along with this program. If not, see
<http://www.gnu.org/licenses/>.
-->
<groupbox>
<caption label="${i18n:_('Expenses')}" />
<grid mold="paging" pageSize="10">
<columns sizable="true">
<column label="${i18n:_('Description')}" />
<column label="${i18n:_('Code')}" />
<column label="${i18n:_('Total')}" />
<column label="${i18n:_('First expense')}" />
<column label="${i18n:_('Last expense')}" />
<column label="${i18n:_('Operations')}" />
</columns>
</grid>
<button label="${i18n:_('New expense sheet')}" />
</groupbox>

View file

@ -21,7 +21,7 @@
<groupbox apply="org.libreplan.web.users.dashboard.MyTasksAreaController">
<caption label="${i18n:_('My tasks')}" />
<grid id="listing" model="@{controller.tasks}" mold="paging"
<grid model="@{controller.tasks}" mold="paging"
pageSize="10" rowRenderer="@{controller.tasksRenderer}">
<columns sizable="true">
<column label="${i18n:_('Name')}"

View file

@ -28,6 +28,7 @@
<?component name="my-tasks-area" inline="true" macroURI="_myTasksArea.zul"?>
<?component name="monthly-timesheets-area" inline="true" macroURI="_monthlyTimesheetsArea.zul"?>
<?component name="expenses-area" inline="true" macroURI="_expensesArea.zul"?>
<zk>
@ -40,5 +41,7 @@
<monthly-timesheets-area />
<expenses-area />
</window>
</zk>