mirror of
https://github.com/getredash/redash.git
synced 2025-12-19 17:37:19 -05:00
This pull request implements UI for parameters and also allows to set the default value and type of a parameter. (Closes #583) Other changes in this pull request: - Loading/error state for dashboard widgets. - Refresh button on dashboard widgets (Closes #810). - Maintain sync between query/dashboard URL and current parameters, and preserve them when navigating. - Removed Pivot Table tab.
8 lines
484 B
HTML
8 lines
484 B
HTML
<div class="form-inline bg-white p-5" ng-if="parameters | notEmpty" ui-sortable="{ 'ui-floating': true, 'disabled': !editable }" ng-model="parameters">
|
|
<div class="form-group" ng-repeat="param in parameters">
|
|
<label>{{param.title}}</label>
|
|
<button class="btn btn-default btn-xs" ng-click="showParameterSettings(param)" ng-if="editable"><i class="zmdi zmdi-settings"></i></button>
|
|
<input type="{{param.type}}" class="form-control" ng-model="param.value">
|
|
</div>
|
|
</div>
|