css fixes
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/catalogue-sharing-widget@146520 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
87869bc296
commit
525eb6b3c9
|
@ -4,6 +4,7 @@ import org.gcube.portlets_widgets.catalogue_sharing_widget.shared.ItemUrls;
|
|||
|
||||
import com.github.gwtbootstrap.client.ui.AlertBlock;
|
||||
import com.github.gwtbootstrap.client.ui.Form;
|
||||
import com.github.gwtbootstrap.client.ui.Icon;
|
||||
import com.github.gwtbootstrap.client.ui.Modal;
|
||||
import com.github.gwtbootstrap.client.ui.TextBox;
|
||||
import com.github.gwtbootstrap.client.ui.Well;
|
||||
|
@ -28,7 +29,10 @@ public class ShareCatalogueWidget extends Composite {
|
|||
public static final String SERVICE_UNAVAILABLE = "The service is currently unavailable, retry later";
|
||||
|
||||
@UiField
|
||||
Well loadingIcon;
|
||||
Well loadingIconWell;
|
||||
|
||||
@UiField
|
||||
Icon loadingIcon;
|
||||
|
||||
@UiField
|
||||
AlertBlock errorBlock;
|
||||
|
@ -88,7 +92,7 @@ public class ShareCatalogueWidget extends Composite {
|
|||
|
||||
private void onError(String msg) {
|
||||
|
||||
loadingIcon.setVisible(false);
|
||||
loadingIconWell.setVisible(false);
|
||||
formWithInformation.setVisible(false);
|
||||
errorBlock.setText(SERVICE_UNAVAILABLE + (msg == null ? "" : "(" + msg + ")"));
|
||||
errorBlock.setVisible(true);
|
||||
|
|
|
@ -4,44 +4,57 @@
|
|||
<g:HTMLPanel>
|
||||
<b:Modal ui:field="modalShareLink" title="Item's information"
|
||||
backdrop="STATIC" keyboard="true" animation="true">
|
||||
<g:VerticalPanel>
|
||||
<b:Well size="LARGE" visible="true" ui:field="loadingIcon">
|
||||
<b:Icon type="COG" size="FOUR_TIMES" spin="true" />
|
||||
<g:VerticalPanel width="100%">
|
||||
|
||||
<b:Well size="LARGE" visible="true" ui:field="loadingIconWell" width="100%">
|
||||
<b:Icon type="COG" size="FOUR_TIMES" spin="true" ui:field="loadingIcon" />
|
||||
</b:Well>
|
||||
|
||||
<!-- Alert blocks for info/errors -->
|
||||
<b:AlertBlock type="ERROR" close="false" animation="true"
|
||||
visible="false" ui:field="errorBlock"></b:AlertBlock>
|
||||
visible="false" ui:field="errorBlock" width="100%"></b:AlertBlock>
|
||||
|
||||
<b:Form type="VERTICAL" ui:field="formWithInformation"
|
||||
visible="false">
|
||||
visible="false" width="100%">
|
||||
<b:Fieldset>
|
||||
<b:ControlGroup>
|
||||
<b:ControlLabel for="input01">Item's title:</b:ControlLabel>
|
||||
<b:ControlLabel for="input01">
|
||||
<b>Item's title:</b>
|
||||
</b:ControlLabel>
|
||||
<b:Controls>
|
||||
<b:TextBox alternateSize="XLARGE" b:id="input01"
|
||||
placeholder="Item's title" readOnly="true" ui:field="itemTitle"></b:TextBox>
|
||||
width="98%" placeholder="Item's title" readOnly="true"
|
||||
ui:field="itemTitle"></b:TextBox>
|
||||
</b:Controls>
|
||||
</b:ControlGroup>
|
||||
<b:ControlGroup>
|
||||
<b:ControlLabel for="input04">Item's name:</b:ControlLabel>
|
||||
<b:ControlLabel for="input04">
|
||||
<b>Item's name:</b>
|
||||
</b:ControlLabel>
|
||||
<b:Controls>
|
||||
<b:TextBox alternateSize="XLARGE" b:id="input04"
|
||||
placeholder="Item's title" readOnly="true" ui:field="itemName"></b:TextBox>
|
||||
width="98%" placeholder="Item's title" readOnly="true"
|
||||
ui:field="itemName"></b:TextBox>
|
||||
</b:Controls>
|
||||
</b:ControlGroup>
|
||||
<b:ControlGroup>
|
||||
<b:ControlLabel for="input02">Item's url:</b:ControlLabel>
|
||||
<b:ControlLabel for="input02">
|
||||
<b>Item's url:</b>
|
||||
</b:ControlLabel>
|
||||
<b:Controls>
|
||||
<b:TextBox alternateSize="XLARGE" b:id="input02"
|
||||
placeholder="Item's long url" readOnly="true" ui:field="itemLongUrl"></b:TextBox>
|
||||
width="98%" placeholder="Item's long url" readOnly="true"
|
||||
ui:field="itemLongUrl"></b:TextBox>
|
||||
</b:Controls>
|
||||
</b:ControlGroup>
|
||||
<b:ControlGroup>
|
||||
<b:ControlLabel for="input03">Item's short url:</b:ControlLabel>
|
||||
<b:ControlLabel for="input03">
|
||||
<b>Item's short url:</b>
|
||||
</b:ControlLabel>
|
||||
<b:Controls>
|
||||
<b:TextBox alternateSize="XLARGE" b:id="input03"
|
||||
placeholder="Item's short url" readOnly="true" ui:field="itemShortUrl"></b:TextBox>
|
||||
width="98%" placeholder="Item's short url" readOnly="true"
|
||||
ui:field="itemShortUrl"></b:TextBox>
|
||||
</b:Controls>
|
||||
</b:ControlGroup>
|
||||
</b:Fieldset>
|
||||
|
|
Loading…
Reference in New Issue