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:
parent
57096696ac
commit
55268c43b4
|
@ -178,6 +178,11 @@ public class ManageProductWidget extends Composite{
|
||||||
|
|
||||||
List<GRSFStatus> statusToShow = new ArrayList<GRSFStatus>(STATUS);
|
List<GRSFStatus> statusToShow = new ArrayList<GRSFStatus>(STATUS);
|
||||||
statusToShow.remove(bean.getCurrentStatus());
|
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.addItem("Select the new status");
|
||||||
listBoxStatus.getElement().<SelectElement>cast().getOptions().getItem(0).setDisabled(true);
|
listBoxStatus.getElement().<SelectElement>cast().getOptions().getItem(0).setDisabled(true);
|
||||||
for (GRSFStatus availableStatus : statusToShow) {
|
for (GRSFStatus availableStatus : statusToShow) {
|
||||||
|
|
|
@ -72,7 +72,7 @@
|
||||||
<b>Source(s):</b>
|
<b>Source(s):</b>
|
||||||
</b:ControlLabel>
|
</b:ControlLabel>
|
||||||
<b:Controls>
|
<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>
|
title="Sources" readOnly="true" ui:field="sources"></b:TextBox>
|
||||||
</b:Controls>
|
</b:Controls>
|
||||||
</b:ControlGroup>
|
</b:ControlGroup>
|
||||||
|
@ -94,14 +94,14 @@
|
||||||
</b:ControlLabel>
|
</b:ControlLabel>
|
||||||
<b:Controls>
|
<b:Controls>
|
||||||
<b:TextBox b:id="currentStatus" alternateSize="LARGE"
|
<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">
|
ui:field="currentStatus">
|
||||||
</b:TextBox>
|
</b:TextBox>
|
||||||
</b:Controls>
|
</b:Controls>
|
||||||
</b:ControlGroup>
|
</b:ControlGroup>
|
||||||
|
|
||||||
<b:ControlGroup ui:field="listBoxStatusGroup">
|
<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>New Status:</b>
|
||||||
</b:ControlLabel>
|
</b:ControlLabel>
|
||||||
<b:Controls>
|
<b:Controls>
|
||||||
|
|
Loading…
Reference in New Issue