Changed the input type of max size from number to text

Change-Id: Ie8910e65bd48dfc3ea9c635397392a63eeb441a4
This commit is contained in:
Chi Zhang 2014-09-10 17:47:38 -07:00
parent 6788c04916
commit ea4e80d229
3 changed files with 7 additions and 5 deletions

View File

@ -8,11 +8,11 @@
"partition": {
"/var": {
"percentage": 30,
"max_size": 10
"max_size": "10G"
},
"/home": {
"percentage": 30,
"max_size": 10
"max_size": "20G"
}
},
"interface": {

View File

@ -675,10 +675,12 @@ compassAppDev.run(function($httpBackend, settings, $http) {
},
"partition": {
"/var": {
"percentage": 30
"percentage": 30,
"max_size": "10G"
},
"/home": {
"percentage": 30
"percentage": 30,
"max_size": "10G"
}
}
},

View File

@ -19,7 +19,7 @@
<input ng-model="partitionInfo.percentage" type="number" min="1" max="100" placeholder="Size Percentage" class="input-medium">
</td>
<td>
<input ng-model="partitionInfo.max_size" type="number" min="1" max="100" placeholder="Max Size" class="input-medium">
<input ng-model="partitionInfo.max_size" type="text" min="1" max="100" placeholder="Max Size" class="input-medium">
</td>
<td>
<!-- add button -->