Files
zoneminder/web/views/options/options.dynamic.html
Kyle Johnson e7472a126f Rework the Options / Config page (again)
We're now grabbing only the json from the api, passing it through
the Crud plugin so that ints stay as ints, and then assigning the
json to the scope via app.js resolve.

 * Saving Config is not tested here.
 * This commit may deprecate the ConfigParserComponent
 * Options must be saved before changing the tab, lest they are lost.
 * That'll be fixed in another commit.
2015-03-05 08:03:15 -05:00

10 lines
586 B
HTML

<div class="form-group" ng-repeat="(key, value) in configData.dynamic">
<label for="{{value.Name}}" class="control-label col-md-4" ng-bind="value.Name"></label>
<div class="col-md-4" ng-switch on="value.Type">
<input id="{{value.Name}}" ng-switch-when="string" type="text" class="form-control" ng-model="value.Value">
<input id="{{value.Name}}" ng-switch-when="boolean" type="checkbox" ng-model="value.Value" ng-false-value="'0'" ng-true-value="'1'">
<input id="{{value.Name}}" ng-switch-when="integer" type="number" class="form-control" ng-model="value.Value">
</div>
</div>