forked from geonetwork/core-geonetwork
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
49 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 15 additions & 85 deletions
100
web-ui/src/main/resources/catalog/components/viewer/wmsimport/partials/wmsimport.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,91 +1,21 @@ | ||
<div class="modal-dialog gn-import-wms"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | ||
<h4 class="modal-title" id="myModalLabel">WMS Import</h4> | ||
</div> | ||
<div class="modal-body"> | ||
<form class="form-horizontal" role="form"> | ||
|
||
<!-- Service input and dropdown --> | ||
<div class="form-group"> | ||
<div class="col-sm-10"> | ||
<div class="input-group dropdown"> | ||
<div class="layerTree collapsed"> | ||
<form role="form"> | ||
<div class="form-group"> | ||
<div class="input-group dropdown"> | ||
<span class="input-group-addon"> | ||
<i class="fa fa-globe"/> | ||
</span> | ||
<input class="form-control" type="text" data-toggle="dropdown" data-ng-model="params.url" | ||
data-ng-change="load(params.url)" placeholder="{{'serviceUrl' | translate}}"/> | ||
<ul class="dropdown-menu" role="menu"> | ||
<li data-ng-repeat="srv in servicesList"> | ||
<a href="" data-ng-click="params.url = srv;load(srv)"> | ||
{{srv}} | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</form> | ||
|
||
<!--Filter--> | ||
<div class="input-group gn-import-wms-filter"> | ||
<span class="input-group-addon"> | ||
<i class="fa fa-search"/> | ||
</span> | ||
<input class="form-control input-sm" type="text" data-toggle="dropdown" data-ng-model="searchFilter" | ||
placeholder="{{'search' | translate}}"/> | ||
</div> | ||
|
||
<div class="gn-import-wms-container"> | ||
|
||
<!-- Layer TREE result --> | ||
<gn-cap-tree-col collection='layers.nestedLayers' selection="selection"></gn-cap-tree-col> | ||
|
||
|
||
<!--Table header--> | ||
<table class="table-header table table-condensed"> | ||
<thead> | ||
<tr> | ||
<th></th> | ||
<th ng-click="reverse = !reverse"> | ||
<span class="pull-left" translate>title</span> | ||
<i class="pull-right fa fa-sort-alpha-asc" ng-hide="reverse"></i> | ||
<i class="pull-right fa fa-sort-alpha-desc" ng-show="reverse"></i> | ||
</th> | ||
</tr> | ||
</thead> | ||
</table> | ||
|
||
<div class="gn-import-wms-content"> | ||
<table class="table table-striped table-hover table-condensed"> | ||
<tbody> | ||
<tr ng-repeat="layer in layers | orderBy:'title':reverse | filter : searchFilter" | ||
ng-class="{active : selection.indexOf(layer) >= 0}"> | ||
<td> | ||
<div class="icon-zoom-in" ng-click="zoomOnLayerExtent(layer)"></div> | ||
</td> | ||
<td ng-mouseover="addLayerHovered(layer)" | ||
ng-mouseleave="removeLayerHovered()" | ||
ng-click="select(layer)" > | ||
{{layer.title}} | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
|
||
<!-- | ||
<div class="layers-list list-group"> | ||
<a href="#" ng-repeat="l in layers" class="list-group-item" | ||
ng-class="{active : selection.indexOf(l) >= 0}" ng-click="select(l)">{{l.title}}</a> | ||
<input class="form-control" type="text" data-toggle="dropdown" data-ng-model="url" | ||
data-ng-change="load(url)" placeholder="{{'serviceUrl' | translate}}"/> | ||
<ul class="dropdown-menu" role="menu"> | ||
<li data-ng-repeat="srv in servicesList"> | ||
<a href="" data-ng-click="params.url = srv;load(srv)"> | ||
{{srv}} | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
--> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button> | ||
<button type="button" class="btn btn-primary" data-ng-click="loadLayers(selection)">Load layers</button> | ||
</div> | ||
</div> | ||
</form> | ||
<gn-cap-tree-col collection='layers.nestedLayers' selection="selection"></gn-cap-tree-col> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters