minor fixes

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@133527 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-10-25 15:03:41 +00:00
parent 3bf7b03a4b
commit 18be286f8b
3 changed files with 26 additions and 5 deletions

View File

@ -56,6 +56,7 @@ import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.FocusPanel;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.gwt.user.client.ui.SimplePanel;
@ -103,6 +104,7 @@ public class CreateDatasetForm extends Composite{
@UiField Button goBackButtonSecondStep;
@UiField Paragraph selectedProfile;
@UiField Button goToDatasetButton;
@UiField FlowPanel goToDatasetButtonPanel;
@UiField Button addResourcesButton;
@UiField SimplePanel workspaceResourcesContainer;
@UiField Button continueThirdStep;
@ -804,6 +806,7 @@ public class CreateDatasetForm extends Composite{
// show the go to dataset button
final String datasetUrl = createdDatasetBean.getSource();
goToDatasetButtonPanel.setVisible(true);
goToDatasetButton.setVisible(true);
goToDatasetButton.setText(datasetUrl);
goToDatasetButton.addClickHandler(new ClickHandler() {

View File

@ -38,6 +38,12 @@
.selected-profile {
font-weight: bold;
}
.label-go-to-product {
display: inline-block;
vertical-align: middle;
font-weight: bold;
}
</ui:style>
<g:HTMLPanel ui:field="createDatasetMainPanel">
<b:Form type="HORIZONTAL" styleName="{style.form-main-style}"
@ -350,6 +356,12 @@
visible="false" ui:field="onCreateAlertBlock" styleName="{style.block-alert-style}">
</b:AlertBlock>
<g:FlowPanel ui:field="goToDatasetButtonPanel" visible="false">
<g:Label styleName="{style.label-go-to-product}">Go to product</g:Label>
<b:Button title="Go to product" ui:field="goToDatasetButton"
type="LINK" block="false" visible="false"></b:Button>
</g:FlowPanel>
<b:Button title="Add resources to the just created product"
block="true" type="PRIMARY" visible="false" ui:field="addResourcesButton">Add Resources</b:Button>
@ -360,9 +372,6 @@
block="true">Go
Back</b:Button>
<b:Button title="Go to product" ui:field="goToDatasetButton" type="LINK"
block="true" visible="false"></b:Button>
</b:Fieldset>
</b:Form>
</g:HTMLPanel>

View File

@ -37,6 +37,12 @@
.add-resource-button {
float: right;
}
.label-go-to-product {
display: inline-block;
vertical-align: middle;
font-weight: bold;
}
</ui:style>
<g:HTMLPanel>
<b:Form type="HORIZONTAL" styleName="{style.form-main-style}"
@ -95,7 +101,10 @@
</b:Fieldset>
</b:Form>
<b:Button title="Go to Product" ui:field="goToDatasetButton" type="LINK"
block="true" visible="true"></b:Button>
<g:FlowPanel>
<g:Label styleName="{style.label-go-to-product}">Go to product</g:Label>
<b:Button title="Go to Product" ui:field="goToDatasetButton"
type="LINK" visible="true"></b:Button>
</g:FlowPanel>
</g:HTMLPanel>
</ui:UiBinder>