minor changes

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/widgets/grsf-manage-widget@152419 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2017-08-02 12:16:50 +00:00
parent 57096696ac
commit 55268c43b4
2 changed files with 8 additions and 3 deletions

View File

@ -178,6 +178,11 @@ public class ManageProductWidget extends Composite{
List<GRSFStatus> statusToShow = new ArrayList<GRSFStatus>(STATUS);
statusToShow.remove(bean.getCurrentStatus());
// if the record isn't approved, then remove also archived
if(!bean.getCurrentStatus().equals(GRSFStatus.Approved))
statusToShow.remove(GRSFStatus.Archived);
listBoxStatus.addItem("Select the new status");
listBoxStatus.getElement().<SelectElement>cast().getOptions().getItem(0).setDisabled(true);
for (GRSFStatus availableStatus : statusToShow) {

View File

@ -72,7 +72,7 @@
<b>Source(s):</b>
</b:ControlLabel>
<b:Controls>
<b:TextBox b:id="sources" alternateSize="LARGE" width="97%"
<b:TextBox b:id="sources" alternateSize="LARGE" width="97%" placeholder="Sources of the GRSF record"
title="Sources" readOnly="true" ui:field="sources"></b:TextBox>
</b:Controls>
</b:ControlGroup>
@ -94,14 +94,14 @@
</b:ControlLabel>
<b:Controls>
<b:TextBox b:id="currentStatus" alternateSize="LARGE"
readOnly="true" width="97%" title="The current status of this Item"
readOnly="true" width="97%" title="The current status of this record"
ui:field="currentStatus">
</b:TextBox>
</b:Controls>
</b:ControlGroup>
<b:ControlGroup ui:field="listBoxStatusGroup">
<b:ControlLabel for="listboxStatus" title="The new status of this Item">
<b:ControlLabel for="listboxStatus" title="The new status of this record">
<b>New Status:</b>
</b:ControlLabel>
<b:Controls>