mirror of
https://github.com/getredash/redash.git
synced 2025-12-30 05:00:12 -05:00
The main code doesn't know about individual visualizations and each visualization is contained in its own module. Should make adding/editing/removing visualizations easier.
19 lines
696 B
HTML
19 lines
696 B
HTML
<form role="form" name="visForm" ng-submit="submit()">
|
|
<div class="form-group">
|
|
<label class="control-label">Name</label>
|
|
<input name="name" type="text" class="form-control" ng-model="visualization.name" placeholder="{{visualization.type}}">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="control-label">Visualization Type</label>
|
|
<select required ng-model="visualization.type" ng-options="value as key for (key, value) in visTypes" class="form-control" ng-change="typeChanged()"></select>
|
|
</div>
|
|
|
|
<visualization-options-editor></visualization-options-editor>
|
|
|
|
<div class="form-group">
|
|
<button type="submit" class="btn btn-primary">Save</button>
|
|
</div>
|
|
|
|
</form>
|