181 lines
5.6 KiB
XML
181 lines
5.6 KiB
XML
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
|
|
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
|
|
xmlns:g="urn:import:com.google.gwt.user.client.ui"
|
|
xmlns:b="urn:import:com.github.gwtbootstrap.client.ui"
|
|
xmlns:m="urn:import:org.gcube.portlets.widgets.mpformbuilder.client.ui.tags"
|
|
xmlns:f="urn:import:org.gcube.portlets.widgets.mpformbuilder.client.ui.upload"
|
|
xmlns:u="urn:import:org.gcube.portlets.widgets.mpformbuilder.client.ui.utils">
|
|
<ui:style>
|
|
.form-main-style {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.fieldset-border-style {
|
|
border: 1px groove #444;
|
|
-webkit-box-shadow: 0px 0px 0px 0px #000;
|
|
box-shadow: 0px 0px 0px 0px #000;
|
|
padding: 10px;
|
|
}
|
|
|
|
.legend-style {
|
|
width: auto;
|
|
padding: 10px;
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
@external .form-horizontal .input-large;
|
|
.form-horizontal .input-large .input-prepend {
|
|
width: 95%;
|
|
}
|
|
|
|
.block-alert-style {
|
|
margin-top: 10px;
|
|
padding: 10px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.tagsPanelStyle {
|
|
display: inline-block;
|
|
}
|
|
|
|
.selected-profile {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.label-go-to-product {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.the-margin-left {
|
|
margin-left: 5px;
|
|
}
|
|
</ui:style>
|
|
<g:HTMLPanel ui:field="createDatasetMainPanel">
|
|
<b:Form type="HORIZONTAL" styleName="{style.form-main-style}"
|
|
ui:field="formFirstStep" visible="true">
|
|
|
|
<u:LoaderIcon ui:field="loaderProfiles" visible="false"></u:LoaderIcon>
|
|
|
|
<b:Fieldset styleName="{style.fieldset-border-style}">
|
|
<b:Legend styleName="{style.legend-style}">
|
|
Choose a Profile
|
|
<!-- <small> -->
|
|
<!-- <span style="color:red;">*</span> -->
|
|
<!-- is required -->
|
|
<!-- </small> -->
|
|
</b:Legend>
|
|
|
|
<!-- Alert blocks for info/errors -->
|
|
<b:AlertBlock type="INFO" close="false"
|
|
animation="true" visible="false" ui:field="infoBlock"
|
|
styleName="{style.block-alert-style}"></b:AlertBlock>
|
|
|
|
<b:ControlGroup ui:field="metadataTypesControlGroup">
|
|
<b:ControlLabel for="metadataTypes"
|
|
title="Item profile types">Profiles:</b:ControlLabel>
|
|
<b:Controls>
|
|
<b:ListBox b:id="metadataTypes" alternateSize="LARGE"
|
|
width="91%" title="The item type to be used"
|
|
ui:field="metadataTypeListbox">
|
|
<g:item enabled="true" title="None">none</g:item>
|
|
</b:ListBox>
|
|
<span style="float:right; width:5%; color: #aaaaaa;">
|
|
<b:Popover ui:field="popoverTypes" html="true"
|
|
animation="true" placement="LEFT">
|
|
<g:FocusPanel ui:field="focusPanelTypes">
|
|
<b:Icon type="INFO_SIGN" size="TWO_TIMES"
|
|
ui:field="infoIconTypes" />
|
|
</g:FocusPanel>
|
|
</b:Popover>
|
|
</span>
|
|
</b:Controls>
|
|
</b:ControlGroup>
|
|
|
|
<!-- TAGS Panel -->
|
|
<!-- <m:TagsPanel ui:field="tagsPanel"></m:TagsPanel> -->
|
|
|
|
<f:FileUpload ui:field="dialogUpload"></f:FileUpload>
|
|
|
|
<!-- Alert block on continue -->
|
|
<b:AlertBlock type="INFO" close="false"
|
|
animation="true" visible="false" ui:field="onContinueAlertBlock">
|
|
</b:AlertBlock>
|
|
|
|
<!-- <b:Button title="Continue" ui:field="continueButton" type="PRIMARY" -->
|
|
<!-- block="true">Continue</b:Button> -->
|
|
<!-- <b:Button title="Reset" ui:field="resetButton" block="true">Reset</b:Button> -->
|
|
|
|
</b:Fieldset>
|
|
</b:Form>
|
|
|
|
<u:LoaderIcon ui:field="loaderProfileInformation"
|
|
visible="false"></u:LoaderIcon>
|
|
|
|
<b:Form type="HORIZONTAL" styleName="{style.form-main-style}"
|
|
ui:field="formThirdStep" visible="false">
|
|
<b:Fieldset styleName="{style.fieldset-border-style}">
|
|
<b:Legend styleName="{style.legend-style}">
|
|
Insert Item Profile Information
|
|
<small>
|
|
<span style="color:red;">*</span>
|
|
is required
|
|
</small>
|
|
</b:Legend>
|
|
|
|
<b:Paragraph ui:field="selectedProfile"
|
|
styleName="{style.selected-profile}"></b:Paragraph>
|
|
|
|
<!-- Here will be placed the metadata fields formats -->
|
|
<g:VerticalPanel ui:field="metadataFieldsPanel"
|
|
visible="false" width="100%"></g:VerticalPanel>
|
|
|
|
<!-- Custom fields can be dinamically added -->
|
|
<b:ControlGroup ui:field="customFields">
|
|
<b:ControlLabel>Custom Field(s):</b:ControlLabel>
|
|
</b:ControlGroup>
|
|
|
|
<b:ControlGroup>
|
|
<b:Controls>
|
|
<span style="float:right; width:5%; color: #aaaaaa;">
|
|
<b:Popover ui:field="popoverCustomFields" html="true"
|
|
animation="true" placement="LEFT">
|
|
<g:FocusPanel ui:field="focusPanelCustomFields">
|
|
<b:Icon type="INFO_SIGN" size="TWO_TIMES"
|
|
ui:field="infoIconCustomFields" />
|
|
</g:FocusPanel>
|
|
</b:Popover>
|
|
</span>
|
|
<b:Button icon="PLUS_SIGN" title="Add Custom Field"
|
|
ui:field="addCustomFieldButton"></b:Button>
|
|
</b:Controls>
|
|
</b:ControlGroup>
|
|
|
|
<!-- Alert block on create -->
|
|
<b:AlertBlock type="INFO" close="false"
|
|
animation="true" visible="false" ui:field="onCreateAlertBlock"
|
|
styleName="{style.block-alert-style}">
|
|
</b:AlertBlock>
|
|
|
|
<!-- <g:HorizontalPanel ui:field="goToDatasetButtonPanel" visible="false"> -->
|
|
<!-- <g:Label>Go to the Item</g:Label> -->
|
|
<!-- <b:Button title="Go to the Item" ui:field="goToDatasetButton" -->
|
|
<!-- type="LINK" visible="false" styleName="{style.the-margin-left}"></b:Button> -->
|
|
<!-- </g:HorizontalPanel> -->
|
|
|
|
<!-- <b:Button title="Add resources to the just created item" -->
|
|
<!-- block="true" type="PRIMARY" visible="false" ui:field="addResourcesButton">Add
|
|
Resources</b:Button> -->
|
|
|
|
<b:Button title="Create Item" ui:field="createButton"
|
|
type="PRIMARY" block="true">Create</b:Button>
|
|
|
|
<!-- <b:Button title="Go Back" ui:field="goBackButtonSecondStep" -->
|
|
<!-- block="true">Go -->
|
|
<!-- Back</b:Button> -->
|
|
|
|
</b:Fieldset>
|
|
</b:Form>
|
|
</g:HTMLPanel>
|
|
</ui:UiBinder> |