/
githubmirror
/
oppia
Обзор
Документация
Войти
/
githubmirror
/
oppia
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
extensions/interactions/FractionInput/directives/fraction-input-interaction.component.html
26 строк
920 B
Jayam Patel
[GSoC 2025 - Acceptance Tests] M1.8 - Implement Acceptance tests for Exploration Editor (#11 in CUJv3 Doc) (#22969)
05 авг 2025, 06:02
Не верифицирован
05 авг 2025, 06:02
6e293e1
Код
Авторство
О чём код?
<form autocomplete="off" [attr.disabled]="!isValid ? true : null" role="form" class="form-horizontal fraction-input-interaction"> <!-- This form is needed for submitting the answer on hitting enter. --> <input type="text" name="answer" [(ngModel)]="answer" (ngModelChange)="answerValueChanged()" class="form-control e2e-test-fraction-input e2e-test-float-form-input" (keyup.enter)="submitAnswer()" [oppiaFocusOn]="labelForFocusTarget" placeholder="{{customPlaceholder !== '' ? customPlaceholder : getPlaceholderText() | translate}}"> <div *ngIf="errorMessageI18nKey" class="oppia-form-error-container e2e-test-form-error-container"> {{errorMessageI18nKey | translate}} </div> </form> <style> .ng-invalid { border-color: red; outline-color: red; } .fraction-input-interaction .input .form-control { width: 100%; } </style>