ItEr21S04ArquitecturaServidorItEr20S04: I18n of WorkReport edition
This commit is contained in:
parent
a965e7db8e
commit
9fdce30f68
2 changed files with 11 additions and 5 deletions
|
|
@ -1,5 +1,7 @@
|
|||
package org.navalplanner.web.workreports;
|
||||
|
||||
import static org.navalplanner.web.I18nHelper._;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
|
|
@ -42,6 +44,7 @@ import org.zkoss.zul.SimpleListModel;
|
|||
import org.zkoss.zul.Textbox;
|
||||
import org.zkoss.zul.api.Window;
|
||||
|
||||
|
||||
/**
|
||||
* Controller for CRUD actions over a {@link WorkReport}
|
||||
*
|
||||
|
|
@ -80,6 +83,7 @@ public class WorkReportCRUDController extends GenericForwardComposer implements
|
|||
|
||||
private final static int PAGING = 10;
|
||||
|
||||
|
||||
/**
|
||||
* Delete {@link WorkReport}
|
||||
*
|
||||
|
|
@ -326,11 +330,11 @@ public class WorkReportCRUDController extends GenericForwardComposer implements
|
|||
listHead.setSizable(true);
|
||||
|
||||
// Add static headers
|
||||
Listheader listHeadResource = new Listheader(RESOURCE);
|
||||
Listheader listHeadResource = new Listheader(_("Resource"));
|
||||
listHead.appendChild(listHeadResource);
|
||||
Listheader listHeadCode = new Listheader(CODE);
|
||||
Listheader listHeadCode = new Listheader(_("Code"));
|
||||
listHead.appendChild(listHeadCode);
|
||||
Listheader listHeadNumHours = new Listheader(NUM_HOURS);
|
||||
Listheader listHeadNumHours = new Listheader(_("Hours"));
|
||||
listHead.appendChild(listHeadNumHours);
|
||||
|
||||
// Add dynamic headers
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
<?taglib uri="/WEB-INF/tld/i18n.tld" prefix="i18n" ?>
|
||||
|
||||
<window id="${arg.top_id}" title="${arg.title}" border="normal">
|
||||
|
||||
<vbox>
|
||||
|
|
@ -24,10 +26,10 @@
|
|||
</hbox>
|
||||
|
||||
<hbox>
|
||||
<button label="Añadir"
|
||||
<button label="${i18n:_('Add')}"
|
||||
onClick="controller.addWorkReportLine(workReportLines);"
|
||||
style="margin-top: -30px; margin-left: 300px" />
|
||||
<button label="Borrar"
|
||||
<button label="${i18n:_('Delete')}"
|
||||
onClick="controller.deleteWorkReportLine(workReportLines);"
|
||||
style="margin-top: -30px; margin-left: 2px" />
|
||||
</hbox>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue