mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-09 09:26:14 -08:00
104 lines
4.2 KiB
HTML
104 lines
4.2 KiB
HTML
<app-header
|
|
[title]="'SETTINGS.TITLE' | translate"
|
|
[subtitle]="'SETTINGS.SUBTITLE' | translate"
|
|
></app-header>
|
|
<form [formGroup]="settingsForm" (ngSubmit)="onSubmit()" novalidate>
|
|
<mat-card>
|
|
<mat-card-header class="card-header">
|
|
<div mat-card-subtitle>
|
|
{{ 'SETTINGS.DESCRIPTION' | translate }}
|
|
</div>
|
|
</mat-card-header>
|
|
<mat-card-content>
|
|
<mat-list>
|
|
<mat-list-item>
|
|
<div matLine fxLayout="row">
|
|
<p fxFlex>{{ 'SETTINGS.EPG_URL_LABEL' | translate }}</p>
|
|
<p fxFlex fxLayoutAlign="start center">
|
|
<mat-form-field class="full-width">
|
|
<input
|
|
[placeholder]="
|
|
'SETTINGS.EPG_URL_PLACEHOLDER'
|
|
| translate
|
|
"
|
|
matInput
|
|
type="url"
|
|
formControlName="epgUrl"
|
|
/>
|
|
</mat-form-field>
|
|
<button
|
|
*ngIf="
|
|
(epgAvailable$ | async) &&
|
|
settingsForm.value.epgUrl
|
|
"
|
|
mat-icon-button
|
|
color="primary"
|
|
[matTooltip]="
|
|
'SETTINGS.REFRESH_EPG' | translate
|
|
"
|
|
type="button"
|
|
(click)="fetchEpg()"
|
|
>
|
|
<mat-icon>refresh</mat-icon>
|
|
</button>
|
|
</p>
|
|
</div>
|
|
<p matLine></p>
|
|
</mat-list-item>
|
|
<mat-list-item>
|
|
<div matLine fxLayout="row">
|
|
<p fxFlex>
|
|
{{ 'SETTINGS.VIDEO_PLAYER_LABEL' | translate }}
|
|
</p>
|
|
<p fxFlex fxLayoutAlign="start center">
|
|
<mat-form-field appearance="fill">
|
|
<mat-label>{{
|
|
'SETTINGS.VIDEO_PLAYER_PLACEHOLDER'
|
|
| translate
|
|
}}</mat-label>
|
|
<mat-select formControlName="player">
|
|
<mat-option
|
|
*ngFor="let player of players"
|
|
[value]="player.id"
|
|
>{{ player.label }}
|
|
</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
</p>
|
|
</div>
|
|
</mat-list-item>
|
|
<mat-list-item>
|
|
<div matLine fxLayout="row">
|
|
<p fxFlex>{{ 'SETTINGS.VERSION' | translate }}</p>
|
|
<p fxFlex>
|
|
{{ version }} <br />
|
|
{{ updateMessage }}
|
|
</p>
|
|
</div>
|
|
</mat-list-item>
|
|
</mat-list>
|
|
</mat-card-content>
|
|
<mat-card-actions>
|
|
<button
|
|
mat-button
|
|
color="primary"
|
|
type="submit"
|
|
[disabled]="settingsForm.pristine"
|
|
>
|
|
<mat-icon>save</mat-icon>
|
|
{{ 'SETTINGS.SAVE_CHANGES' | translate }}
|
|
</button>
|
|
<div fxFlex></div>
|
|
<button
|
|
mat-button
|
|
color="primary"
|
|
type="reset"
|
|
(click)="backToHome()"
|
|
>
|
|
<mat-icon>chevron_left</mat-icon>
|
|
{{ 'SETTINGS.BACK_TO_HOME' | translate }}
|
|
</button>
|
|
</mat-card-actions>
|
|
</mat-card>
|
|
</form>
|