mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
Fix: properly render checkboxes in dynamic forms
This commit is contained in:
parent
649e0bc53f
commit
1e85caa6c1
@ -8,9 +8,15 @@
|
||||
<select name="type" class="form-control" ng-options="type.type as type.name for type in types" ng-model="target.type"></select>
|
||||
</div>
|
||||
<div class="form-group" ng-class='{"has-error": !inner.input.$valid}' ng-form="inner" ng-repeat="(name, input) in type.configuration_schema.properties">
|
||||
<label>{{input.title || name | capitalize}}</label>
|
||||
<label ng-if="input.type !== 'checkbox'">{{input.title || name | capitalize}}</label>
|
||||
<input name="input" type="{{input.type}}" class="form-control" ng-model="target.options[name]" ng-required="input.required"
|
||||
ng-if="input.type !== 'file'" accesskey="tab" placeholder="{{input.default}}">
|
||||
ng-if="input.type !== 'file' && input.type !== 'checkbox'" accesskey="tab" placeholder="{{input.default}}">
|
||||
|
||||
<label ng-if="input.type=='checkbox'">
|
||||
<input name="input" type="{{input.type}}" ng-model="target.options[name]" ng-required="input.required"
|
||||
ng-if="input.type !== 'file'" accesskey="tab" placeholder="{{input.default}}">
|
||||
{{input.title || name | capitalize}}
|
||||
</label>
|
||||
|
||||
<input name="input" type="file" class="form-control" ng-model="files[name]" ng-required="input.required && !target.options[name]"
|
||||
base-sixty-four-input
|
||||
@ -21,3 +27,4 @@
|
||||
|
||||
</span>
|
||||
</form>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user