kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.2 KiB
33 lines
1.2 KiB
6 years ago
|
<div class="form--field">
|
||
|
<label class="form--label"
|
||
6 years ago
|
[ngClass]="{ '-error': fileInvalid }"
|
||
6 years ago
|
[textContent]="text.label_choose_avatar"
|
||
|
for="avatar_file_input">
|
||
|
</label>
|
||
|
<div class="form--field-container">
|
||
|
<input #avatarFilePicker
|
||
|
type="file"
|
||
6 years ago
|
accept="image/jpeg,image/png,image/gif"
|
||
6 years ago
|
id="avatar_file_input"
|
||
|
name="avatar_file_input"
|
||
|
(change)="onFilePickerChanged($event)" />
|
||
|
</div>
|
||
|
<div class="form--field-instructions">
|
||
|
<span [textContent]="text.upload_instructions"></span>
|
||
6 years ago
|
<div class="avatars--error-pane">
|
||
|
<span *ngIf="fileInvalid" [textContent]="text.wrong_file_format"></span>
|
||
|
</div>
|
||
6 years ago
|
</div>
|
||
|
</div>
|
||
|
<fieldset class="preview" *ngIf="avatarPreviewUrl">
|
||
|
<legend class="preview--legend" [textContent]="text.preview"></legend>
|
||
|
<img [src]="avatarPreviewUrl" class="avatars--local-avatar-preview" />
|
||
|
</fieldset>
|
||
|
|
||
|
<button type="submit"
|
||
|
(click)="uploadAvatar($event)"
|
||
|
[attr.disabled]="!avatarFile || busy || undefined"
|
||
|
[textContent]="text.button_update"
|
||
|
class="button -highlight -with-icon icon-checkmark">
|
||
|
</button>
|