Implemented the numeric property editor

This commit is contained in:
Shannon
2013-08-28 13:30:05 +10:00
parent 008b5f0d2a
commit cb368b4335
23 changed files with 371 additions and 298 deletions

View File

@@ -9,7 +9,7 @@ angular.module("umbraco").controller("Umbraco.Editors.MultiValuesController",
if (!angular.isArray($scope.model.value)) {
//make an array from the dictionary
var items = [];
for (var i in $scope.model.value) {
for (var i in $scope.model.value) {
items.push({value: $scope.model.value[i]});
}
//now make the editor model the array

View File

@@ -0,0 +1,9 @@
<div>
<input name="integerField" type="text" class="umb-textstring span7 textstring"
ng-model="model.value"
val-regex="^\d*$"
val-server="value" />
<span class="help-inline" val-msg-for="integerField" val-toggle-msg="valRegex">Invalid integer value</span>
<span class="help-inline" val-msg-for="integerField" val-toggle-msg="valServer">{{propertyForm.requiredField.errorMsg}}</span>
</div>