mirror of
https://github.com/getredash/redash.git
synced 2025-12-25 01:03:20 -05:00
29 lines
1.3 KiB
HTML
29 lines
1.3 KiB
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 m-l-10 m-r-10"
|
|
ng-repeat="param in parameters">
|
|
<label class="parameter-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>
|
|
<span ng-switch="param.type">
|
|
<input ng-switch-when="datetime-with-seconds" type="datetime-local" step="1" class="form-control" ng-model="param.ngModel">
|
|
<input ng-switch-when="datetime-local" type="datetime-local" class="form-control" ng-model="param.ngModel">
|
|
<input ng-switch-when="date" type="date" class="form-control" ng-model="param.ngModel">
|
|
<span ng-switch-when="enum">
|
|
<select ng-model="param.value" class="form-control">
|
|
<option ng-repeat="option in extractEnumOptions(param.enumOptions)" value="{{option}}">{{option}}</option>
|
|
</select>
|
|
</span>
|
|
<span ng-switch-when="query">
|
|
<query-based-parameter param="param" query-id="param.queryId"></query-based-parameter>
|
|
</span>
|
|
<input ng-switch-default type="{{param.type}}" class="form-control" ng-model="param.ngModel">
|
|
</span>
|
|
</div>
|
|
</div>
|