2016-06-07 17:50:33 +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:b="urn:import:com.github.gwtbootstrap.client.ui" xmlns:g="urn:import:com.google.gwt.user.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;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tagsPanelStyle {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.add-resource-button {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
</ui:style>
|
|
|
|
<g:HTMLPanel>
|
|
|
|
<b:Form type="HORIZONTAL" styleName="{style.form-main-style}"
|
|
|
|
ui:field="form">
|
|
|
|
<b:Fieldset styleName="{style.fieldset-border-style}">
|
|
|
|
|
|
|
|
<b:Legend styleName="{style.legend-style}">
|
|
|
|
Add Resource
|
|
|
|
<small>
|
|
|
|
<span style="color:red;">*</span>
|
|
|
|
is required
|
|
|
|
</small>
|
|
|
|
</b:Legend>
|
|
|
|
|
|
|
|
<b:ControlGroup>
|
|
|
|
<b:ControlLabel for="url" title="File url">
|
|
|
|
<font color="red">*</font>
|
|
|
|
URL:
|
|
|
|
</b:ControlLabel>
|
|
|
|
<b:Controls>
|
|
|
|
<b:TextBox alternateSize="LARGE" placeholder="http://example.com/image.jpg"
|
2016-06-26 22:11:41 +02:00
|
|
|
b:id="url" title="Product's title" ui:field="resourceUrlTextBox" />
|
2016-06-07 17:50:33 +02:00
|
|
|
</b:Controls>
|
|
|
|
</b:ControlGroup>
|
|
|
|
|
|
|
|
<b:ControlGroup>
|
|
|
|
<b:ControlLabel for="name" title="Resource name">
|
2016-06-08 18:31:54 +02:00
|
|
|
<font color="red">*</font>
|
2016-06-07 17:50:33 +02:00
|
|
|
Name:
|
|
|
|
</b:ControlLabel>
|
|
|
|
<b:Controls>
|
|
|
|
<b:TextBox alternateSize="LARGE" placeholder="my-image"
|
|
|
|
b:id="name" title="Resource name" ui:field="resourceNameTextBox" />
|
|
|
|
</b:Controls>
|
|
|
|
</b:ControlGroup>
|
|
|
|
|
|
|
|
<b:ControlGroup>
|
|
|
|
<b:ControlLabel for="description" title="Resource description">
|
|
|
|
Description:
|
|
|
|
</b:ControlLabel>
|
|
|
|
<b:Controls>
|
|
|
|
<b:TextArea alternateSize="LARGE"
|
|
|
|
placeholder="Some useful notes about data" b:id="description"
|
|
|
|
title="Resource description" ui:field="resourceDescriptionTextArea" />
|
|
|
|
</b:Controls>
|
|
|
|
</b:ControlGroup>
|
|
|
|
|
|
|
|
<!-- Alert blocks for info/errors -->
|
2016-06-10 12:30:54 +02:00
|
|
|
<b:AlertBlock type="INFO" animation="true" visible="false"
|
|
|
|
close="false" ui:field="infoBlock" styleName="{style.block-alert-style}"></b:AlertBlock>
|
2016-06-07 17:50:33 +02:00
|
|
|
|
|
|
|
<!-- Add resource button -->
|
2016-06-08 18:31:54 +02:00
|
|
|
<b:Button title="Add resource" ui:field="addResourceButton"
|
|
|
|
type="PRIMARY">Add</b:Button>
|
2016-06-07 17:50:33 +02:00
|
|
|
|
|
|
|
</b:Fieldset>
|
|
|
|
</b:Form>
|
2016-06-10 12:30:54 +02:00
|
|
|
|
2016-10-22 17:51:43 +02:00
|
|
|
<b:Button title="Go to Product" ui:field="goToDatasetButton" type="LINK"
|
|
|
|
block="true" visible="true"></b:Button>
|
2016-06-07 17:50:33 +02:00
|
|
|
</g:HTMLPanel>
|
|
|
|
</ui:UiBinder>
|