Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move panel heading into seperate configurable directive
fixes #230
- Loading branch information
Showing
24 changed files
with
102 additions
and
225 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,32 +1,27 @@ | |||
<div class="hs-panel-margin panel" ng-class="{'panel-default mainpanel' : !Core.singleDatasources}"> | <div class="hs-panel-margin panel" ng-class="{'panel-default mainpanel' : !Core.singleDatasources}"> | ||
<div class="card-header" ng-show="!Core.singleDatasources" translate>Add external data | <hs.layout.panel-header panel-name="ows" panel-title="'Add external data'||translate"></hs.layout.panel-header> | ||
<button type="button" class="close" ng-click="Core.closePanel(this)"> | |||
<span aria-hidden="true">×</span> | |||
<span class="sr-only" translate>Close</span> | |||
</button> | |||
</div> | |||
<div class="card-body"> | <div class="card-body"> | ||
<form name="frmConnect" role="form" class="form"> | <form name="frmConnect" role="form" class="form"> | ||
<div class="form-group"> | <div class="form-group"> | ||
<div class="input-group"> | <div class="input-group"> | ||
<div class="input-group-prepend" id="type_label"><span class="input-group-text" translate>Choose format</span></div> | <div class="input-group-prepend" id="type_label"><span class="input-group-text" translate>Choose format</span></div> | ||
<select class="form-control" id="ows_type" ng-model="type"> | <select class="form-control" id="ows_type" ng-model="type"> | ||
<option ng-repeat="type in types">{{type}}</option> | <option ng-repeat="type in types">{{type}}</option> | ||
</select> | </select> | ||
</div> | |||
</div> | </div> | ||
</div> | |||
|
|
||
<div class="form-group"> | <div class="form-group"> | ||
<div class="input-group"> | <div class="input-group"> | ||
<input type="url" class="form-control" name="url" ng-model="url" placeholder="{{'External data source (URL)'|translate}}" required /> | <input type="url" class="form-control" name="url" ng-model="url" placeholder="{{'External data source (URL)'|translate}}" required /> | ||
<div class="input-group-append"> | <div class="input-group-append"> | ||
<button type="button" class="btn btn-secondary" ng-if="frmConnect.url.$valid && isService()" ng-click="connect()"><i class="icon-link"></i></button> | <button type="button" class="btn btn-secondary" ng-if="frmConnect.url.$valid && isService()" ng-click="connect()"><i class="icon-link"></i></button> | ||
<button type="button" class="btn btn-danger" ng-if="frmConnect.url.$error.url"><i class="icon-alertalt"></i></button> | <button type="button" class="btn btn-danger" ng-if="frmConnect.url.$error.url"><i class="icon-alertalt"></i></button> | ||
</div> | |||
</div> | </div> | ||
</div> | </div> | ||
</form> | </div> | ||
<hr/> | </form> | ||
<div class='ows-capabilities' ng-show="showDetails" compile="templateByType()"></div> | <hr/> | ||
<div class='ows-capabilities' ng-show="showDetails" compile="templateByType()"></div> | |||
</div> | </div> | ||
</div> | </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
7 changes: 1 addition & 6 deletions
7
components/datasource-selector/partials/datasource_selector.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
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
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
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,16 @@ | |||
export default ['config', 'Core', function (config, Core) { | |||
return { | |||
template: require('components/layout/partials/panel-header.directive.html'), | |||
transclude: { | |||
'extraButtons': '?extraButtons', | |||
'extraTitle': '?extraTitle' | |||
}, | |||
scope: { | |||
panelName: "@", | |||
panelTitle: "=panelTitle" | |||
}, | |||
controller: function ($scope) { | |||
$scope.closePanel = Core.closePanel; | |||
} | |||
}; | |||
}] |
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
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,7 @@ | |||
<div class="card-header">{{panelTitle}}<span ng-transclude="extraTitle"></span> | |||
<button type="button" class="close" ng-click="closePanel(this)"> | |||
<span aria-hidden="true">×</span> | |||
<span class="sr-only">Close</span> | |||
</button> | |||
<span ng-transclude="extraButtons"></span> | |||
</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
File renamed without changes.
File renamed without changes.
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
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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.