Improved Intro Page

This commit is contained in:
Francesco Mangiacrapa 2022-03-04 17:09:46 +01:00
parent 11f751e96c
commit 53114d699f
4 changed files with 23 additions and 3 deletions

View File

@ -25,6 +25,8 @@ import org.gcube.portlets.user.geoportaldataentry.client.ui.utils.LoaderIcon;
import com.github.gwtbootstrap.client.ui.Alert; import com.github.gwtbootstrap.client.ui.Alert;
import com.github.gwtbootstrap.client.ui.Button; import com.github.gwtbootstrap.client.ui.Button;
import com.github.gwtbootstrap.client.ui.Dropdown; import com.github.gwtbootstrap.client.ui.Dropdown;
import com.github.gwtbootstrap.client.ui.Heading;
import com.github.gwtbootstrap.client.ui.Hero;
import com.github.gwtbootstrap.client.ui.NavLink; import com.github.gwtbootstrap.client.ui.NavLink;
import com.github.gwtbootstrap.client.ui.PageHeader; import com.github.gwtbootstrap.client.ui.PageHeader;
import com.github.gwtbootstrap.client.ui.Tab; import com.github.gwtbootstrap.client.ui.Tab;
@ -148,6 +150,9 @@ public class GeonaMainTabPanel extends Composite {
@UiField @UiField
PageHeader pageHeaderDataEntry; PageHeader pageHeaderDataEntry;
@UiField
Hero introGNAHero;
private HandlerManager appManagerBus; private HandlerManager appManagerBus;
@ -532,6 +537,8 @@ public class GeonaMainTabPanel extends Composite {
} }
public void setPageHeader(DocumentConfigDV dcDV) { public void setPageHeader(DocumentConfigDV dcDV) {
introGNAHero.setVisible(false);
this.pageHeaderDataEntry.setVisible(true);
this.pageHeaderDataEntry.setText(""); this.pageHeaderDataEntry.setText("");
this.pageHeaderDataEntry.setSubtext("New: "+dcDV.getItemType()); this.pageHeaderDataEntry.setSubtext("New: "+dcDV.getItemType());
} }

View File

@ -36,6 +36,10 @@
float: right; float: right;
} }
.align-center {
text-align: center;
}
.max-height-300 { .max-height-300 {
max-height: auto; max-height: auto;
} }
@ -71,7 +75,17 @@
<div id="topPage"></div> <div id="topPage"></div>
<a href="#bottomPage">Go to bottom</a> <a href="#bottomPage">Go to bottom</a>
</g:HTMLPanel> </g:HTMLPanel>
<b:PageHeader subtext='select "Create New Project"' ui:field="pageHeaderDataEntry">Welcome to GNA Data Entry</b:PageHeader>
<g:HTMLPanel ui:field="introGNA">
<b:Hero ui:field="introGNAHero">
<b:Heading size="2">Welcome
to GNA Data Entry</b:Heading>
<b:Paragraph>select "Create New Project"</b:Paragraph>
</b:Hero>
<b:PageHeader subtext=" "
ui:field="pageHeaderDataEntry" visible="false"> </b:PageHeader>
</g:HTMLPanel>
<r:LoaderIcon ui:field="loader"></r:LoaderIcon> <r:LoaderIcon ui:field="loader"></r:LoaderIcon>
<g:HTMLPanel ui:field="geonaMainFormPanel"> <g:HTMLPanel ui:field="geonaMainFormPanel">
</g:HTMLPanel> </g:HTMLPanel>

View File

@ -205,7 +205,7 @@ public class MetadataFormCard {
tabContainer.remove(buttonRemoveLatestForm); tabContainer.remove(buttonRemoveLatestForm);
AlertClosable alertCloasable = new AlertClosable(); AlertClosable alertCloasable = new AlertClosable();
alertCloasable.setHTML("Data Entry form removed"); alertCloasable.setHTML("Data Entry form removed!");
alertCloasable.setAnimation(true); alertCloasable.setAnimation(true);
alertCloasable.setType(AlertType.DEFAULT); alertCloasable.setType(AlertType.DEFAULT);
alertCloasable.setClose(true); alertCloasable.setClose(true);

View File

@ -14,6 +14,5 @@
<b:FormActions ui:field="formActions" visible="false"> <b:FormActions ui:field="formActions" visible="false">
<b:Button type="PRIMARY" icon="SAVE" ui:field="buttonSave">Save</b:Button> <b:Button type="PRIMARY" icon="SAVE" ui:field="buttonSave">Save</b:Button>
</b:FormActions> </b:FormActions>
<!-- </b:AlertBlock> -->
</g:HTMLPanel> </g:HTMLPanel>
</ui:UiBinder> </ui:UiBinder>