ItEr52S13CUCreacionRecursosLimitantes: Added column isLimitedResource in workers list
This commit is contained in:
parent
fb7a89a892
commit
ce58b4273f
2 changed files with 10 additions and 1 deletions
|
|
@ -19,6 +19,9 @@
|
|||
*/
|
||||
|
||||
package org.navalplanner.business.resources.entities;
|
||||
|
||||
import static org.navalplanner.business.i18n.I18nHelper._;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
|
|
@ -1051,4 +1054,8 @@ public abstract class Resource extends IntegrationEntity {
|
|||
this.limitedResource = limitedResource;
|
||||
}
|
||||
|
||||
public String getLimitedResourceAsString() {
|
||||
return (Boolean.TRUE.equals(isLimitedResource())) ? _("yes") : _("no");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@
|
|||
<newdatasortablecolumn label="${i18n:_('Surname')}" sort="auto(surname)" />
|
||||
<newdatasortablecolumn label="${i18n:_('NIF')}" sort="auto(nif)" />
|
||||
<newdatasortablecolumn label="${i18n:_('Code')}"/>
|
||||
<newdatasortablecolumn label="${i18n:_('Limited resource')}" sort="auto(limitedResource)" />
|
||||
<newdatasortablecolumn label="${i18n:_('Operations')}" />
|
||||
</columns>
|
||||
<rows>
|
||||
|
|
@ -41,6 +42,7 @@
|
|||
<label value="@{worker.surname}" />
|
||||
<label value="@{worker.nif}" />
|
||||
<label value="@{worker.code}" />
|
||||
<label value="@{worker.limitedResourceAsString}" />
|
||||
<hbox>
|
||||
<button sclass="icono" image="/common/img/ico_editar1.png"
|
||||
hoverImage="/common/img/ico_editar.png"
|
||||
|
|
@ -55,4 +57,4 @@
|
|||
<button id="show_create_form" onClick="controller.goToCreateForm();"
|
||||
label="${i18n:_('Create')}" sclass="create-button global-action">
|
||||
</button>
|
||||
</window>
|
||||
</window>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue