2016-05-26 18:12:53 +02:00
|
|
|
<!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">
|
|
|
|
<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 {
|
|
|
|
width: 95%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.block-alert-style {
|
|
|
|
margin-top: 10px;
|
|
|
|
padding: 10px;
|
2016-05-27 19:08:03 +02:00
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tagsPanelStyle {
|
|
|
|
display: inline-block;
|
2016-05-26 18:12:53 +02:00
|
|
|
}
|
2016-06-09 18:58:19 +02:00
|
|
|
|
|
|
|
.selected-profile {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2016-05-26 18:12:53 +02:00
|
|
|
</ui:style>
|
2016-06-10 12:10:18 +02:00
|
|
|
<g:HTMLPanel ui:field="createDatasetMainPanel">
|
2016-05-26 18:12:53 +02:00
|
|
|
<b:Form type="HORIZONTAL" styleName="{style.form-main-style}"
|
2016-06-09 18:58:19 +02:00
|
|
|
ui:field="formFirstStep" visible="true">
|
2016-05-26 18:12:53 +02:00
|
|
|
<b:Fieldset styleName="{style.fieldset-border-style}">
|
|
|
|
|
|
|
|
<b:Legend styleName="{style.legend-style}">
|
2016-06-22 16:27:55 +02:00
|
|
|
Insert Product Information
|
2016-05-27 19:08:03 +02:00
|
|
|
<small>
|
|
|
|
<span style="color:red;">*</span>
|
|
|
|
is required
|
|
|
|
</small>
|
2016-05-26 18:12:53 +02:00
|
|
|
</b:Legend>
|
|
|
|
|
2016-05-27 19:08:03 +02:00
|
|
|
<!-- 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>
|
|
|
|
|
2016-05-26 18:12:53 +02:00
|
|
|
<b:ControlGroup>
|
2016-06-26 22:11:41 +02:00
|
|
|
<b:ControlLabel for="title" title="Product title">
|
2016-05-26 18:12:53 +02:00
|
|
|
<font color="red">*</font>
|
|
|
|
Title :
|
|
|
|
</b:ControlLabel>
|
|
|
|
<b:Controls>
|
2016-06-26 22:11:41 +02:00
|
|
|
<b:TextBox alternateSize="LARGE" placeholder="Product title"
|
|
|
|
b:id="title" title="Product title" ui:field="titleTextBox" />
|
2016-05-26 18:12:53 +02:00
|
|
|
</b:Controls>
|
|
|
|
</b:ControlGroup>
|
|
|
|
|
|
|
|
<b:ControlGroup>
|
2016-06-26 22:11:41 +02:00
|
|
|
<b:ControlLabel for="description" title="Product description">
|
2016-05-26 18:12:53 +02:00
|
|
|
Description:
|
|
|
|
</b:ControlLabel>
|
|
|
|
<b:Controls>
|
2016-06-26 22:11:41 +02:00
|
|
|
<b:TextArea placeholder="eg. Some useful notes about the product"
|
|
|
|
alternateSize="LARGE" b:id="description" title="Product description"
|
2016-05-26 18:12:53 +02:00
|
|
|
ui:field="descriptionTextarea"></b:TextArea>
|
|
|
|
</b:Controls>
|
|
|
|
</b:ControlGroup>
|
|
|
|
|
2016-05-27 19:08:03 +02:00
|
|
|
<!-- TAGS Panel -->
|
|
|
|
|
2016-05-26 18:12:53 +02:00
|
|
|
<b:ControlGroup>
|
2016-06-26 22:11:41 +02:00
|
|
|
<b:ControlLabel for="tags" title="Product tags">
|
2016-05-26 18:12:53 +02:00
|
|
|
Tags:
|
|
|
|
</b:ControlLabel>
|
|
|
|
<b:Controls>
|
2016-07-04 11:50:49 +02:00
|
|
|
<b:TextBox width="70%"
|
2016-06-26 22:11:41 +02:00
|
|
|
placeholder="Enter one or more tag for the product" b:id="tags"
|
2016-06-06 17:24:52 +02:00
|
|
|
ui:field="tagsEnterTextBox" />
|
2016-06-21 18:38:38 +02:00
|
|
|
<span style="float:right; width:256px; color: #aaaaaa;">
|
|
|
|
<b:Icon type="INFO_SIGN" size="TWO_TIMES" />
|
|
|
|
Tags are meaningful information that can be associated to the
|
2016-06-26 22:11:41 +02:00
|
|
|
product and by means of them
|
2016-06-21 18:38:38 +02:00
|
|
|
it can be retrieved. A tag cannot
|
|
|
|
contain white spaces and can contain only alphanumeric
|
|
|
|
characters.
|
|
|
|
It must be at least of two characters.
|
|
|
|
</span>
|
2016-05-27 19:08:03 +02:00
|
|
|
</b:Controls>
|
|
|
|
</b:ControlGroup>
|
|
|
|
|
|
|
|
<b:ControlGroup>
|
|
|
|
<b:Controls>
|
|
|
|
<g:FlowPanel ui:field="tagsPanel" styleName="{style.tagsPanelStyle}"></g:FlowPanel>
|
2016-05-26 18:12:53 +02:00
|
|
|
</b:Controls>
|
|
|
|
</b:ControlGroup>
|
|
|
|
|
|
|
|
<b:ControlGroup>
|
|
|
|
<b:ControlLabel for="licenses" title="License">License:</b:ControlLabel>
|
|
|
|
<b:Controls>
|
2016-06-26 22:11:41 +02:00
|
|
|
<b:ListBox b:id="licenses" title="Product license"
|
2016-06-13 18:08:13 +02:00
|
|
|
width="60%" ui:field="licenseListbox">
|
2016-05-26 18:12:53 +02:00
|
|
|
</b:ListBox>
|
|
|
|
<span style="float:right; width:256px; color: #aaaaaa;">
|
|
|
|
<b:Icon type="INFO_SIGN" size="TWO_TIMES" />
|
|
|
|
License definitions and additional information can be found at
|
|
|
|
<a href="http://opendefinition.org/licenses/">opendefinition.org</a>
|
|
|
|
</span>
|
|
|
|
</b:Controls>
|
|
|
|
</b:ControlGroup>
|
|
|
|
|
|
|
|
<b:ControlGroup>
|
|
|
|
<b:ControlLabel for="visibility" title="Visibility">Visibility:</b:ControlLabel>
|
|
|
|
<b:Controls>
|
2016-06-26 22:11:41 +02:00
|
|
|
<b:ListBox b:id="visibility" title="Product visibility"
|
2016-06-13 18:08:13 +02:00
|
|
|
width="60%" ui:field="visibilityListbox">
|
2016-05-27 19:08:03 +02:00
|
|
|
<g:item title="private">Private</g:item>
|
2016-05-26 18:12:53 +02:00
|
|
|
<g:item enabled="true" title="public">Public</g:item>
|
|
|
|
</b:ListBox>
|
|
|
|
<span style="float:right; width:256px; color: #aaaaaa;">
|
|
|
|
<b:Icon type="INFO_SIGN" size="TWO_TIMES" />
|
2016-06-26 22:11:41 +02:00
|
|
|
Private products can only be accessed by certain users, while
|
|
|
|
public products can be accessed by anyone.
|
2016-05-26 18:12:53 +02:00
|
|
|
</span>
|
|
|
|
</b:Controls>
|
|
|
|
</b:ControlGroup>
|
|
|
|
|
2016-06-06 17:24:52 +02:00
|
|
|
<b:ControlGroup>
|
|
|
|
<b:ControlLabel for="organization" title="Organizations">Publish in:</b:ControlLabel>
|
|
|
|
<b:Controls>
|
|
|
|
<b:ListBox b:id="organization" alternateSize="LARGE"
|
|
|
|
title="Publish in this organization" ui:field="organizationsListbox">
|
|
|
|
</b:ListBox>
|
|
|
|
</b:Controls>
|
|
|
|
</b:ControlGroup>
|
2016-05-26 18:12:53 +02:00
|
|
|
|
|
|
|
<b:ControlGroup>
|
2016-06-26 22:11:41 +02:00
|
|
|
<b:ControlLabel for="version" title="Product version">
|
2016-05-26 18:12:53 +02:00
|
|
|
Version:
|
|
|
|
</b:ControlLabel>
|
|
|
|
<b:Controls>
|
|
|
|
<b:TextBox alternateSize="LARGE" placeholder="1.0" b:id="version"
|
2016-06-26 22:11:41 +02:00
|
|
|
title="Product version" ui:field="versionTextbox" />
|
2016-05-26 18:12:53 +02:00
|
|
|
</b:Controls>
|
|
|
|
</b:ControlGroup>
|
|
|
|
|
|
|
|
<b:ControlGroup>
|
2016-06-26 22:11:41 +02:00
|
|
|
<b:ControlLabel for="author" title="Product author">
|
2016-05-27 19:08:03 +02:00
|
|
|
<font color="red">*</font>
|
2016-05-26 18:12:53 +02:00
|
|
|
Author:
|
|
|
|
</b:ControlLabel>
|
|
|
|
<b:Controls>
|
|
|
|
<b:TextBox alternateSize="LARGE" placeholder="Joe Bloggs"
|
2016-06-26 22:11:41 +02:00
|
|
|
enabled="false" b:id="author" title="Product author" ui:field="authorTextbox" />
|
2016-05-26 18:12:53 +02:00
|
|
|
</b:Controls>
|
|
|
|
</b:ControlGroup>
|
|
|
|
|
|
|
|
<b:ControlGroup>
|
2016-06-26 22:11:41 +02:00
|
|
|
<b:ControlLabel for="email" title="Product author's email">
|
2016-05-27 19:08:03 +02:00
|
|
|
<font color="red">*</font>
|
2016-05-26 18:12:53 +02:00
|
|
|
Author Email:
|
|
|
|
</b:ControlLabel>
|
|
|
|
<b:Controls>
|
|
|
|
<b:TextBox alternateSize="LARGE" placeholder="joe.bloggs@example.com"
|
2016-06-26 22:11:41 +02:00
|
|
|
enabled="false" b:id="email" title="Product author" ui:field="authorEmailTextbox" />
|
2016-05-26 18:12:53 +02:00
|
|
|
</b:Controls>
|
|
|
|
</b:ControlGroup>
|
|
|
|
|
|
|
|
<b:ControlGroup>
|
2016-06-26 22:11:41 +02:00
|
|
|
<b:ControlLabel for="maintainer" title="Product maintainer">
|
2016-05-26 18:12:53 +02:00
|
|
|
Maintainer:
|
|
|
|
</b:ControlLabel>
|
|
|
|
<b:Controls>
|
|
|
|
<b:TextBox alternateSize="LARGE" placeholder="Joe Bloggs"
|
2016-06-26 22:11:41 +02:00
|
|
|
b:id="maintainer" title="Product maintainer" ui:field="maintainerTextbox" />
|
2016-05-26 18:12:53 +02:00
|
|
|
</b:Controls>
|
|
|
|
</b:ControlGroup>
|
|
|
|
|
|
|
|
<b:ControlGroup>
|
2016-06-26 22:11:41 +02:00
|
|
|
<b:ControlLabel for="emailMaintaner" title="Product author's email">
|
2016-05-26 18:12:53 +02:00
|
|
|
Maintainer Email:
|
|
|
|
</b:ControlLabel>
|
|
|
|
<b:Controls>
|
|
|
|
<b:TextBox alternateSize="LARGE" placeholder="maintainer@example.com"
|
2016-06-26 22:11:41 +02:00
|
|
|
b:id="emailMaintaner" title="Product author" ui:field="maintainerEmailTextbox" />
|
2016-05-26 18:12:53 +02:00
|
|
|
</b:Controls>
|
|
|
|
</b:ControlGroup>
|
|
|
|
|
2016-06-08 18:31:54 +02:00
|
|
|
<b:ControlGroup>
|
2016-06-26 22:11:41 +02:00
|
|
|
<b:ControlLabel for="metadataProfilesFormat" title="Product profile formats">Product
|
2016-06-09 18:58:19 +02:00
|
|
|
Profile:</b:ControlLabel>
|
2016-06-08 18:31:54 +02:00
|
|
|
<b:Controls>
|
2016-06-09 18:58:19 +02:00
|
|
|
<b:ListBox b:id="metadataProfilesFormat" alternateSize="LARGE"
|
2016-06-26 22:11:41 +02:00
|
|
|
title="The product profile format to be used" ui:field="metadataProfilesFormatListbox">
|
2016-06-09 18:58:19 +02:00
|
|
|
<g:item enabled="true" title="None">none</g:item>
|
2016-06-08 18:31:54 +02:00
|
|
|
</b:ListBox>
|
|
|
|
</b:Controls>
|
|
|
|
</b:ControlGroup>
|
|
|
|
|
2016-06-09 18:58:19 +02:00
|
|
|
<!-- Alert block on continue -->
|
|
|
|
<b:AlertBlock type="INFO" close="false" animation="true"
|
|
|
|
visible="false" ui:field="onContinueAlertBlock" styleName="{style.block-alert-style}">
|
|
|
|
</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>
|
|
|
|
|
|
|
|
<b:Form type="HORIZONTAL" styleName="{style.form-main-style}"
|
|
|
|
ui:field="formSecondStep" visible="false">
|
|
|
|
<b:Fieldset styleName="{style.fieldset-border-style}">
|
|
|
|
|
|
|
|
<b:Legend styleName="{style.legend-style}">
|
2016-06-22 16:27:55 +02:00
|
|
|
Insert Product Profile Information
|
2016-06-09 18:58:19 +02:00
|
|
|
<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>
|
2016-06-08 18:31:54 +02:00
|
|
|
|
2016-05-26 18:12:53 +02:00
|
|
|
<!-- Custom fields can be dinamically added -->
|
|
|
|
<b:ControlGroup ui:field="customFields">
|
2016-05-27 19:08:03 +02:00
|
|
|
<b:ControlLabel>Custom Field(s):</b:ControlLabel>
|
2016-05-26 18:12:53 +02:00
|
|
|
</b:ControlGroup>
|
|
|
|
|
|
|
|
<b:ControlGroup>
|
|
|
|
<b:Controls>
|
2016-05-27 19:08:03 +02:00
|
|
|
<span style="float:right; width:256px; color: #aaaaaa;">
|
|
|
|
<b:Icon type="INFO_SIGN" size="TWO_TIMES" />
|
|
|
|
Custom fields are customable metadata that will be added to the
|
2016-06-26 22:11:41 +02:00
|
|
|
product.
|
2016-05-27 19:08:03 +02:00
|
|
|
You have to choose a unique key for the field and a value
|
|
|
|
for this. You
|
2016-06-08 18:31:54 +02:00
|
|
|
can remove them at any time until you create the
|
2016-06-26 22:11:41 +02:00
|
|
|
product.
|
2016-05-27 19:08:03 +02:00
|
|
|
</span>
|
2016-05-26 18:12:53 +02:00
|
|
|
<b:Button icon="PLUS_SIGN" title="Add Custom Field"
|
|
|
|
ui:field="addCustomFieldButton"></b:Button>
|
|
|
|
</b:Controls>
|
|
|
|
</b:ControlGroup>
|
|
|
|
|
2016-06-10 12:10:18 +02:00
|
|
|
<b:ControlGroup ui:field="resourcesControlGroup"
|
|
|
|
visible="false">
|
2016-06-06 17:24:52 +02:00
|
|
|
<b:Controls>
|
|
|
|
<b:CheckBox
|
2016-06-26 22:11:41 +02:00
|
|
|
title="Automatically add the folder content to the product as resource"
|
2016-06-06 17:24:52 +02:00
|
|
|
checked="true" ui:field="addResourcesCheckBox">
|
|
|
|
<b>Add folder content as resources</b>
|
|
|
|
</b:CheckBox>
|
|
|
|
<span style="float:right; width:256px; color: #aaaaaa;">
|
|
|
|
<b:Icon type="INFO_SIGN" size="TWO_TIMES" />
|
2016-06-26 22:11:41 +02:00
|
|
|
Automatically add folder content as resources of the product
|
2016-06-06 17:24:52 +02:00
|
|
|
</span>
|
|
|
|
</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>
|
2016-06-08 18:31:54 +02:00
|
|
|
|
2016-06-26 22:11:41 +02:00
|
|
|
<b:Button title="Add resources to the just created product"
|
2016-06-10 12:10:18 +02:00
|
|
|
block="true" type="PRIMARY" visible="false" ui:field="addResourcesButton">Add Resources</b:Button>
|
2016-05-26 18:12:53 +02:00
|
|
|
|
2016-06-26 22:11:41 +02:00
|
|
|
<b:Button title="Create product" ui:field="createButton"
|
2016-05-26 18:12:53 +02:00
|
|
|
type="PRIMARY" block="true">Create</b:Button>
|
2016-06-09 18:58:19 +02:00
|
|
|
<b:Button title="Go Back" ui:field="goBackButton" block="true">Go
|
|
|
|
Back</b:Button>
|
2016-05-26 18:12:53 +02:00
|
|
|
|
2016-06-26 22:11:41 +02:00
|
|
|
<b:Button title="Go to product" ui:field="goToDatasetButton"
|
|
|
|
block="true" visible="false">Go to Product</b:Button>
|
2016-06-10 12:10:18 +02:00
|
|
|
|
2016-05-26 18:12:53 +02:00
|
|
|
</b:Fieldset>
|
|
|
|
</b:Form>
|
|
|
|
</g:HTMLPanel>
|
|
|
|
</ui:UiBinder>
|