chore(ui): clear eslint label-association bucket
- Frontend accessibility cleanup: - add concrete `for` and `id` or `inputId` bindings where labels map to real inputs, selects, and number fields - convert remaining row headers and grouped-control captions from `<label>` to `<span>` where the markup described composite controls rather than a single form element - Lint progress: - clear the remaining `@angular-eslint/template/label-has-associated-control` backlog from 109 issues to 0 - reduce total frontend lint errors from 532 to 423 while keeping the next accessibility buckets isolated - Validation: - `just ui lint`
This commit is contained in:
+7
-7
@@ -53,7 +53,7 @@
|
||||
</button>
|
||||
<p-popover #displaySettingsPopover>
|
||||
<div class="display-settings-content">
|
||||
<label class="display-settings-label">{{ t('cardSize') }}</label>
|
||||
<span class="display-settings-label">{{ t('cardSize') }}</span>
|
||||
<p-slider
|
||||
[ngModel]="authorScaleService.scaleFactor()"
|
||||
(ngModelChange)="authorScaleService.setScale($event)"
|
||||
@@ -72,7 +72,7 @@
|
||||
<p-popover #filterPopover>
|
||||
<div class="filter-popover-content">
|
||||
<div class="filter-group">
|
||||
<label class="filter-label">{{ t('filters.matchStatus') }}</label>
|
||||
<span class="filter-label">{{ t('filters.matchStatus') }}</span>
|
||||
<p-select
|
||||
[options]="[
|
||||
{label: t('filters.all'), value: 'all'},
|
||||
@@ -88,7 +88,7 @@
|
||||
</div>
|
||||
|
||||
<div class="filter-group">
|
||||
<label class="filter-label">{{ t('filters.photoStatus') }}</label>
|
||||
<span class="filter-label">{{ t('filters.photoStatus') }}</span>
|
||||
<p-select
|
||||
[options]="[
|
||||
{label: t('filters.all'), value: 'all'},
|
||||
@@ -104,7 +104,7 @@
|
||||
</div>
|
||||
|
||||
<div class="filter-group">
|
||||
<label class="filter-label">{{ t('filters.readStatus') }}</label>
|
||||
<span class="filter-label">{{ t('filters.readStatus') }}</span>
|
||||
<p-select
|
||||
[options]="[
|
||||
{label: t('filters.all'), value: 'all'},
|
||||
@@ -122,7 +122,7 @@
|
||||
</div>
|
||||
|
||||
<div class="filter-group">
|
||||
<label class="filter-label">{{ t('filters.bookCount') }}</label>
|
||||
<span class="filter-label">{{ t('filters.bookCount') }}</span>
|
||||
<p-select
|
||||
[options]="[
|
||||
{label: t('filters.all'), value: 'all'},
|
||||
@@ -146,7 +146,7 @@
|
||||
</div>
|
||||
|
||||
<div class="filter-group">
|
||||
<label class="filter-label">{{ t('filters.library') }}</label>
|
||||
<span class="filter-label">{{ t('filters.library') }}</span>
|
||||
<p-select
|
||||
[options]="libraryOptions()"
|
||||
[ngModel]="filters().library"
|
||||
@@ -158,7 +158,7 @@
|
||||
</div>
|
||||
|
||||
<div class="filter-group">
|
||||
<label class="filter-label">{{ t('filters.genre') }}</label>
|
||||
<span class="filter-label">{{ t('filters.genre') }}</span>
|
||||
<p-select
|
||||
[options]="genreOptions()"
|
||||
[ngModel]="filters().genre"
|
||||
|
||||
+6
-5
@@ -3,16 +3,17 @@
|
||||
<div class="search-form">
|
||||
<div class="search-fields">
|
||||
<div class="field">
|
||||
<label>{{ t('authorNameLabel') }}</label>
|
||||
<input pInputText type="text" [(ngModel)]="searchQuery" [placeholder]="t('authorNamePlaceholder')" class="search-input"/>
|
||||
<label for="author-match-name">{{ t('authorNameLabel') }}</label>
|
||||
<input id="author-match-name" pInputText type="text" [(ngModel)]="searchQuery" [placeholder]="t('authorNamePlaceholder')" class="search-input"/>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>{{ t('asinLabel') }}</label>
|
||||
<input pInputText type="text" [(ngModel)]="asinQuery" [placeholder]="t('asinPlaceholder')" class="search-input"/>
|
||||
<label for="author-match-asin">{{ t('asinLabel') }}</label>
|
||||
<input id="author-match-asin" pInputText type="text" [(ngModel)]="asinQuery" [placeholder]="t('asinPlaceholder')" class="search-input"/>
|
||||
</div>
|
||||
<div class="field region-field">
|
||||
<label>{{ t('regionLabel') }}</label>
|
||||
<label for="author-match-region">{{ t('regionLabel') }}</label>
|
||||
<p-select
|
||||
inputId="author-match-region"
|
||||
[options]="regionOptions"
|
||||
[(ngModel)]="selectedRegion"
|
||||
optionLabel="label"
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
</div>
|
||||
@if (isMobile) {
|
||||
<div class="display-settings-section">
|
||||
<label class="display-settings-label">{{ t('labels.gridColumns') }}</label>
|
||||
<span class="display-settings-label">{{ t('labels.gridColumns') }}</span>
|
||||
<div class="column-options">
|
||||
<button
|
||||
type="button"
|
||||
@@ -135,7 +135,7 @@
|
||||
</div>
|
||||
} @else {
|
||||
<div class="display-settings-section">
|
||||
<label class="display-settings-label">{{ t('labels.gridItemSize') }}</label>
|
||||
<span class="display-settings-label">{{ t('labels.gridItemSize') }}</span>
|
||||
<p-slider
|
||||
[ngModel]="coverScalePreferenceService.scaleFactor()"
|
||||
(ngModelChange)="coverScalePreferenceService.setScale($event)"
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@
|
||||
<div class="fields-grid">
|
||||
@for (field of lockableFields; track field) {
|
||||
<div class="field-row">
|
||||
<label class="field-label">{{ fieldLabels[field] || field }}</label>
|
||||
<span class="field-label">{{ fieldLabels[field] || field }}</span>
|
||||
<p-button
|
||||
[outlined]="true"
|
||||
[label]="getLockLabel(field)"
|
||||
|
||||
@@ -21,8 +21,9 @@
|
||||
<div class="dialog-content">
|
||||
<div class="form-fields">
|
||||
<div class="form-field">
|
||||
<label class="field-label">{{ t('emailProvider') }}</label>
|
||||
<label class="field-label" for="book-sender-provider">{{ t('emailProvider') }}</label>
|
||||
<p-select
|
||||
inputId="book-sender-provider"
|
||||
[options]="emailProviders"
|
||||
optionLabel="label"
|
||||
[placeholder]="t('selectProvider')"
|
||||
@@ -33,8 +34,9 @@
|
||||
</div>
|
||||
|
||||
<div class="form-field">
|
||||
<label class="field-label">{{ t('recipient') }}</label>
|
||||
<label class="field-label" for="book-sender-recipient">{{ t('recipient') }}</label>
|
||||
<p-select
|
||||
inputId="book-sender-recipient"
|
||||
[options]="emailRecipients"
|
||||
optionLabel="label"
|
||||
[placeholder]="t('selectRecipient')"
|
||||
@@ -47,7 +49,7 @@
|
||||
|
||||
@if (emailableFiles.length > 0) {
|
||||
<div class="form-field">
|
||||
<label class="field-label">{{ t('fileFormat') }}</label>
|
||||
<span class="field-label">{{ t('fileFormat') }}</span>
|
||||
<div class="format-options">
|
||||
@for (file of emailableFiles; track file.id) {
|
||||
<div class="format-option" [class.selected]="selectedFileId === file.id">
|
||||
|
||||
+4
-4
@@ -46,10 +46,10 @@
|
||||
<div class="gradient-divider"></div>
|
||||
|
||||
<div class="form-group highlight-group">
|
||||
<label class="form-label">
|
||||
<span class="form-label">
|
||||
<i class="pi pi-palette label-icon"></i>
|
||||
{{ t('shelfIconLabel') }}
|
||||
</label>
|
||||
</span>
|
||||
@if (!selectedIcon) {
|
||||
<button class="icon-select-btn" (click)="openIconPicker()" type="button">
|
||||
<i class="pi pi-plus"></i>
|
||||
@@ -94,10 +94,10 @@
|
||||
<div class="gradient-divider"></div>
|
||||
|
||||
<div class="form-group highlight-group">
|
||||
<label class="form-label">
|
||||
<span class="form-label">
|
||||
<i class="pi pi-globe label-icon"></i>
|
||||
{{ t('visibilityLabel') }}
|
||||
</label>
|
||||
</span>
|
||||
<div class="input-wrapper" style="display: flex; align-items: center; gap: 0.5rem;">
|
||||
<p-checkbox [(ngModel)]="isPublic" [binary]="true" inputId="publicShelf"></p-checkbox>
|
||||
<label for="publicShelf" style="cursor: pointer">{{ t('makePublicLabel') }}</label>
|
||||
|
||||
+4
-4
@@ -23,12 +23,12 @@
|
||||
<div class="shelf-container">
|
||||
<div class="shelf-fields">
|
||||
<div class="shelf-row">
|
||||
<label class="label">{{ t('shelfNameLabel') }}</label>
|
||||
<input type="text" pInputText [(ngModel)]="shelfName" [placeholder]="t('shelfNamePlaceholder')" class="input"/>
|
||||
<label class="label" for="shelf-edit-name">{{ t('shelfNameLabel') }}</label>
|
||||
<input id="shelf-edit-name" type="text" pInputText [(ngModel)]="shelfName" [placeholder]="t('shelfNamePlaceholder')" class="input"/>
|
||||
</div>
|
||||
|
||||
<div class="shelf-row">
|
||||
<label class="label">{{ t('shelfIconLabel') }}</label>
|
||||
<span class="label">{{ t('shelfIconLabel') }}</span>
|
||||
<div class="icon-section">
|
||||
@if (!selectedIcon) {
|
||||
<p-button [label]="t('selectIcon')" icon="pi pi-search" [outlined]="true" severity="info" (onClick)="openIconPicker()"></p-button>
|
||||
@@ -51,7 +51,7 @@
|
||||
|
||||
@if (isAdmin) {
|
||||
<div class="shelf-row">
|
||||
<label class="label">{{ t('visibilityLabel') }}</label>
|
||||
<span class="label">{{ t('visibilityLabel') }}</span>
|
||||
<div class="visibility-section" style="display: flex; align-items: center; gap: 0.5rem;">
|
||||
<p-checkbox [(ngModel)]="isPublic" [binary]="true" inputId="publicShelf"></p-checkbox>
|
||||
<label for="publicShelf" style="cursor: pointer; user-select: none;">{{ t('publicShelfLabel') }}</label>
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@
|
||||
</div>
|
||||
<div class="metacontent">
|
||||
<div class="meta-row field-thumbnail">
|
||||
<label class="field-label"></label>
|
||||
<span class="field-label"></span>
|
||||
<div class="thumbnail-row">
|
||||
<div class="thumbnail-column">
|
||||
@if (metadataForm.get('thumbnailUrl')?.value) {
|
||||
|
||||
+1
-1
@@ -267,7 +267,7 @@
|
||||
@if (bookdropFileUis.length > 0) {
|
||||
<p-inputgroup class="selectall">
|
||||
<p-inputgroup-addon>
|
||||
<label class="selected-count-label" [pTooltip]="t('selectedCountTooltip')" tooltipPosition="top">{{ selectedCount }}</label>
|
||||
<span class="selected-count-label" [pTooltip]="t('selectedCountTooltip')" tooltipPosition="top">{{ selectedCount }}</span>
|
||||
</p-inputgroup-addon>
|
||||
<p-button
|
||||
[label]="t('selectAll')"
|
||||
|
||||
@@ -28,11 +28,12 @@
|
||||
|
||||
<div class="form-row two-col">
|
||||
<div class="form-field">
|
||||
<label>
|
||||
<label for="library-name">
|
||||
{{ t('nameLabel') }} <span class="required">*</span>
|
||||
</label>
|
||||
<div class="input-container">
|
||||
<input
|
||||
id="library-name"
|
||||
pInputText
|
||||
[(ngModel)]="chosenLibraryName"
|
||||
[placeholder]="t('namePlaceholder')"
|
||||
@@ -45,9 +46,9 @@
|
||||
</div>
|
||||
|
||||
<div class="form-field">
|
||||
<label>
|
||||
<span>
|
||||
{{ t('iconLabel') }}
|
||||
</label>
|
||||
</span>
|
||||
@if (!selectedIcon) {
|
||||
<button class="icon-picker-trigger" (click)="openIconPicker()" type="button">
|
||||
<i class="pi pi-plus"></i>
|
||||
|
||||
+5
-5
@@ -421,7 +421,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="field-group small-field">
|
||||
<label>{{ t('publicReviews') }}</label>
|
||||
<span>{{ t('publicReviews') }}</span>
|
||||
<div class="field-with-lock">
|
||||
<input pSize="small" pInputText [disabled]="true" [value]="t('noValue')"/>
|
||||
@if (!book.metadata!['reviewsLocked']) {
|
||||
@@ -531,7 +531,7 @@
|
||||
<div class="field-row metadata-ids-row">
|
||||
@for (field of audiobookMetadataFields; track field) {
|
||||
<div class="field-group metadata-id-field">
|
||||
<label>{{ field.label }} @if (isEmbeddable(field.controlName, book)) { <i class="pi pi-file-export embeddable-indicator" [pTooltip]="t('writtenToFileTooltip')" tooltipPosition="top"></i> }</label>
|
||||
<span>{{ field.label }} @if (isEmbeddable(field.controlName, book)) { <i class="pi pi-file-export embeddable-indicator" [pTooltip]="t('writtenToFileTooltip')" tooltipPosition="top"></i> }</span>
|
||||
<div class="field-with-lock">
|
||||
@if (field.type === 'boolean') {
|
||||
<p-select [formControlName]="field.controlName" [options]="booleanOptions" optionLabel="label" optionValue="value" appendTo="body"></p-select>
|
||||
@@ -567,7 +567,7 @@
|
||||
<div class="comic-text-grid">
|
||||
@for (field of comicTextFields; track field) {
|
||||
<div class="field-group">
|
||||
<label>{{ field.label }} @if (isEmbeddable(field.controlName, book)) { <i class="pi pi-file-export embeddable-indicator" [pTooltip]="t('writtenToFileTooltip')" tooltipPosition="top"></i> }</label>
|
||||
<span>{{ field.label }} @if (isEmbeddable(field.controlName, book)) { <i class="pi pi-file-export embeddable-indicator" [pTooltip]="t('writtenToFileTooltip')" tooltipPosition="top"></i> }</span>
|
||||
<div class="field-with-lock">
|
||||
@if (field.type === 'boolean') {
|
||||
<p-select [formControlName]="field.controlName" [options]="booleanOptions" optionLabel="label" optionValue="value" size="small" appendTo="body"></p-select>
|
||||
@@ -589,7 +589,7 @@
|
||||
<div class="comic-array-grid">
|
||||
@for (field of comicArrayFields; track field) {
|
||||
<div class="field-group">
|
||||
<label>{{ field.label }} @if (isEmbeddable(field.controlName, book)) { <i class="pi pi-file-export embeddable-indicator" [pTooltip]="t('writtenToFileTooltip')" tooltipPosition="top"></i> }</label>
|
||||
<span>{{ field.label }} @if (isEmbeddable(field.controlName, book)) { <i class="pi pi-file-export embeddable-indicator" [pTooltip]="t('writtenToFileTooltip')" tooltipPosition="top"></i> }</span>
|
||||
<div class="field-with-lock">
|
||||
<div class="autocomplete-wrapper">
|
||||
<p-autoComplete
|
||||
@@ -618,7 +618,7 @@
|
||||
@for (field of comicTextareaFields; track field) {
|
||||
<div class="field-row comic-array-row">
|
||||
<div class="field-group full-width">
|
||||
<label>{{ field.label }} @if (isEmbeddable(field.controlName, book)) { <i class="pi pi-file-export embeddable-indicator" [pTooltip]="t('writtenToFileTooltip')" tooltipPosition="top"></i> }</label>
|
||||
<span>{{ field.label }} @if (isEmbeddable(field.controlName, book)) { <i class="pi pi-file-export embeddable-indicator" [pTooltip]="t('writtenToFileTooltip')" tooltipPosition="top"></i> }</span>
|
||||
<div class="field-with-lock description-with-lock">
|
||||
<textarea pTextarea [formControlName]="field.controlName" rows="4"></textarea>
|
||||
@if (!metadataForm.get(field.lockedKey)?.value) {
|
||||
|
||||
+14
-14
@@ -51,13 +51,13 @@
|
||||
<!-- Ebook Cover Row -->
|
||||
@if (!currentBook || hasEbookFormat(currentBook)) {
|
||||
<div class="field-row cover-field-row">
|
||||
<label class="field-label">
|
||||
<span class="field-label">
|
||||
@if (currentBook && supportsDualCovers(currentBook)) {
|
||||
<i class="pi pi-book cover-type-icon"></i> {{ t('coverLabelEbook') }}
|
||||
} @else {
|
||||
{{ t('coverLabel') }}
|
||||
}
|
||||
</label>
|
||||
</span>
|
||||
<div class="field-content">
|
||||
<div class="field-side current cover-side">
|
||||
<span class="cover-label mobile-only">{{ t('mobileCurrentLabel') }}</span>
|
||||
@@ -116,9 +116,9 @@
|
||||
<!-- Audiobook Cover Row -->
|
||||
@if (currentBook && hasAudiobookFormat(currentBook)) {
|
||||
<div class="field-row cover-field-row audiobook-cover-row">
|
||||
<label class="field-label">
|
||||
<span class="field-label">
|
||||
<i class="pi pi-headphones cover-type-icon"></i> {{ t('coverLabelAudiobook') }}
|
||||
</label>
|
||||
</span>
|
||||
<div class="field-content">
|
||||
<div class="field-side current cover-side">
|
||||
<span class="cover-label mobile-only">{{ t('mobileCurrentLabel') }}</span>
|
||||
@@ -197,7 +197,7 @@
|
||||
<div class="section-content">
|
||||
@for (field of metadataFieldsTop; track field) {
|
||||
<div class="field-row">
|
||||
<label class="field-label">{{ field.label }}</label>
|
||||
<span class="field-label">{{ field.label }}</span>
|
||||
<div class="field-content">
|
||||
<div class="field-side current">
|
||||
<button
|
||||
@@ -247,7 +247,7 @@
|
||||
<div class="section-content">
|
||||
@for (field of metadataChips; track field) {
|
||||
<div class="field-row">
|
||||
<label class="field-label">{{ field.label }}</label>
|
||||
<span class="field-label">{{ field.label }}</span>
|
||||
<div class="field-content">
|
||||
<div class="field-side current">
|
||||
<button
|
||||
@@ -344,7 +344,7 @@
|
||||
<div class="section-content">
|
||||
@for (field of metadataDescription; track field) {
|
||||
<div class="field-row textarea-row">
|
||||
<label class="field-label">{{ field.label }}</label>
|
||||
<span class="field-label">{{ field.label }}</span>
|
||||
<div class="field-content">
|
||||
<div class="field-side current">
|
||||
<button
|
||||
@@ -390,7 +390,7 @@
|
||||
<div class="section-content">
|
||||
@for (field of metadataSeriesFields; track field) {
|
||||
<div class="field-row">
|
||||
<label class="field-label">{{ field.label }}</label>
|
||||
<span class="field-label">{{ field.label }}</span>
|
||||
<div class="field-content">
|
||||
<div class="field-side current">
|
||||
<button
|
||||
@@ -436,7 +436,7 @@
|
||||
<div class="section-content">
|
||||
@for (field of metadataBookDetailsFields; track field) {
|
||||
<div class="field-row">
|
||||
<label class="field-label">{{ field.label }}</label>
|
||||
<span class="field-label">{{ field.label }}</span>
|
||||
<div class="field-content">
|
||||
<div class="field-side current">
|
||||
<button
|
||||
@@ -489,7 +489,7 @@
|
||||
<!-- Comic text/number/boolean fields -->
|
||||
@for (field of comicTextFields; track field) {
|
||||
<div class="field-row">
|
||||
<label class="field-label">{{ field.label }}</label>
|
||||
<span class="field-label">{{ field.label }}</span>
|
||||
<div class="field-content">
|
||||
<div class="field-side current">
|
||||
<button
|
||||
@@ -544,7 +544,7 @@
|
||||
<!-- Comic array fields (creators, characters, teams, locations) -->
|
||||
@for (field of comicArrayFields; track field) {
|
||||
<div class="field-row">
|
||||
<label class="field-label">{{ field.label }}</label>
|
||||
<span class="field-label">{{ field.label }}</span>
|
||||
<div class="field-content">
|
||||
<div class="field-side current">
|
||||
<button
|
||||
@@ -601,7 +601,7 @@
|
||||
<!-- Comic textarea fields (notes) -->
|
||||
@for (field of comicTextareaFields; track field) {
|
||||
<div class="field-row textarea-row">
|
||||
<label class="field-label">{{ field.label }}</label>
|
||||
<span class="field-label">{{ field.label }}</span>
|
||||
<div class="field-content">
|
||||
<div class="field-side current">
|
||||
<button
|
||||
@@ -650,7 +650,7 @@
|
||||
<div class="section-content">
|
||||
@for (field of audiobookMetadataFields; track field) {
|
||||
<div class="field-row">
|
||||
<label class="field-label">{{ field.label }}</label>
|
||||
<span class="field-label">{{ field.label }}</span>
|
||||
<div class="field-content">
|
||||
<div class="field-side current">
|
||||
<button
|
||||
@@ -716,7 +716,7 @@
|
||||
<div class="section-content">
|
||||
@for (field of metadataProviderFields; track field) {
|
||||
<div class="field-row">
|
||||
<label class="field-label">{{ field.label }}</label>
|
||||
<span class="field-label">{{ field.label }}</span>
|
||||
<div class="field-content">
|
||||
<div class="field-side current">
|
||||
<button
|
||||
|
||||
+8
-4
@@ -12,11 +12,12 @@
|
||||
<form [formGroup]="form" (ngSubmit)="onSubmit()" class="search-card">
|
||||
<div class="search-grid">
|
||||
<div class="search-field search-field-provider">
|
||||
<label>
|
||||
<label for="metadata-search-providers">
|
||||
<i class="pi pi-globe"></i>
|
||||
{{ t('providersLabel') }}
|
||||
</label>
|
||||
<p-multiselect
|
||||
inputId="metadata-search-providers"
|
||||
[filter]="false"
|
||||
showToggleAll="false"
|
||||
[options]="providers"
|
||||
@@ -27,7 +28,7 @@
|
||||
</div>
|
||||
|
||||
<div class="search-field">
|
||||
<label>
|
||||
<label for="metadata-search-isbn">
|
||||
<i class="pi pi-barcode"></i>
|
||||
{{ t('isbnLabel') }}
|
||||
<i
|
||||
@@ -38,6 +39,7 @@
|
||||
></i>
|
||||
</label>
|
||||
<input
|
||||
id="metadata-search-isbn"
|
||||
pInputText
|
||||
formControlName="isbn"
|
||||
[placeholder]="t('isbnPlaceholder')"
|
||||
@@ -45,11 +47,12 @@
|
||||
</div>
|
||||
|
||||
<div class="search-field">
|
||||
<label>
|
||||
<label for="metadata-search-title">
|
||||
<i class="pi pi-book"></i>
|
||||
{{ t('titleLabel') }}
|
||||
</label>
|
||||
<input
|
||||
id="metadata-search-title"
|
||||
pInputText
|
||||
formControlName="title"
|
||||
[placeholder]="t('titlePlaceholder')"
|
||||
@@ -57,11 +60,12 @@
|
||||
</div>
|
||||
|
||||
<div class="search-field">
|
||||
<label>
|
||||
<label for="metadata-search-author">
|
||||
<i class="pi pi-user"></i>
|
||||
{{ t('authorLabel') }}
|
||||
</label>
|
||||
<input
|
||||
id="metadata-search-author"
|
||||
pInputText
|
||||
formControlName="author"
|
||||
[placeholder]="t('authorPlaceholder')"
|
||||
|
||||
+2
-2
@@ -333,10 +333,10 @@
|
||||
|
||||
<!-- Cover Image Upload Section -->
|
||||
<div class="cover-section">
|
||||
<label class="cover-label">
|
||||
<span class="cover-label">
|
||||
<i class="pi pi-image"></i>
|
||||
Cover Image
|
||||
</label>
|
||||
</span>
|
||||
<p class="cover-description">
|
||||
Upload an image to set as the cover for all selected books.
|
||||
</p>
|
||||
|
||||
+9
-9
@@ -4,7 +4,7 @@
|
||||
<div class="panel-body">
|
||||
<!-- Fit Mode -->
|
||||
<div class="control">
|
||||
<label>{{ 'readerCbx.quickSettings.fitMode' | transloco }}</label>
|
||||
<span>{{ 'readerCbx.quickSettings.fitMode' | transloco }}</span>
|
||||
<div class="control-right">
|
||||
<div class="button-group">
|
||||
@for (option of fitModeOptions; track option.value) {
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
<!-- Scroll Mode -->
|
||||
<div class="control">
|
||||
<label>{{ 'readerCbx.quickSettings.scrollMode' | transloco }}</label>
|
||||
<span>{{ 'readerCbx.quickSettings.scrollMode' | transloco }}</span>
|
||||
<div class="control-right">
|
||||
<div class="button-group text-btns">
|
||||
@for (option of scrollModeOptions; track option.value) {
|
||||
@@ -41,7 +41,7 @@
|
||||
<!-- Page View (only in paginated mode) -->
|
||||
@if (isPaginated && !isPhonePortrait) {
|
||||
<div class="control">
|
||||
<label>{{ 'readerCbx.quickSettings.pageView' | transloco }}</label>
|
||||
<span>{{ 'readerCbx.quickSettings.pageView' | transloco }}</span>
|
||||
<div class="control-right">
|
||||
<span class="mode-label">{{ isTwoPageView ? ('readerCbx.quickSettings.twoPage' | transloco) : ('readerCbx.quickSettings.single' | transloco) }}</span>
|
||||
<button class="switch" [class.active]="isTwoPageView" (click)="onPageViewToggle()">
|
||||
@@ -54,7 +54,7 @@
|
||||
<!-- Page Spread (only in two-page mode) -->
|
||||
@if (isPaginated && isTwoPageView) {
|
||||
<div class="control">
|
||||
<label>{{ 'readerCbx.quickSettings.pageSpread' | transloco }}</label>
|
||||
<span>{{ 'readerCbx.quickSettings.pageSpread' | transloco }}</span>
|
||||
<div class="control-right">
|
||||
<span class="mode-label">{{ state().pageSpread === CbxPageSpread.ODD ? ('readerCbx.quickSettings.oddFirst' | transloco) : ('readerCbx.quickSettings.evenFirst' | transloco) }}</span>
|
||||
<button class="switch" [class.active]="state().pageSpread === CbxPageSpread.EVEN" (click)="onPageSpreadToggle()">
|
||||
@@ -66,7 +66,7 @@
|
||||
|
||||
<!-- Reading Direction -->
|
||||
<div class="control">
|
||||
<label>{{ 'readerCbx.quickSettings.readingDirection' | transloco }}</label>
|
||||
<span>{{ 'readerCbx.quickSettings.readingDirection' | transloco }}</span>
|
||||
<div class="control-right">
|
||||
<span class="mode-label">{{ state().readingDirection === CbxReadingDirection.LTR ? ('readerCbx.quickSettings.leftToRight' | transloco) : ('readerCbx.quickSettings.rightToLeft' | transloco) }}</span>
|
||||
<button class="switch" [class.active]="state().readingDirection === CbxReadingDirection.RTL" (click)="onReadingDirectionToggle()">
|
||||
@@ -77,7 +77,7 @@
|
||||
|
||||
<!-- Slideshow Interval -->
|
||||
<div class="control">
|
||||
<label>{{ 'readerCbx.quickSettings.slideshowInterval' | transloco }}</label>
|
||||
<span>{{ 'readerCbx.quickSettings.slideshowInterval' | transloco }}</span>
|
||||
<div class="control-right">
|
||||
<div class="button-group text-btns">
|
||||
@for (option of slideshowIntervalOptions; track option.value) {
|
||||
@@ -95,7 +95,7 @@
|
||||
|
||||
<!-- Background Color -->
|
||||
<div class="control">
|
||||
<label>{{ 'readerCbx.quickSettings.background' | transloco }}</label>
|
||||
<span>{{ 'readerCbx.quickSettings.background' | transloco }}</span>
|
||||
<div class="control-right">
|
||||
<div class="button-group">
|
||||
@for (option of backgroundOptions; track option.value) {
|
||||
@@ -113,7 +113,7 @@
|
||||
|
||||
<!-- Magnifier Lens Size -->
|
||||
<div class="control">
|
||||
<label>{{ 'readerCbx.quickSettings.magnifierLensSize' | transloco }}</label>
|
||||
<span>{{ 'readerCbx.quickSettings.magnifierLensSize' | transloco }}</span>
|
||||
<div class="control-right">
|
||||
<div class="button-group text-btns">
|
||||
@for (option of magnifierLensSizeOptions; track option.value) {
|
||||
@@ -131,7 +131,7 @@
|
||||
|
||||
<!-- Magnifier Zoom -->
|
||||
<div class="control">
|
||||
<label>{{ 'readerCbx.quickSettings.magnifierZoom' | transloco }}</label>
|
||||
<span>{{ 'readerCbx.quickSettings.magnifierZoom' | transloco }}</span>
|
||||
<div class="control-right">
|
||||
<div class="button-group text-btns">
|
||||
@for (option of magnifierZoomOptions; track option.value) {
|
||||
|
||||
+7
-7
@@ -83,7 +83,7 @@
|
||||
|
||||
<div class="section-header">{{ t('fontSettings') }}</div>
|
||||
<div class="control">
|
||||
<label>{{ t('fontSize') }}</label>
|
||||
<span>{{ t('fontSize') }}</span>
|
||||
<div class="control-right">
|
||||
<div class="stepper">
|
||||
<button (click)="decreaseFontSize()">−</button>
|
||||
@@ -93,7 +93,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="control">
|
||||
<label>{{ t('lineHeight') }}</label>
|
||||
<span>{{ t('lineHeight') }}</span>
|
||||
<div class="control-right">
|
||||
<div class="stepper">
|
||||
<button (click)="decreaseLineHeight()">−</button>
|
||||
@@ -124,7 +124,7 @@
|
||||
<div class="section-header">{{ t('layout') }}</div>
|
||||
|
||||
<div class="control">
|
||||
<label>{{ t('readingFlow') }}</label>
|
||||
<span>{{ t('readingFlow') }}</span>
|
||||
<div class="control-right">
|
||||
<div class="radio-group">
|
||||
<label>
|
||||
@@ -152,7 +152,7 @@
|
||||
</div>
|
||||
|
||||
<div class="control">
|
||||
<label>{{ t('maxColumns') }}</label>
|
||||
<span>{{ t('maxColumns') }}</span>
|
||||
<div class="control-right">
|
||||
<div class="stepper">
|
||||
<button (click)="decreaseMaxColumnCount()">−</button>
|
||||
@@ -163,7 +163,7 @@
|
||||
</div>
|
||||
|
||||
<div class="control">
|
||||
<label>{{ t('columnGap') }}</label>
|
||||
<span>{{ t('columnGap') }}</span>
|
||||
<div class="control-right gap-control">
|
||||
<input
|
||||
#gapInput
|
||||
@@ -179,7 +179,7 @@
|
||||
</div>
|
||||
|
||||
<div class="control">
|
||||
<label>{{ t('maxWidth') }}</label>
|
||||
<span>{{ t('maxWidth') }}</span>
|
||||
<div class="control-right">
|
||||
<div class="stepper">
|
||||
<button (click)="decreaseMaxInlineSize()">−</button>
|
||||
@@ -190,7 +190,7 @@
|
||||
</div>
|
||||
|
||||
<div class="control">
|
||||
<label>{{ t('maxHeight') }}</label>
|
||||
<span>{{ t('maxHeight') }}</span>
|
||||
<div class="control-right">
|
||||
<div class="stepper">
|
||||
<button (click)="decreaseMaxBlockSize()">−</button>
|
||||
|
||||
@@ -72,8 +72,8 @@
|
||||
|
||||
<div class="nav-section">
|
||||
<div class="goto-row">
|
||||
<label>{{ t('goTo') }}</label>
|
||||
<input type="number" [value]="currentPercentage" #percentInput
|
||||
<label for="reader-go-to-percentage">{{ t('goTo') }}</label>
|
||||
<input id="reader-go-to-percentage" type="number" [value]="currentPercentage" #percentInput
|
||||
(keydown.enter)="onGoToPercentage(percentInput.value)" [min]="0" [max]="100"/>
|
||||
<span>%</span>
|
||||
<button class="go-btn" (click)="onGoToPercentage(percentInput.value)" [title]="t('goToPercentage')">{{ t('go') }}</button>
|
||||
|
||||
+3
-3
@@ -5,7 +5,7 @@
|
||||
<div class="panel-body">
|
||||
<!-- Dark Mode -->
|
||||
<div class="control">
|
||||
<label>{{ t('darkMode') }}</label>
|
||||
<span>{{ t('darkMode') }}</span>
|
||||
<div class="control-right">
|
||||
<span class="mode-icon sun" [class.active]="!isDarkMode">☀️</span>
|
||||
<button class="switch" [class.active]="isDarkMode" (click)="toggleDarkMode()">
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
<!-- Font Size -->
|
||||
<div class="control">
|
||||
<label>{{ t('fontSize') }}</label>
|
||||
<span>{{ t('fontSize') }}</span>
|
||||
<div class="control-right">
|
||||
<div class="stepper">
|
||||
<button (click)="decreaseFontSize()">−</button>
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
<!-- Line Spacing -->
|
||||
<div class="control">
|
||||
<label>{{ t('lineSpacing') }}</label>
|
||||
<span>{{ t('lineSpacing') }}</span>
|
||||
<div class="control-right">
|
||||
<div class="stepper">
|
||||
<button (click)="decreaseLineHeight()">−</button>
|
||||
|
||||
@@ -59,10 +59,10 @@
|
||||
</div>
|
||||
|
||||
<div class="font-preview-area">
|
||||
<label class="preview-label">
|
||||
<span class="preview-label">
|
||||
<i class="pi pi-eye"></i>
|
||||
{{ t('preview') }}
|
||||
</label>
|
||||
</span>
|
||||
@if (!fontsLoadedInBrowser) {
|
||||
<div class="font-preview-skeleton">
|
||||
<p-skeleton width="100%" height="1rem" class="mb-3"></p-skeleton>
|
||||
|
||||
+2
-2
@@ -65,10 +65,10 @@
|
||||
|
||||
@if (previewFontFamily) {
|
||||
<div class="preview-section">
|
||||
<label class="preview-label">
|
||||
<span class="preview-label">
|
||||
<i class="pi pi-eye"></i>
|
||||
{{ t('fontPreview') }}
|
||||
</label>
|
||||
</span>
|
||||
<div class="font-preview" [style.font-family]="previewFontFamily">
|
||||
<p class="preview-paragraph">
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
||||
|
||||
+10
-10
@@ -107,10 +107,10 @@
|
||||
<div class="provider-details">
|
||||
<div class="detail-grid">
|
||||
<div class="detail-item">
|
||||
<label class="detail-label">
|
||||
<span class="detail-label">
|
||||
<i class="pi pi-server"></i>
|
||||
{{ t('host') }}
|
||||
</label>
|
||||
</span>
|
||||
@if (provider.isEditing) {
|
||||
<input type="text" pInputText [(ngModel)]="provider.host" [placeholder]="t('hostPlaceholder')"/>
|
||||
} @else {
|
||||
@@ -119,10 +119,10 @@
|
||||
</div>
|
||||
|
||||
<div class="detail-item">
|
||||
<label class="detail-label">
|
||||
<span class="detail-label">
|
||||
<i class="pi pi-link"></i>
|
||||
{{ t('port') }}
|
||||
</label>
|
||||
</span>
|
||||
@if (provider.isEditing) {
|
||||
<input type="number" pInputText [(ngModel)]="provider.port" [placeholder]="t('portPlaceholder')"/>
|
||||
} @else {
|
||||
@@ -131,10 +131,10 @@
|
||||
</div>
|
||||
|
||||
<div class="detail-item">
|
||||
<label class="detail-label">
|
||||
<span class="detail-label">
|
||||
<i class="pi pi-user"></i>
|
||||
{{ t('username') }}
|
||||
</label>
|
||||
</span>
|
||||
@if (provider.isEditing) {
|
||||
<input type="text" pInputText [(ngModel)]="provider.username" [placeholder]="t('usernamePlaceholder')"/>
|
||||
} @else {
|
||||
@@ -143,10 +143,10 @@
|
||||
</div>
|
||||
|
||||
<div class="detail-item">
|
||||
<label class="detail-label">
|
||||
<span class="detail-label">
|
||||
<i class="pi pi-lock"></i>
|
||||
{{ t('password') }}
|
||||
</label>
|
||||
</span>
|
||||
@if (provider.isEditing) {
|
||||
<input type="password" pInputText [(ngModel)]="provider.password" [placeholder]="t('passwordPlaceholder')"/>
|
||||
} @else {
|
||||
@@ -155,10 +155,10 @@
|
||||
</div>
|
||||
|
||||
<div class="detail-item detail-item-wide">
|
||||
<label class="detail-label">
|
||||
<span class="detail-label">
|
||||
<i class="pi pi-envelope"></i>
|
||||
{{ t('fromAddress') }}
|
||||
</label>
|
||||
</span>
|
||||
@if (provider.isEditing) {
|
||||
<input type="email" pInputText [(ngModel)]="provider.fromAddress" [placeholder]="t('fromAddressPlaceholder')"/>
|
||||
} @else {
|
||||
|
||||
+4
-4
@@ -47,18 +47,18 @@
|
||||
@if (recipient.isEditing) {
|
||||
<div class="edit-form">
|
||||
<div class="form-field">
|
||||
<label class="field-label">
|
||||
<label class="field-label" [for]="'recipient-email-' + recipient.id">
|
||||
<i class="pi pi-envelope"></i>
|
||||
{{ t('email') }}
|
||||
</label>
|
||||
<input type="email" pInputText [(ngModel)]="recipient.email" [placeholder]="t('emailPlaceholder')"/>
|
||||
<input [id]="'recipient-email-' + recipient.id" type="email" pInputText [(ngModel)]="recipient.email" [placeholder]="t('emailPlaceholder')"/>
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<label class="field-label">
|
||||
<label class="field-label" [for]="'recipient-name-' + recipient.id">
|
||||
<i class="pi pi-user"></i>
|
||||
{{ t('name') }}
|
||||
</label>
|
||||
<input type="text" pInputText [(ngModel)]="recipient.name" [placeholder]="t('namePlaceholder')"/>
|
||||
<input [id]="'recipient-name-' + recipient.id" type="text" pInputText [(ngModel)]="recipient.name" [placeholder]="t('namePlaceholder')"/>
|
||||
</div>
|
||||
</div>
|
||||
} @else {
|
||||
|
||||
+2
-1
@@ -38,8 +38,9 @@
|
||||
<div class="weights-grid">
|
||||
@for (key of orderedKeys; track key) {
|
||||
<div class="weight-field">
|
||||
<label class="field-label">{{ getFieldLabel(key) }}</label>
|
||||
<label class="field-label" [for]="'metadata-weight-' + key">{{ getFieldLabel(key) }}</label>
|
||||
<p-inputNumber
|
||||
[inputId]="'metadata-weight-' + key"
|
||||
size="small"
|
||||
[formControlName]="key"
|
||||
[min]="0"
|
||||
|
||||
+7
-7
@@ -24,7 +24,7 @@
|
||||
@if (amazonEnabled) {
|
||||
<div class="setting-options">
|
||||
<div class="config-field">
|
||||
<label class="config-label">{{ t('region') }}</label>
|
||||
<span class="config-label">{{ t('region') }}</span>
|
||||
<p-select
|
||||
[options]="amazonDomains"
|
||||
[(ngModel)]="selectedAmazonDomain"
|
||||
@@ -34,7 +34,7 @@
|
||||
</div>
|
||||
<div class="config-field">
|
||||
<div class="config-label-row">
|
||||
<label class="config-label">{{ t('cookieLabel') }}</label>
|
||||
<span class="config-label">{{ t('cookieLabel') }}</span>
|
||||
<app-external-doc-link docType="amazonCookie"></app-external-doc-link>
|
||||
</div>
|
||||
<p class="config-description">{{ t('cookieDesc') }}</p>
|
||||
@@ -57,7 +57,7 @@
|
||||
@if (googleEnabled) {
|
||||
<div class="setting-options">
|
||||
<div class="config-field">
|
||||
<label class="config-label">{{ t('languageRestriction') }}</label>
|
||||
<span class="config-label">{{ t('languageRestriction') }}</span>
|
||||
<p-select
|
||||
[options]="googleLanguages"
|
||||
[(ngModel)]="selectedGoogleLanguage"
|
||||
@@ -67,7 +67,7 @@
|
||||
</p-select>
|
||||
</div>
|
||||
<div class="config-field">
|
||||
<label class="config-label">{{ t('apiKeyOptional') }}</label>
|
||||
<span class="config-label">{{ t('apiKeyOptional') }}</span>
|
||||
<p class="config-description">{{ t('googleApiDesc') }}</p>
|
||||
<input
|
||||
type="text"
|
||||
@@ -91,7 +91,7 @@
|
||||
<div class="setting-options">
|
||||
<div class="config-field">
|
||||
<div class="config-label-row">
|
||||
<label class="config-label">{{ t('apiToken') }}</label>
|
||||
<span class="config-label">{{ t('apiToken') }}</span>
|
||||
<app-external-doc-link docType="hardcover"></app-external-doc-link>
|
||||
</div>
|
||||
<input
|
||||
@@ -113,7 +113,7 @@
|
||||
@if (comicvineEnabled) {
|
||||
<div class="setting-options">
|
||||
<div class="config-field">
|
||||
<label class="config-label">{{ t('apiToken') }}</label>
|
||||
<span class="config-label">{{ t('apiToken') }}</span>
|
||||
<input
|
||||
type="text"
|
||||
pInputText
|
||||
@@ -134,7 +134,7 @@
|
||||
@if (audibleEnabled) {
|
||||
<div class="setting-options">
|
||||
<div class="config-field">
|
||||
<label class="config-label">{{ t('region') }}</label>
|
||||
<span class="config-label">{{ t('region') }}</span>
|
||||
<p-select
|
||||
[options]="audibleDomains"
|
||||
[(ngModel)]="selectedAudibleDomain"
|
||||
|
||||
+8
-4
@@ -50,8 +50,9 @@
|
||||
@if (metadataPersistence.saveToOriginalFile.epub.enabled) {
|
||||
<div class="setting-options">
|
||||
<div class="filesize-input">
|
||||
<label>{{ t('maxFileSize') }}</label>
|
||||
<label for="metadata-persistence-epub-max-file-size">{{ t('maxFileSize') }}</label>
|
||||
<input
|
||||
id="metadata-persistence-epub-max-file-size"
|
||||
type="number"
|
||||
[(ngModel)]="metadataPersistence.saveToOriginalFile.epub.maxFileSizeInMb"
|
||||
(change)="onFilesizeChange('epub')"
|
||||
@@ -82,8 +83,9 @@
|
||||
@if (metadataPersistence.saveToOriginalFile.cbx.enabled) {
|
||||
<div class="setting-options">
|
||||
<div class="filesize-input">
|
||||
<label>{{ t('maxFileSize') }}</label>
|
||||
<label for="metadata-persistence-cbx-max-file-size">{{ t('maxFileSize') }}</label>
|
||||
<input
|
||||
id="metadata-persistence-cbx-max-file-size"
|
||||
type="number"
|
||||
[(ngModel)]="metadataPersistence.saveToOriginalFile.cbx.maxFileSizeInMb"
|
||||
(change)="onFilesizeChange('cbx')"
|
||||
@@ -117,8 +119,9 @@
|
||||
@if (metadataPersistence.saveToOriginalFile.pdf.enabled) {
|
||||
<div class="setting-options">
|
||||
<div class="filesize-input">
|
||||
<label>{{ t('maxFileSize') }}</label>
|
||||
<label for="metadata-persistence-pdf-max-file-size">{{ t('maxFileSize') }}</label>
|
||||
<input
|
||||
id="metadata-persistence-pdf-max-file-size"
|
||||
type="number"
|
||||
[(ngModel)]="metadataPersistence.saveToOriginalFile.pdf.maxFileSizeInMb"
|
||||
(change)="onFilesizeChange('pdf')"
|
||||
@@ -152,8 +155,9 @@
|
||||
@if (metadataPersistence.saveToOriginalFile.audiobook.enabled) {
|
||||
<div class="setting-options">
|
||||
<div class="filesize-input">
|
||||
<label>{{ t('maxFileSize') }}</label>
|
||||
<label for="metadata-persistence-audiobook-max-file-size">{{ t('maxFileSize') }}</label>
|
||||
<input
|
||||
id="metadata-persistence-audiobook-max-file-size"
|
||||
type="number"
|
||||
[(ngModel)]="metadataPersistence.saveToOriginalFile.audiobook.maxFileSizeInMb"
|
||||
(change)="onFilesizeChange('audiobook')"
|
||||
|
||||
+2
-1
@@ -52,8 +52,9 @@
|
||||
</div>
|
||||
@if (provider.enabled) {
|
||||
<div class="max-reviews-control">
|
||||
<label class="max-reviews-label">{{ t('maxLabel') }}</label>
|
||||
<label class="max-reviews-label" [for]="'public-review-max-reviews-' + provider.provider">{{ t('maxLabel') }}</label>
|
||||
<input
|
||||
[id]="'public-review-max-reviews-' + provider.provider"
|
||||
type="number"
|
||||
class="max-reviews-input"
|
||||
min="1"
|
||||
|
||||
@@ -166,7 +166,7 @@
|
||||
|
||||
@if (!isTaskRunning(taskInfo.taskType) && taskInfo.taskType === TaskType.REFRESH_LIBRARY_METADATA) {
|
||||
<div class="task-options">
|
||||
<label class="option-label">{{ t('metadataReplace.label') }}</label>
|
||||
<span class="option-label">{{ t('metadataReplace.label') }}</span>
|
||||
<p-select
|
||||
[options]="metadataReplaceOptions"
|
||||
[(ngModel)]="selectedMetadataReplaceMode"
|
||||
|
||||
+6
-3
@@ -4,8 +4,9 @@
|
||||
<div class="add-restriction-form">
|
||||
<div class="form-row">
|
||||
<div class="form-field">
|
||||
<label>{{ t('type') }}</label>
|
||||
<label for="content-restriction-type">{{ t('type') }}</label>
|
||||
<p-select
|
||||
inputId="content-restriction-type"
|
||||
[options]="restrictionTypes"
|
||||
[(ngModel)]="newRestriction.restrictionType"
|
||||
optionValue="value"
|
||||
@@ -20,8 +21,9 @@
|
||||
</p-select>
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<label>{{ t('mode') }}</label>
|
||||
<label for="content-restriction-mode">{{ t('mode') }}</label>
|
||||
<p-select
|
||||
inputId="content-restriction-mode"
|
||||
[options]="restrictionModes"
|
||||
[(ngModel)]="newRestriction.mode"
|
||||
optionValue="value"
|
||||
@@ -36,8 +38,9 @@
|
||||
</p-select>
|
||||
</div>
|
||||
<div class="form-field form-field-wide">
|
||||
<label>{{ t('value') }}</label>
|
||||
<label for="content-restriction-value">{{ t('value') }}</label>
|
||||
<p-select
|
||||
inputId="content-restriction-value"
|
||||
[options]="getValueOptions()"
|
||||
[(ngModel)]="newRestriction.value"
|
||||
optionLabel="label"
|
||||
|
||||
+12
-6
@@ -30,8 +30,9 @@
|
||||
|
||||
<div class="form-fields-grid">
|
||||
<div class="form-field">
|
||||
<label class="field-label">{{ t('createDialog.fullName') }}</label>
|
||||
<label class="field-label" for="create-user-full-name">{{ t('createDialog.fullName') }}</label>
|
||||
<input
|
||||
id="create-user-full-name"
|
||||
type="text"
|
||||
pInputText
|
||||
formControlName="name"
|
||||
@@ -47,8 +48,9 @@
|
||||
</div>
|
||||
|
||||
<div class="form-field">
|
||||
<label class="field-label">{{ t('createDialog.username') }}</label>
|
||||
<label class="field-label" for="create-user-username">{{ t('createDialog.username') }}</label>
|
||||
<input
|
||||
id="create-user-username"
|
||||
type="text"
|
||||
pInputText
|
||||
formControlName="username"
|
||||
@@ -64,8 +66,9 @@
|
||||
</div>
|
||||
|
||||
<div class="form-field field-full">
|
||||
<label class="field-label">{{ t('createDialog.email') }}</label>
|
||||
<label class="field-label" for="create-user-email">{{ t('createDialog.email') }}</label>
|
||||
<input
|
||||
id="create-user-email"
|
||||
type="email"
|
||||
pInputText
|
||||
formControlName="email"
|
||||
@@ -83,8 +86,9 @@
|
||||
<div class="password-row field-full">
|
||||
<div class="password-grid">
|
||||
<div class="form-field">
|
||||
<label class="field-label">{{ t('createDialog.password') }}</label>
|
||||
<label class="field-label" for="create-user-password">{{ t('createDialog.password') }}</label>
|
||||
<input
|
||||
id="create-user-password"
|
||||
type="password"
|
||||
pInputText
|
||||
formControlName="password"
|
||||
@@ -100,8 +104,9 @@
|
||||
</div>
|
||||
|
||||
<div class="form-field">
|
||||
<label class="field-label">{{ t('createDialog.confirmPassword') }}</label>
|
||||
<label class="field-label" for="create-user-confirm-password">{{ t('createDialog.confirmPassword') }}</label>
|
||||
<input
|
||||
id="create-user-confirm-password"
|
||||
type="password"
|
||||
pInputText
|
||||
formControlName="confirmPassword"
|
||||
@@ -135,8 +140,9 @@
|
||||
</h3>
|
||||
|
||||
<div class="form-field">
|
||||
<label class="field-label">{{ t('createDialog.accessibleLibraries') }}</label>
|
||||
<label class="field-label" for="create-user-libraries">{{ t('createDialog.accessibleLibraries') }}</label>
|
||||
<p-multiselect
|
||||
inputId="create-user-libraries"
|
||||
[options]="libraries"
|
||||
formControlName="selectedLibraries"
|
||||
[placeholder]="t('createDialog.selectLibraries')"
|
||||
|
||||
@@ -185,25 +185,26 @@
|
||||
</h4>
|
||||
<div class="details-grid">
|
||||
<div class="detail-field">
|
||||
<label>{{ t('userInfo.fullName') }}</label>
|
||||
<label [for]="'user-full-name-' + user.id">{{ t('userInfo.fullName') }}</label>
|
||||
@if (user.isEditing) {
|
||||
<input type="text" pInputText [(ngModel)]="user.name" [placeholder]="t('userInfo.enterFullName')"/>
|
||||
<input [id]="'user-full-name-' + user.id" type="text" pInputText [(ngModel)]="user.name" [placeholder]="t('userInfo.enterFullName')"/>
|
||||
} @else {
|
||||
<span>{{ user.name || t('userInfo.notSet') }}</span>
|
||||
}
|
||||
</div>
|
||||
<div class="detail-field">
|
||||
<label>{{ t('userInfo.email') }}</label>
|
||||
<label [for]="'user-email-' + user.id">{{ t('userInfo.email') }}</label>
|
||||
@if (user.isEditing) {
|
||||
<input type="email" pInputText [(ngModel)]="user.email" [placeholder]="t('userInfo.enterEmail')"/>
|
||||
<input [id]="'user-email-' + user.id" type="email" pInputText [(ngModel)]="user.email" [placeholder]="t('userInfo.enterEmail')"/>
|
||||
} @else {
|
||||
<span>{{ user.email || t('userInfo.notSet') }}</span>
|
||||
}
|
||||
</div>
|
||||
<div class="detail-field detail-field-wide">
|
||||
<label>{{ t('userInfo.libraries') }}</label>
|
||||
<label [for]="'user-libraries-' + user.id">{{ t('userInfo.libraries') }}</label>
|
||||
@if (user.isEditing) {
|
||||
<p-multiSelect
|
||||
[inputId]="'user-libraries-' + user.id"
|
||||
[options]="allLibraries"
|
||||
optionLabel="name"
|
||||
optionValue="id"
|
||||
|
||||
+3
-3
@@ -29,7 +29,7 @@
|
||||
</h3>
|
||||
|
||||
<div class="form-field">
|
||||
<label class="field-label">{{ t('username') }}</label>
|
||||
<label class="field-label" for="username">{{ t('username') }}</label>
|
||||
<input
|
||||
disabled
|
||||
id="username"
|
||||
@@ -41,7 +41,7 @@
|
||||
</div>
|
||||
|
||||
<div class="form-field">
|
||||
<label class="field-label">{{ t('fullName') }}</label>
|
||||
<label class="field-label" for="fullname">{{ t('fullName') }}</label>
|
||||
<input
|
||||
[disabled]="!isEditing"
|
||||
id="fullname"
|
||||
@@ -53,7 +53,7 @@
|
||||
</div>
|
||||
|
||||
<div class="form-field">
|
||||
<label class="field-label">{{ t('email') }}</label>
|
||||
<label class="field-label" for="email">{{ t('email') }}</label>
|
||||
<input
|
||||
[disabled]="!isEditing"
|
||||
id="email"
|
||||
|
||||
@@ -138,8 +138,9 @@
|
||||
|
||||
<div class="form-fields">
|
||||
<div class="form-field">
|
||||
<label>Icon Name</label>
|
||||
<label for="icon-picker-svg-name">Icon Name</label>
|
||||
<input
|
||||
id="icon-picker-svg-name"
|
||||
type="text"
|
||||
pInputText
|
||||
[(ngModel)]="svgName"
|
||||
@@ -149,8 +150,9 @@
|
||||
</div>
|
||||
|
||||
<div class="form-field">
|
||||
<label>SVG Code</label>
|
||||
<label for="icon-picker-svg-code">SVG Code</label>
|
||||
<textarea
|
||||
id="icon-picker-svg-code"
|
||||
pInputTextarea
|
||||
[(ngModel)]="svgContent"
|
||||
(ngModelChange)="onSvgContentChange()"
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
(click)="widthPanel.toggle($event)"></i>
|
||||
<p-popover #widthPanel appendTo="body">
|
||||
<div class="sidebar-width-popover">
|
||||
<label class="sidebar-width-popover-label">{{ sidebarWidth }}px</label>
|
||||
<span class="sidebar-width-popover-label">{{ sidebarWidth }}px</span>
|
||||
<p-slider
|
||||
[(ngModel)]="sidebarWidth"
|
||||
[min]="175"
|
||||
|
||||
+2
-1
@@ -2,7 +2,7 @@
|
||||
<div class="upload-dialog-content">
|
||||
<div class="upload-section">
|
||||
<div class="file-selector">
|
||||
<label class="file-label">{{ t('chooseFile') }}</label>
|
||||
<label class="file-label" for="upload-dialog-file-input">{{ t('chooseFile') }}</label>
|
||||
<p-button
|
||||
[label]="t('selectImage')"
|
||||
icon="pi pi-upload"
|
||||
@@ -12,6 +12,7 @@
|
||||
</p-button>
|
||||
</div>
|
||||
<input
|
||||
id="upload-dialog-file-input"
|
||||
#fileInput
|
||||
type="file"
|
||||
accept=".jpg,.jpeg,.png,image/jpeg,image/png"
|
||||
|
||||
Reference in New Issue
Block a user