|
421 | 421 |
|
422 | 422 | <!-- Compression Mode --> |
423 | 423 | <div class="form-group row"> |
424 | | - <label i18n |
425 | | - class="cd-col-form-label" |
426 | | - for="mode">Mode</label> |
| 424 | + <label class="cd-col-form-label" |
| 425 | + for="mode" |
| 426 | + i18n>Mode |
| 427 | + </label> |
427 | 428 | <div class="cd-col-form-input"> |
428 | 429 | <select class="form-select" |
429 | 430 | id="mode" |
|
434 | 435 | {{ mode }} |
435 | 436 | </option> |
436 | 437 | </select> |
| 438 | + <cd-help-text>Policy used for compression algorithm</cd-help-text> |
437 | 439 | </div> |
438 | 440 | </div> |
439 | 441 | <div *ngIf="hasCompressionEnabled()"> |
440 | 442 | <!-- Compression algorithm selection --> |
441 | 443 | <div class="form-group row"> |
442 | | - <label i18n |
443 | | - class="cd-col-form-label" |
444 | | - for="algorithm">Algorithm</label> |
| 444 | + <label class="cd-col-form-label" |
| 445 | + for="algorithm"> |
| 446 | + <ng-container i18n>Algorithm</ng-container> |
| 447 | + </label> |
445 | 448 | <div class="cd-col-form-input"> |
446 | 449 | <select class="form-select" |
447 | 450 | id="algorithm" |
|
458 | 461 | {{ algorithm }} |
459 | 462 | </option> |
460 | 463 | </select> |
| 464 | + <cd-help-text> |
| 465 | + <span i18n>Compression algorithm used</span> |
| 466 | + </cd-help-text> |
461 | 467 | </div> |
462 | 468 | </div> |
463 | 469 |
|
464 | 470 | <!-- Compression min blob size --> |
465 | 471 | <div class="form-group row"> |
466 | | - <label i18n |
467 | | - class="cd-col-form-label" |
468 | | - for="minBlobSize">Minimum blob size</label> |
| 472 | + <label class="cd-col-form-label" |
| 473 | + for="minBlobSize"> |
| 474 | + <ng-container i18n>Minimum blob size</ng-container> |
| 475 | + </label> |
469 | 476 | <div class="cd-col-form-input"> |
470 | 477 | <input id="minBlobSize" |
471 | 478 | name="minBlobSize" |
|
477 | 484 | placeholder="e.g., 128KiB" |
478 | 485 | defaultUnit="KiB" |
479 | 486 | cdDimlessBinary> |
| 487 | + <cd-help-text> |
| 488 | + <span i18n>Chunks smaller than Minimum blob size are never compressed</span> |
| 489 | + </cd-help-text> |
480 | 490 | <span class="invalid-feedback" |
481 | 491 | *ngIf="form.showError('minBlobSize', formDir, 'min')" |
482 | 492 | i18n>Value should be greater than 0</span> |
|
491 | 501 |
|
492 | 502 | <!-- Compression max blob size --> |
493 | 503 | <div class="form-group row"> |
494 | | - <label i18n |
495 | | - class="cd-col-form-label" |
496 | | - for="maxBlobSize">Maximum blob size</label> |
| 504 | + <label class="cd-col-form-label" |
| 505 | + for="maxBlobSize"> |
| 506 | + <ng-container i18n>Maximum blob size</ng-container> |
| 507 | + </label> |
497 | 508 | <div class="cd-col-form-input"> |
498 | 509 | <input id="maxBlobSize" |
499 | 510 | type="text" |
|
504 | 515 | placeholder="e.g., 512KiB" |
505 | 516 | defaultUnit="KiB" |
506 | 517 | cdDimlessBinary> |
| 518 | + <cd-help-text> |
| 519 | + <span i18n>Chunks larger than `Maximum Blob Size` are broken into smaller blobs of size mentioned before being compressed.</span> |
| 520 | + </cd-help-text> |
507 | 521 | <span class="invalid-feedback" |
508 | 522 | *ngIf="form.showError('maxBlobSize', formDir, 'min')" |
509 | 523 | i18n>Value should be greater than 0</span> |
|
518 | 532 |
|
519 | 533 | <!-- Compression ratio --> |
520 | 534 | <div class="form-group row"> |
521 | | - <label i18n |
522 | | - class="cd-col-form-label" |
523 | | - for="ratio">Ratio</label> |
| 535 | + <label class="cd-col-form-label" |
| 536 | + for="ratio"> |
| 537 | + <ng-container i18n>Ratio</ng-container> |
| 538 | + </label> |
524 | 539 | <div class="cd-col-form-input"> |
525 | 540 | <input id="ratio" |
526 | 541 | name="ratio" |
|
529 | 544 | min="0" |
530 | 545 | max="1" |
531 | 546 | step="0.1" |
532 | | - class="form-control" |
533 | | - i18n-placeholder |
534 | | - placeholder="Compression ratio"> |
| 547 | + class="form-control"> |
| 548 | + <cd-help-text> |
| 549 | + <span i18n>The ratio of the size of the data chunk after compression relative to the original size must be at least this small in order to store the compressed version</span> |
| 550 | + </cd-help-text> |
535 | 551 | <span class="invalid-feedback" |
536 | 552 | *ngIf="form.showError('ratio', formDir, 'min') || form.showError('ratio', formDir, 'max')" |
537 | 553 | i18n>Value should be between 0.0 and 1.0</span> |
|
550 | 566 | <label class="cd-col-form-label" |
551 | 567 | for="max_bytes"> |
552 | 568 | <ng-container i18n>Max bytes</ng-container> |
553 | | - <cd-helper> |
554 | | - <span i18n>Leave it blank or specify 0 to disable this quota.</span> |
555 | | - <br> |
556 | | - <span i18n>A valid quota should be greater than 0.</span> |
557 | | - </cd-helper> |
558 | 569 | </label> |
559 | 570 | <div class="cd-col-form-input"> |
560 | 571 | <input class="form-control" |
|
566 | 577 | placeholder="e.g., 10GiB" |
567 | 578 | defaultUnit="GiB" |
568 | 579 | cdDimlessBinary> |
| 580 | + <cd-help-text> |
| 581 | + <span i18n>Leave it blank or specify 0 to disable this quota.</span> |
| 582 | + <br> |
| 583 | + <span i18n>A valid quota should be greater than 0.</span> |
| 584 | + </cd-help-text> |
569 | 585 | <span *ngIf="form.showError('max_bytes', formDir, 'pattern')" |
570 | 586 | class="invalid-feedback" |
571 | 587 | i18n>Size must be a number or in a valid format. eg: 5 GiB</span> |
|
577 | 593 | <label class="cd-col-form-label" |
578 | 594 | for="max_objects"> |
579 | 595 | <ng-container i18n>Max objects</ng-container> |
580 | | - <cd-helper> |
581 | | - <span i18n>Leave it blank or specify 0 to disable this quota.</span> |
582 | | - <br> |
583 | | - <span i18n>A valid quota should be greater than 0.</span> |
584 | | - </cd-helper> |
585 | 596 | </label> |
586 | 597 | <div class="cd-col-form-input"> |
587 | 598 | <input class="form-control" |
|
590 | 601 | name="max_objects" |
591 | 602 | type="number" |
592 | 603 | formControlName="max_objects"> |
| 604 | + <cd-help-text> |
| 605 | + <span i18n>Leave it blank or specify 0 to disable this quota.</span> |
| 606 | + <br> |
| 607 | + <span i18n>A valid quota should be greater than 0.</span> |
| 608 | + </cd-help-text> |
593 | 609 | <span class="invalid-feedback" |
594 | 610 | *ngIf="form.showError('max_objects', formDir, 'min')" |
595 | 611 | i18n>The value should be greater or equal to 0</span> |
|
0 commit comments