124 lines
3.2 KiB
XML
124 lines
3.2 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: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;
|
||
|
}
|
||
|
|
||
|
.info-markdown {
|
||
|
width: 95%;
|
||
|
background-color: #ebebeb;
|
||
|
border-bottom: 1px thin;
|
||
|
border-left: 1px thin;
|
||
|
border-right: 1px thin;
|
||
|
padding: 3px;
|
||
|
}
|
||
|
</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"
|
||
|
b:id="url" title="Dataset title" ui:field="resourceUrlTextBox" />
|
||
|
</b:Controls>
|
||
|
</b:ControlGroup>
|
||
|
|
||
|
<b:ControlGroup>
|
||
|
<b:ControlLabel for="name" title="Resource name">
|
||
|
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:Paragraph styleName="{style.info-markdown}">
|
||
|
You can use
|
||
|
<b:Popover html="true"
|
||
|
text="__Bold text__ or _italic text_
|
||
|
# title
|
||
|
## secondary title
|
||
|
### etc
|
||
|
|
||
|
* list
|
||
|
* of
|
||
|
* items
|
||
|
|
||
|
http://auto.link.ed/
|
||
|
|
||
|
Please note: HTML tags are stripped out for security reasons"
|
||
|
heading="Markdown short guide">
|
||
|
<b:Button type="LINK">Markdown formatting</b:Button>
|
||
|
</b:Popover>
|
||
|
</b:Paragraph>
|
||
|
</b:Controls>
|
||
|
</b:ControlGroup>
|
||
|
|
||
|
<!-- Alert blocks for info/errors -->
|
||
|
<b:AlertBlock type="INFO" animation="true" visible="false"
|
||
|
ui:field="infoBlock" styleName="{style.block-alert-style}"></b:AlertBlock>
|
||
|
|
||
|
<!-- Add resource button -->
|
||
|
<b:Button title="Add resource" ui:field="addResourceButton" >Add</b:Button>
|
||
|
|
||
|
</b:Fieldset>
|
||
|
</b:Form>
|
||
|
</g:HTMLPanel>
|
||
|
</ui:UiBinder>
|