Make radiobuttonlist work with configs as well

Re: https://github.com/umbraco/Umbraco-CMS/pull/2763#issuecomment-408848485
This commit is contained in:
Sebastiaan Janssen
2018-07-30 15:46:02 +02:00
parent 8dc3b032b7
commit 2ea5a7a293

View File

@@ -1,7 +1,15 @@
<ul class="unstyled">
<li ng-repeat="preval in model.prevalues">
<label class="checkbox">
<input type="radio" ng-model="model.value" value="{{preval.value || preval}}" /> {{preval.label || preval.value || preval}}
</label>
</li>
</ul>
<ul class="unstyled" ng-if="model.prevalues">
<li ng-repeat="preval in model.prevalues">
<label class="checkbox">
<input type="radio" ng-model="model.value" value="{{preval.value || preval}}" /> {{preval.label || preval.value || preval}}
</label>
</li>
</ul>
<ul class="unstyled" ng-if="model.config.prevalues">
<li ng-repeat="(key, value) in model.config.prevalues ">
<label class="checkbox">
<input type="radio" ng-model="model.value" value="{{value.value}}" /> {{value.label}}
</label>
</li>
</ul>