mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-01-21 04:28:44 -05:00
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.
10 lines
585 B
HTML
10 lines
585 B
HTML
<div class="form-group" ng-repeat="(key, value) in configData.upload">
|
|
<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>
|