Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 | 2x | <div class="modal-header"> <h4 i18n="form title|Example: Create Pool@@formTitle" class="modal-title pull-left">{{ action | titlecase }} {{ resource | upperFirst }}</h4> <button type="button" class="close pull-right" aria-label="Close" (click)="bsModalRef.hide()"> <span aria-hidden="true">×</span> </button> </div> <form class="form-horizontal" #frm="ngForm" [formGroup]="form" novalidate> <div class="modal-body"> <div class="form-group" [ngClass]="{'has-error': form.showError('name', frm)}"> <label for="name" class="control-label col-sm-3"> <ng-container i18n>Name</ng-container> <span class="required"></span> </label> <div class="col-sm-9"> <input type="text" id="name" name="name" class="form-control" placeholder="Name..." formControlName="name" autofocus> <span class="help-block" *ngIf="form.showError('name', frm, 'required')" i18n>This field is required!</span> <span class="help-block" *ngIf="form.showError('name', frm, 'pattern')" i18n>The name can only consist of alphanumeric characters, dashes and underscores.</span> <span class="help-block" *ngIf="form.showError('name', frm, 'uniqueName')" i18n>The chosen erasure code profile name is already in use.</span> </div> </div> <div class="form-group"> <label for="plugin" class="control-label col-sm-3"> <ng-container i18n>Plugin</ng-container> <span class="required"></span> <cd-helper [html]="tooltips.plugins[plugin].description"> </cd-helper> </label> <div class="col-sm-9"> <select class="form-control" id="plugin" name="plugin" formControlName="plugin"> <option *ngIf="!plugins" ngValue="" i18n>Loading...</option> <option *ngFor="let plugin of plugins" [ngValue]="plugin"> {{ plugin }} </option> </select> <span class="help-block" *ngIf="form.showError('name', frm, 'required')" i18n>This field is required!</span> </div> </div> <div class="form-group" [ngClass]="{'has-error': form.showError('k', frm)}"> <label for="k" class="control-label col-sm-3"> <ng-container i18n>Data chunks (k)</ng-container> <span class="required" *ngIf="requiredControls.includes('k')"></span> <cd-helper [html]="tooltips.k"> </cd-helper> </label> <div class="col-sm-9"> <input type="number" id="k" name="k" class="form-control" ng-model="$ctrl.erasureCodeProfile.k" placeholder="Data chunks..." formControlName="k"> <span class="help-block" *ngIf="form.showError('k', frm, 'required')" i18n>This field is required!</span> <span class="help-block" *ngIf="form.showError('k', frm, 'min')" i18n>Must be equal to or greater than 2.</span> </div> </div> <div class="form-group" [ngClass]="{'has-error': form.showError('m', frm)}"> <label for="m" class="control-label col-sm-3"> <ng-container i18n>Coding chunks (m)</ng-container> <span class="required" *ngIf="requiredControls.includes('m')"></span> <cd-helper [html]="tooltips.m"> </cd-helper> </label> <div class="col-sm-9"> <input type="number" id="m" name="m" class="form-control" placeholder="Coding chunks..." formControlName="m"> <span class="help-block" *ngIf="form.showError('m', frm, 'required')" i18n>This field is required!</span> <span class="help-block" *ngIf="form.showError('m', frm, 'min')" i18n>Must be equal to or greater than 1.</span> </div> </div> <div class="form-group" *ngIf="plugin === 'shec'" [ngClass]="{'has-error': form.showError('c', frm)}"> <label for="c" class="control-label col-sm-3"> <ng-container i18n>Durability estimator (c)</ng-container> <cd-helper [html]="tooltips.plugins.shec.c"> </cd-helper> </label> <div class="col-sm-9"> <input type="number" id="c" name="c" class="form-control" placeholder="Coding chunks..." formControlName="c"> <span class="help-block" *ngIf="form.showError('c', frm, 'min')" i18n>Must be equal to or greater than 1.</span> </div> </div> <div class="form-group" *ngIf="plugin === PLUGIN.LRC" [ngClass]="{'has-error': form.showError('l', frm)}"> <label for="l" class="control-label col-sm-3"> <ng-container i18n>Locality (l)</ng-container> <span class="required"></span> <cd-helper [html]="tooltips.plugins.lrc.l"> </cd-helper> </label> <div class="col-sm-9"> <input type="number" id="l" name="l" class="form-control" placeholder="Coding chunks..." formControlName="l"> <span class="help-block" *ngIf="form.showError('l', frm, 'required')" i18n>This field is required!</span> <span class="help-block" *ngIf="form.showError('l', frm, 'min')" i18n>Must be equal to or greater than 1.</span> </div> </div> <div class="form-group"> <label for="crushFailureDomain" class="control-label col-sm-3"> <ng-container i18n>Crush failure domain</ng-container> <cd-helper [html]="tooltips.crushFailureDomain"> </cd-helper> </label> <div class="col-sm-9"> <select class="form-control" id="crushFailureDomain" name="crushFailureDomain" formControlName="crushFailureDomain"> <option *ngIf="!failureDomains" ngValue="" i18n>Loading...</option> <option *ngFor="let domain of failureDomains" [ngValue]="domain"> {{ domain }} </option> </select> </div> </div> <div class="form-group" *ngIf="plugin === PLUGIN.LRC"> <label for="crushLocality" class="control-label col-sm-3"> <ng-container i18n>Crush Locality</ng-container> <cd-helper [html]="tooltips.plugins.lrc.crushLocality"> </cd-helper> </label> <div class="col-sm-9"> <select class="form-control" id="crushLocality" name="crushLocality" formControlName="crushLocality"> <option *ngIf="!failureDomains" ngValue="" i18n>Loading...</option> <option *ngIf="failureDomains && failureDomains.length > 0" ngValue="" i18n>None</option> <option *ngFor="let domain of failureDomains" [ngValue]="domain"> {{ domain }} </option> </select> </div> </div> <div class="form-group" *ngIf="[PLUGIN.JERASURE, PLUGIN.ISA].includes(plugin)"> <label for="technique" class="control-label col-sm-3"> <ng-container i18n>Technique</ng-container> <cd-helper [html]="tooltips.plugins[plugin].technique"> </cd-helper> </label> <div class="col-sm-9"> <select class="form-control" id="technique" name="technique" formControlName="technique"> <option *ngFor="let technique of techniques" [ngValue]="technique"> {{ technique }} </option> </select> </div> </div> <div class="form-group" *ngIf="plugin === PLUGIN.JERASURE" [ngClass]="{'has-error': form.showError('packetSize', frm)}"> <label for="packetSize" class="control-label col-sm-3"> <ng-container i18n>Packetsize</ng-container> <cd-helper [html]="tooltips.plugins.jerasure.packetSize"> </cd-helper> </label> <div class="col-sm-9"> <input type="number" id="packetSize" name="packetSize" class="form-control" placeholder="Packetsize..." formControlName="packetSize"> <span class="help-block" *ngIf="form.showError('packetSize', frm, 'min')" i18n>Must be equal to or greater than 1.</span> </div> </div> <div class="form-group" [ngClass]="{'has-error': form.showError('crushRoot', frm)}"> <label for="crushRoot" class="control-label col-sm-3"> <ng-container i18n>Crush root</ng-container> <cd-helper [html]="tooltips.crushRoot"> </cd-helper> </label> <div class="col-sm-9"> <input type="text" id="crushRoot" name="crushRoot" class="form-control" placeholder="root..." formControlName="crushRoot"> </div> </div> <div class="form-group"> <label for="crushDeviceClass" class="control-label col-sm-3"> <ng-container i18n>Crush device class</ng-container> <cd-helper [html]="tooltips.crushDeviceClass"> </cd-helper> </label> <div class="col-sm-9"> <select class="form-control" id="crushDeviceClass" name="crushDeviceClass" formControlName="crushDeviceClass"> <option ngValue="" i18n>any</option> <option *ngFor="let deviceClass of devices" [ngValue]="deviceClass"> {{ deviceClass }} </option> </select> </div> </div> <div class="form-group"> <label for="directory" class="control-label col-sm-3"> <ng-container i18n>Directory</ng-container> <cd-helper [html]="tooltips.directory"> </cd-helper> </label> <div class="col-sm-9"> <input type="text" id="directory" name="directory" class="form-control" placeholder="Path..." formControlName="directory"> </div> </div> </div> <div class="modal-footer"> <cd-submit-button (submitAction)="onSubmit()" i18n="form action button|Example: Create Pool@@formActionButton" [form]="frm">{{ action | titlecase }} {{ resource | upperFirst }}</cd-submit-button> <cd-back-button [back]="bsModalRef.hide"></cd-back-button> </div> </form> |